/* =========================================================
=  STYLE.CSS — HIFIBER (documentado)
=  Nota: Las tarjetas/planes (estilos de .tarjeta-plan, precios,
=  etc.) viven en cards.css. Aquí NO se sobreescriben.
=  Última edición: (limpieza sin cambios visuales)
========================================================= */


/* =========================================================
=  RESET Y BASE (aplica a todo el sitio)
=  Afecta: <body>, enlaces, contenedores generales
========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  background-color: #fff;
}

a { text-decoration: none; color: inherit; }

.container, .container-cotizacion {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* =========================================================
=  TOP BAR (barra superior verde de contacto)
=  HTML: <div class="top-bar"><div class="container">...</div></div>
========================================================= */
.top-bar {
  background: #009b0d;
  color: white;
  font-size: 0.9rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.top-bar i { color: white; margin-right: 8px; }
.top-bar a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-weight: 500;
}


/* =========================================================
=  HEADER / MENÚ (logo, navegación, botón WhatsApp header)
=  HTML: <header><div class="container nav">...</div></header>
========================================================= */
header {
  background: white;
  padding: 15px 0;
  color: white;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { height: 110px; }
nav a  {
  color:#0e3c71;
  margin: 0 15px;
  font-weight: bold;
} /* ← cerrada la regla */

.btn-wsp-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-wsp-header:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.icono-wsp {
  width: 20px;
  height: 20px;
}


/* =========================================================
=  HERO PRINCIPAL (portada con overlay)
=  HTML: <section class="hero"><div class="hero-overlay">...</div></section>
========================================================= */
.hero {
  position: relative;
  background: url('img/portada.jpg') no-repeat center center/cover;
  padding: 90px 0;
  min-height: 500px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: flex-start;
  padding-left: 80px;
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px; padding: 20px;
}
.hero-content h1, .hero-content p, .hero-content li { margin-bottom: 20px; }
.hero-content h1 { font-size: 3rem; color: #fff; }
.hero-content p { font-size: 1.2rem; }
.hero-content ul { list-style: none; padding-left: 0; }
.hero-content li { font-size: 1.1rem; }
.btn-hero {
  background: #04b300; color: white;
  padding: 12px 25px; border-radius: 8px; font-weight: bold; font-size: 1rem;
  text-decoration: none; display: inline-block; transition: background 0.3s ease;
}
.btn-hero:hover { background: #039400; }


/* =========================================================
=  CARRUSEL DE FONDO (slides de fondo detrás del sitio)
=  HTML: <div class="background-carousel"><div class="bg-slide">...</div>...</div>
=  Nota: Debe ir detrás del contenido => z-index:-1
========================================================= */
.background-carousel {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: -1; overflow: hidden;
}
.bg-slide {
  position: absolute; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2s ease-in-out;
}
.bg-slide.active { opacity: 1; }


/* =========================================================
=  SECCIÓN INFORMATIVA (si la usas)
=  HTML: <section class="info"><div class="features">...</div></section>
========================================================= */
.info {
  background: #f9f9f9;
  color: #333;
  padding: 60px 20px;
}
.features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}
.features div { max-width: 300px; }
.features h3 { color: #0e3c71; margin-bottom: 10px; }


/* ===== CTA VERDE MODERNO ===== */
.cta-azul {
  background: linear-gradient(135deg, #27ae60, #8cc63f);
  position: relative;
  padding: 60px 20px;
  color: white;
  border-radius: 12px;
  overflow: hidden;
}

/* Ondas en el fondo */
.cta-azul::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 200px at 80% 20%, rgba(255,255,255,0.08), transparent 60%),
    repeating-linear-gradient( 25deg, rgba(255,255,255,0.08) 0 14px, transparent 14px 36px);
  pointer-events: none;
}

.cta-azul-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.cta-azul-image img {
  width: 220px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.cta-azul-texto { flex: 1; min-width: 280px; }
.cta-azul-texto h2 { font-size: 2rem; font-weight: bold; margin-bottom: 10px; }
.cta-azul-texto p { font-size: 1.1rem; }

.cta-azul-acciones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.btn-verde {
  background-color: #0e8a3a;
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
.btn-verde:hover { background-color: #0b6f2f; }

.ayuda-box {
  background: white;
  color: #0e3c71;
  display: flex;
  align-items: center;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.ayuda-icono { font-size: 24px; margin-right: 12px; }
.ayuda-texto span { font-size: 0.9rem; color: gray; display: block; }
.ayuda-texto strong { font-size: 1.2rem; color: #0e3c71; }

/* ===== COTIZACIÓN EN 2 COLUMNAS ===== */
.container-cotizacion {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.pasos-cotizacion h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.pasos-cotizacion p {
  color: #333;
  margin-bottom: 16px;
}
.paso {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 14px 0;
}
.paso .numero {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(46, 204, 113, .35);
}

.formulario-cotizacion {
  background: #f6f7f8;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06) inset;
  border: 1px solid #ececec;
}
.formulario-cotizacion form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.formulario-cotizacion .fila {
  display: flex;
  gap: 12px;
}
.formulario-cotizacion input,
.formulario-cotizacion select,
.formulario-cotizacion textarea {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.formulario-cotizacion textarea {
  min-height: 100px;
}

.formulario-cotizacion button {
  background: #1fa34a;
  color: #222; /* corregido sintaxis */
  border: none;
  padding: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.formulario-cotizacion button:hover {
  background: #16853c;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .container-cotizacion {
    grid-template-columns: 1fr;
  }
  .cta-azul-content {
    flex-direction: column;
    text-align: center;
  }
  .cta-azul-acciones {
    align-items: center;
  }
}
@media (max-width: 520px) {
  .formulario-cotizacion .fila {
    flex-direction: column;
  }
}

/* Bloque blanco que contiene cada sección */
.pasos-cotizacion {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
}

/* Título para la parte de "Proceso sencillo..." (verde corporativo) */
.titulo-seccion-verde {
  background: linear-gradient(90deg, #00994d, #00c06b);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-bottom: 15px;
}

/* Título para la parte de "Obtén una cotización" (azul corporativo) */
.titulo-seccion-azul {
  background: linear-gradient(90deg, #0056a4, #007bff);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-bottom: 15px;
}


/* =========================================================
=  BOTÓN WHATSAPP FLOTANTE
=  HTML: <a class="btn-whatsapp" ...>...</a>
========================================================= */
.btn-whatsapp {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  width: 60px; height: 60px; background-color: #25D366; border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.btn-whatsapp:hover { transform: scale(1.1); }


/* =========================================================
=  SECCIÓN SERVICIOS (si la usas)
=  HTML: <section class="servicios">...</section>
========================================================= */
.servicios {
  background: #f1f1f1; padding: 60px 20px; text-align: center; color: #333;
}
.servicios h2 { font-size: 2rem; color: #0e3c71; margin-bottom: 20px; }

.lista-servicios {
  list-style: none; font-size: 1.2rem; margin-bottom: 30px; padding: 0;
}
.lista-servicios li {
  font-size: 1.2rem;
  margin: 10px 0;
  display: flex; align-items: center; gap: 10px;
}

.btn-validar {
  display: inline-block; background: #1e8e3e; color: white;
  padding: 12px 30px; font-weight: bold; border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease; text-decoration: none;
}
.btn-validar:hover { background: #34a853; }


/* =========================================================
=  SERVICIOS — FONDO “SPLIT” (imagen ancha decorativa)
=  HTML: <div class="servicios-bg-split"></div>
========================================================= */
.servicios-bg-split {
  background-image: url("img/fondo_servicios_split.png");
  background-size: contain; background-repeat: no-repeat; background-position: center center;
  width: 100%; aspect-ratio: 3 / 1; position: relative; margin-bottom: 20px;
}
@media (max-width: 768px) {
  .servicios-bg-split { aspect-ratio: 2 / 1; }
}


/* =========================================================
=  SERVICIOS — CTA Cobertura (si lo usas dentro de servicios)
=  HTML: .servicios-content .btn-validar
========================================================= */
.servicios-content .btn-validar {
  background-color: #1e8e3e; color: white; font-size: 1rem;
  padding: 15px 30px; border: none; border-radius: 30px; cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}
.servicios-content .btn-validar:hover { background-color: #155e36; }


/* =========================================================
=  UTILIDADES DE COLOR (textos sueltos)
=  HTML: <span class="texto-azul">...</span>, <span class="texto-verde">...</span>
========================================================= */
.texto-azul  { color: #00BFFF; font-weight: bold; }
.texto-verde { color: #90ee90; font-weight: bold; }


/* =========================================================
=  TITULARES “OFRECEMOS SERVICIOS” (encabezado simple)
=  HTML: <div class="servicios-titulo-simple"><h2 class="titulo-servicio-principal">...</h2></div>
========================================================= */
.servicios-titulo-simple {
  padding: 40px 20px 0; background-color: #ffffff; text-align: center;
}
.titulo-servicio-principal {
  font-size: 2rem; font-weight: bold; color: #002B5B; margin-bottom: 20px;
}


/* =========================================================
=  LEGACY / NO USADO (PRESERVADO, PERO COMENTADO)
=  ❗ Estos bloques eran de un layout anterior de planes
=  (grid o tarjetas antiguas). No aparecen en tu HTML actual
=  y además chocan con las tarjetas nuevas del carrusel Swiper.
=  Si algún día los reactivas, muévelos a otro archivo.
========================================================= */
/*
.planes { background: #fff; padding: 30px 20px; text-align: center; color: #333; }
.planes h2 { font-size: 2rem; color: #0e3c71; margin-bottom: 30px; }
.planes-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.plan-card {
  background: #f9f9f9; border: 1px solid #ddd; border-radius: 12px; padding: 25px;
  width: 220px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease;
}
.plan-card:hover { transform: translateY(-5px); }
.plan-card h3 { font-size: 1.5rem; color: #1e8e3e; margin-bottom: 10px; }
.plan-card p { font-size: 1.2rem; font-weight: bold; color: #0e3c71; }

.seccion-planes { padding: 60px 20px; text-align: center; background-color: #f9f9f9; }
.titulo-seccion { font-size: 2rem; color: #08396c; margin-bottom: 30px; }
.contenedor-planes { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-bottom: 50px; }
.tarjeta-plan {
  background: white; border-radius: 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 260px; padding: 25px; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tarjeta-plan:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); }
.tarjeta-plan h3 { font-size: 1.5rem; color: #0c7e2d; margin-bottom: 10px; }
.tarjeta-plan.antena h3 { color: #0778b8; }
.img-router { width: 80px; margin: 15px 0; transition: transform 0.4s ease; }
.tarjeta-plan:hover .img-router { transform: scale(1.1) rotate(5deg); }
.precio { font-size: 1.4rem; color: #08396c; font-weight: bold; margin-bottom: 15px; }
.precio span { font-size: 1rem; color: gray; display: block; }
.btn-contratar {
  display: inline-block; background-color: #078d30; color: white;
  padding: 12px 20px; border-radius: 10px; font-weight: bold; text-decoration: none;
  transition: background 0.3s ease;
}
.btn-contratar:hover { background-color: #056d26; }
*/



/* ======= Ajustes responsive generales ======= */
@media (max-width: 768px){
  /* Tipografías fluidas */
  h1 { font-size: clamp(22px, 6vw, 32px); line-height: 1.15; }
  h2 { font-size: clamp(18px, 4.8vw, 26px); }
  p, li, a, button, input, select, textarea { font-size: clamp(14px, 4vw, 16px); }

  /* Contenedores y secciones */
  .container,
  .container-intro,
  .planes-izzi,
  .cta-azul-content,
  .container-cotizacion,
  .footer-extras .wrap,
  .ubicacion .container { padding-left: 16px; padding-right: 16px; }

  section { padding: 28px 0; }

  /* Grids a una columna */
  .contenedor-tarjetas-intro,
  .benefit-cards,
  .container-cotizacion,
  .footer-extras .wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Hero más cómodo en vertical */
  .hero { display: grid; align-items: center; gap: 16px; padding: 18px 0; }
  .btn-hero { width: 100%; max-width: 420px; text-align: center; }

  /* CTA dos columnas -> una columna */
  .cta-azul-content { display: grid; gap: 16px; }
  .cta-azul-acciones { display: grid; gap: 10px; }

  /* Tabla o elementos anchos: scroll horizontal sutil */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 640px; }

  /* WhatsApp FAB/Chat */
  .btn-whatsapp { bottom: 12px; right: 12px; }
}

/* ======= Menú hamburguesa (no afecta escritorio) ======= */
.menu-toggle { display: none; background: transparent; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle .bar { display: block; width: 24px; height: 2px; background: #111; margin: 5px 0; }

@media (max-width: 768px){
  .menu-toggle { display: inline-grid; place-items: center; }
  header nav { position: relative; }
  header nav .nav-links{
    position: absolute; right: 0; top: calc(100% + 10px);
    width: 88vw; max-width: 420px; background: #fff;
    border: 1px solid rgba(0,0,0,.08); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    padding: 12px; list-style: none; display: flex; flex-direction: column; gap: 8px;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  header nav .nav-links.open{ max-height: 70vh; }
  header nav .nav-links a{ display: block; padding: 10px 12px; border-radius: 8px; }
  body.no-scroll{ overflow: hidden; }
}



/* ===== Desktop: nav horizontal (no cambia móvil) ===== */
header .nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header nav .nav-links{
  display: flex;             /* ← clave: fila en desktop */
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

header nav .nav-links li{
  list-style: none;
}

header nav .nav-links a{
  display: inline-block;
  white-space: nowrap;
}

/* El botón hamburguesa oculto en escritorio por si acaso */
@media (min-width: 769px){
  #menu-toggle { display: none !important; }
}




/* ====== Fix menú móvil: visibles los links y por encima del hero ====== */
@media (max-width: 768px){
  /* contenedor del panel desplegado */
  header nav .nav-links{
    z-index: 9999;                 /* que quede arriba de todo */
    background: #ffffff;           /* fondo sólido ya lo tienes */
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
  }

  /* links del menú */
  header nav .nav-links a{
    color: #0e8a3a !important;     /* color de marca para que SÍ se vean */
    font-weight: 700;               /* más legible */
    text-decoration: none;
  }

  /* estado activo / hover */
  header nav .nav-links a:hover,
  header nav .nav-links a:focus{
    background: rgba(14,138,58,.08);
  }

  /* si algún header/barra tenía overflow hidden, destrábalo en móvil */
  header, header * { overflow: visible !important; }
}

/* ====== Fix menú móvil: visibles los links y por encima del hero ====== */
@media (max-width: 768px){
  /* contenedor del panel desplegado */
  header nav .nav-links{
    z-index: 9999;                 /* que quede arriba de todo */
    background: #ffffff;           /* fondo sólido ya lo tienes */
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
  }

  /* links del menú */
  header nav .nav-links a{
    color: #0e8a3a !important;     /* color de marca para que SÍ se vean */
    font-weight: 700;               /* más legible */
    text-decoration: none;
  }

  /* estado activo / hover */
  header nav .nav-links a:hover,
  header nav .nav-links a:focus{
    background: rgba(14,138,58,.08);
  }

  /* si algún header/barra tenía overflow hidden, destrábalo en móvil */
  header, header * { overflow: visible !important; }
}
