/* ═══════════════════════════════════════════
   TURIWIFI — shared.css
   CSS global compartido por todas las páginas
   ═══════════════════════════════════════════ */

:root {
  --azul: #0055A4;
  --azul-dark: #002d6e;
  --azul-mid: #003d7a;
  --azul-light: #e8f1fb;
  --azul-pale: #f0f6ff;
  --blanco: #ffffff;
  --gris-bg: #f4f7fc;
  --gris-borde: #dde5f0;
  --gris-texto: #5a6a82;
  --negro: #0d1f3c;
  --verde: #1a6e3a;
  --radio: 10px;
  --radio-lg: 16px;
  --radio-xl: 24px;
  --sombra: 0 2px 16px rgba(0,85,164,.10);
  --sombra-h: 0 8px 32px rgba(0,85,164,.18);
  --max-w: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--gris-bg);
  color: var(--negro);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── HEADER ─── */
header {
  background: var(--azul);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hdr {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; padding: 0 24px; gap: 16px;
}
.logo { display:flex; align-items:center; flex-shrink:0; min-width:175px; }
/* Logo oficial: se pinta desde CSS para evitar que el navegador reutilice el antiguo logo.png en caché. */
.logo::before { content:''; display:block; width:175px; height:42px; background:url('logo-turiwifi-blanco.png') left center / contain no-repeat; }
.logo img { display:none !important; }
.logo-text { display:none !important; }
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500;
  padding: 6px 11px; border-radius: 6px;
  transition: background .15s, color .15s;
}
nav a:hover, nav a.active { background: rgba(255,255,255,.14); color: #fff; }
.nav-cta {
  background: #fff !important; color: var(--azul) !important;
  font-weight: 700 !important; border-radius: 8px !important;
  padding: 8px 16px !important; margin-left: 4px;
  transition: box-shadow .15s, transform .1s;
}
.nav-cta:hover { box-shadow: 0 4px 14px rgba(0,0,0,.2); transform: translateY(-1px); }

.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.menu-btn span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  nav { display: none; }
  .menu-btn { display: flex; }
}

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--azul-mid); padding: 10px 16px 20px; gap: 2px;
}
.mobile-nav a {
  color: rgba(255,255,255,.85); font-size: 16px; font-weight: 500;
  padding: 11px 14px; border-radius: 8px;
  transition: background .15s;
}
.mobile-nav a:hover { background: rgba(255,255,255,.1); }
.mobile-nav .mnav-cta {
  background: #fff; color: var(--azul) !important;
  font-weight: 700 !important; margin-top: 8px; text-align: center;
  border-radius: 8px;
}
.mobile-nav.open { display: flex; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #001f52 0%, #0044A0 50%, #0a6bc5 100%);
  padding: 70px 24px 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,.04);
  right: -150px; top: -200px; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute;
  width: 350px; height: 350px; border-radius: 50%;
  background: rgba(255,255,255,.03);
  left: -80px; bottom: -150px; pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px; gap: 52px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px; padding: 5px 16px;
  font-size: 12px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 18px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7ec8f8; animation: blink 1.6s infinite; flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 5.5vw, 60px); font-weight: 800;
  color: #fff; line-height: 1.02; margin-bottom: 18px;
}
.hero h1 em { color: #7ec8f8; font-style: normal; }
.hero p { color: rgba(255,255,255,.84); font-size: 17px; line-height: 1.65; margin-bottom: 30px; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── BOTONES ─── */
.btn-primary {
  display: inline-block;
  background: #fff; color: var(--azul);
  border: none; border-radius: var(--radio); padding: 13px 28px;
  font-family: 'Barlow', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: box-shadow .15s, transform .1s;
  text-align: center;
}
.btn-primary:hover { box-shadow: 0 6px 22px rgba(0,0,0,.22); transform: translateY(-1px); }
.btn-primary.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-primary.btn-azul { background: var(--azul); color: #fff; }
.btn-primary.btn-azul:hover { background: var(--azul-mid); }
.btn-ghost {
  display: inline-block;
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.45); border-radius: var(--radio);
  padding: 11px 24px; font-family: 'Barlow', sans-serif;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s;
  text-align: center;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn-ghost.btn-lg { padding: 13px 28px; font-size: 15px; }

/* ─── PLAN CARDS (hero) ─── */
.hero-planes { display: flex; flex-direction: column; gap: 12px; }
.plan-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: background .2s, border-color .2s;
}
.plan-card:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }
.plan-card.destacado {
  background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4);
  box-shadow: 0 0 0 2px rgba(126,200,248,.3);
}
.plan-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.plan-speed {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 800; color: #fff; line-height: 1;
}
.plan-type { font-size: 12px; color: rgba(255,255,255,.65); font-weight: 500; margin-top: 2px; }
.plan-price { margin-left: auto; text-align: right; }
.plan-price-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px; font-weight: 800; color: #7ec8f8;
}
.plan-price-per { font-size: 11px; color: rgba(255,255,255,.55); }
.plan-badge {
  font-size: 10px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.2); border-radius: 4px;
  padding: 2px 7px; margin-top: 4px; text-align: center;
}

/* ─── PAGE HERO (páginas interiores) ─── */
.page-hero {
  background: linear-gradient(135deg, #001f52 0%, #0044A0 50%, #0a6bc5 100%);
  padding: 52px 24px 56px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.04);
  right: -100px; top: -200px; pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  position: relative; z-index: 1;
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color .15s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.35); }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(30px, 5vw, 52px); font-weight: 800;
  color: #fff; line-height: 1.05; margin-bottom: 14px;
}
.page-hero h1 em { color: #7ec8f8; font-style: normal; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.65; max-width: 580px; }

/* ─── SECCIONES ─── */
.section { padding: 60px 24px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.bg-blanco { background: #fff; }
.bg-gris { background: var(--gris-bg); }
.bg-azul { background: var(--azul); }

.section-tag {
  font-size: 12px; font-weight: 700; color: var(--azul);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  color: var(--negro); margin-bottom: 36px; line-height: 1.1;
}
.section-title em { color: var(--azul); font-style: normal; }
.section-title.blanco { color: #fff; }
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 28px; gap: 16px;
}

/* ─── GRIDS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── VENTAJAS ─── */
.vent-card {
  background: var(--gris-bg); border-radius: var(--radio-lg);
  padding: 26px 22px; border: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.vent-card:hover { border-color: var(--gris-borde); box-shadow: var(--sombra); transform: translateY(-2px); }
.vent-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--azul-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.vent-title { font-size: 16px; font-weight: 700; color: var(--negro); margin-bottom: 8px; }
.vent-text { font-size: 14px; color: var(--gris-texto); line-height: 1.6; }

/* ─── SERVICIO CARDS ─── */
.srv-card {
  background: #fff; border-radius: var(--radio-xl);
  overflow: hidden; border: 1px solid var(--gris-borde);
  display: flex; transition: box-shadow .2s, transform .15s;
  color: var(--negro);
}
.srv-card:hover { box-shadow: var(--sombra-h); transform: translateY(-2px); }
.srv-img {
  width: 110px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.srv-azul { background: var(--azul); }
.srv-verde { background: #1a6e3a; }
.srv-morado { background: #6d28a0; }
.srv-naranja { background: #c05010; }
.srv-body { padding: 22px 24px; }
.srv-tag { font-size: 11px; font-weight: 700; color: var(--azul); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.srv-title { font-size: 17px; font-weight: 700; color: var(--negro); margin-bottom: 8px; }
.srv-text { font-size: 14px; color: var(--gris-texto); line-height: 1.6; }
.srv-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--azul);
  transition: gap .15s;
}
.srv-card:hover .srv-link { gap: 8px; }

/* ─── COBERTURA ─── */
.cobertura-section { background: var(--azul); }
.cob-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px;
  align-items: center; padding: 60px 24px;
}
.cob-tag { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.cob-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px,4vw,42px); font-weight: 800;
  color: #fff; margin-bottom: 14px; line-height: 1.1;
}
.cob-text { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.7; margin-bottom: 22px; }
.cob-zonas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.zona-pill {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: 6px 16px;
  font-size: 13px; font-weight: 600; color: #fff;
}
.cob-visual {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; height: 240px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.cob-visual-icon { font-size: 52px; }
.cob-visual-label { color: rgba(255,255,255,.55); font-size: 13px; }
.cob-visual-sub { color: rgba(255,255,255,.35); font-size: 11px; }

/* ─── NOTICIAS ─── */
.not-card {
  display: block;
  background: var(--gris-bg); border-radius: var(--radio-lg);
  overflow: hidden; border: 1px solid var(--gris-borde);
  transition: box-shadow .2s, transform .15s; color: var(--negro);
}
.not-card:hover { box-shadow: var(--sombra-h); transform: translateY(-2px); }
.not-img {
  height: 150px; display: flex;
  align-items: center; justify-content: center; font-size: 40px;
}
.not-body { padding: 18px 20px; }
.not-cat { font-size: 11px; font-weight: 700; color: var(--azul); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.not-title { font-size: 16px; font-weight: 700; color: var(--negro); margin-bottom: 8px; line-height: 1.35; }
.not-text { font-size: 13px; color: var(--gris-texto); line-height: 1.6; }
.not-date { font-size: 12px; color: #aab8cc; margin-top: 10px; }
.ver-todas { font-size: 14px; font-weight: 600; color: var(--azul); border-bottom: 1px solid var(--azul); padding-bottom: 1px; white-space: nowrap; }
.empty-noticias { color: var(--gris-texto); font-size: 14px; grid-column: 1/-1; text-align: center; padding: 32px 0; }

/* ─── CTA ─── */
.cta-section {
  background: linear-gradient(135deg, #001a45 0%, #0044A0 60%, #0a6bc5 100%);
  padding: 72px 24px; text-align: center;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px,5vw,46px); font-weight: 800;
  color: #fff; margin-bottom: 14px; line-height: 1.1;
}
.cta-section p { color: rgba(255,255,255,.8); font-size: 17px; margin-bottom: 32px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.cta-sub { color: rgba(255,255,255,.6); font-size: 14px; }
.cta-sub strong { color: rgba(255,255,255,.9); }

/* ─── CONTENT BLOCKS (páginas interiores) ─── */
.content-section { padding: 56px 24px; }
.content-inner { max-width: var(--max-w); margin: 0 auto; }
.content-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.content-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px; font-weight: 800; color: var(--negro); margin-bottom: 14px;
}
.content-body h3 { font-size: 18px; font-weight: 700; color: var(--negro); margin: 22px 0 8px; }
.content-body p { font-size: 15px; color: var(--gris-texto); line-height: 1.7; margin-bottom: 14px; }
.content-body ul { margin: 12px 0 16px 0; }
.content-body ul li {
  font-size: 15px; color: var(--gris-texto); line-height: 1.6;
  padding: 5px 0 5px 22px; position: relative;
}
.content-body ul li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--azul); font-weight: 700; font-size: 13px;
}
.info-card {
  background: var(--azul-light); border-radius: var(--radio-lg);
  padding: 28px; border: 1px solid var(--gris-borde);
}
.info-card h3 { font-size: 17px; font-weight: 700; color: var(--azul-mid); margin-bottom: 16px; }
.info-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.info-row:last-child { margin-bottom: 0; }
.info-ico { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.info-label { font-size: 12px; font-weight: 700; color: var(--gris-texto); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.info-val { font-size: 15px; font-weight: 600; color: var(--negro); }
.info-val a { color: var(--azul); }

/* ─── FEATURE CARDS ─── */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card {
  background: #fff; border-radius: var(--radio-lg);
  padding: 28px 22px; border: 1px solid var(--gris-borde);
  text-align: center; transition: box-shadow .2s, transform .15s;
}
.feature-card:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.feature-icon { font-size: 38px; margin-bottom: 14px; }
.feature-title { font-size: 16px; font-weight: 700; color: var(--negro); margin-bottom: 8px; }
.feature-text { font-size: 14px; color: var(--gris-texto); line-height: 1.6; }

/* ─── FOOTER ─── */
footer { background: var(--azul-dark); padding: 52px 24px 28px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-logo-text { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,.7);
  transition: background .15s;
}
.footer-social a:hover { background: rgba(255,255,255,.2); }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; color: var(--negro); margin-bottom: 5px; margin-top: 16px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--gris-borde); border-radius: var(--radio);
  font-family: 'Barlow', sans-serif; font-size: 15px; color: var(--negro);
  background: #fff; transition: border-color .15s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--azul);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .form-btn {
  margin-top: 20px; padding: 13px 32px;
  background: var(--azul); color: #fff; border: none;
  border-radius: var(--radio); font-family: 'Barlow', sans-serif;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.contact-form .form-btn:hover { background: var(--azul-mid); }
.contact-info-card {
  background: #fff; border-radius: var(--radio-xl);
  padding: 32px; border: 1px solid var(--gris-borde);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-planes { flex-direction: row; flex-wrap: wrap; }
  .plan-card { flex: 1 1 calc(50% - 6px); min-width: 180px; }
  .grid-2 { grid-template-columns: 1fr; }
  .cob-inner { grid-template-columns: 1fr; gap: 28px; padding: 52px 24px; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .content-two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav { display: none; }
  .menu-btn { display: flex; }
  .hero { padding: 48px 20px 56px; }
  .hero-planes { flex-direction: column; }
  .plan-card { flex: 1 1 100%; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .srv-card { flex-direction: column; }
  .srv-img { width: 100%; height: 100px; }
  .cob-visual { height: 160px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 44px 20px; }
  .content-section { padding: 40px 20px; }
  .cta-section { padding: 52px 20px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 40px 20px 44px; }
}
