/* Los colores principales se configuran en script.js (bloque COLORES) */
:root {
  --primary: #e72f2f;
  --primary-dark: color-mix(in srgb, var(--primary) 75%, black);
  --accent: #ff5c5c;
  --text: #1a2233;
  --muted: #5b6577;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --dark: #0b2556;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 20, 38, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }

/* Botones */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform .2s, background .2s, box-shadow .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn--primary:hover { background: var(--primary-dark); }
/* Sobre fondos oscuros, el botón lleva borde claro para que no se pierda */
.hero .btn--primary, .header .btn--primary { border-color: var(--accent); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: color-mix(in srgb, var(--dark) 95%, transparent); backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(0,0,0,.2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 1.5rem; color: #fff; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.logo strong { color: var(--accent); }
.logo__img { height: 60px; width: 60px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.logo__text { font-weight: 800; letter-spacing: .5px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: rgba(255,255,255,.85); font-weight: 500; }
.nav a:hover { color: #fff; }
.nav > a.is-current { color: #fff; font-weight: 700; }
.nav .btn { color: #fff; }

/* Menús desplegables */
.dropdown { position: relative; }
.dropdown__toggle {
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 500; color: rgba(255,255,255,.85);
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
}
.dropdown__toggle:hover { color: #fff; }
.dropdown__toggle::after {
  content: ''; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.dropdown.is-open .dropdown__toggle::after { transform: translateY(2px) rotate(-135deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + 12px); left: -14px; min-width: 250px;
  background: #fff; border-radius: 14px; padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  display: grid;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* puente para el mouse */
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1081px) {
  .dropdown:hover .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
}
.nav .dropdown__menu a {
  color: var(--text); padding: 10px 12px; border-radius: 10px; white-space: nowrap;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.nav .dropdown__menu a:hover { background: var(--bg-alt); color: var(--primary); }
.nav .dropdown__menu a.is-current { background: var(--bg-alt); color: var(--primary); font-weight: 700; }
.dropdown.is-current > .dropdown__toggle { color: #fff; font-weight: 700; }
.soon {
  font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--accent); color: #fff;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* Hero */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 140px 0 90px;
  overflow: hidden;
}

/* Fondo de fibra óptica (lo dibuja script.js) */
.fibra { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fibra path { fill: none; }
.fibra__pulso { animation: fibra-flujo linear infinite; }
@keyframes fibra-flujo { to { stroke-dashoffset: -1400; } }
@media (prefers-reduced-motion: reduce) { .fibra__pulso { display: none; } }
/* Sombra sobre los hilos para que el texto se lea bien */
.hero::after, .page-hero::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero::after { background: linear-gradient(90deg, color-mix(in srgb, var(--dark) 88%, transparent) 0%, color-mix(in srgb, var(--dark) 40%, transparent) 55%, transparent 100%); }
.page-hero::after { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--dark) 85%, transparent) 0%, color-mix(in srgb, var(--dark) 35%, transparent) 70%, transparent 100%); }
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent);
  font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; margin-bottom: 18px; }
.highlight { color: var(--accent); }

/* Palabra que cambia: las palabras se apilan en la misma celda para reservar el ancho de la más larga */
.rotator { display: inline-grid; justify-items: start; vertical-align: bottom; }
.rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(.45em);
  transition: opacity .5s ease, transform .5s ease;
}
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-.45em); }

@media (prefers-reduced-motion: reduce) {
  .rotator > span { transition: none; transform: none; }
}
.hero p { color: rgba(255,255,255,.75); font-size: 1.15rem; max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { list-style: none; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-size: 1.6rem; }
.hero__stats span { color: rgba(255,255,255,.6); font-size: .9rem; }

.speed-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.speed-card__label { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 8px; }
.speed-card__value { font-size: 4rem; font-weight: 800; line-height: 1; margin-bottom: 24px; }
.speed-card__value small { font-size: 1.2rem; color: var(--accent); }
.speed-card__bar { height: 10px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.speed-card__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; transition: width .1s linear; }
.speed-card__row { display: flex; justify-content: space-between; color: rgba(255,255,255,.6); font-size: .85rem; }

/* Secciones */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section__head { text-align: center; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 10px; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

.section__kicker {
  display: inline-block; margin-bottom: 12px; padding: 6px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary);
  font-weight: 700; font-size: .9rem;
}

/* Planes */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 340px)); justify-content: center; gap: 24px; }
.plan {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; background: #fff;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  animation: fadeUp .4s ease both;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan--soon { border-style: dashed; border-width: 2px; border-color: var(--accent); }
.plan__tag--soon { background: var(--accent); color: #fff; }
.plan__name { font-size: 1.1rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.plan__speed { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.plan__speed small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan__price { margin: 18px 0 22px; font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.plan__price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan__features { list-style: none; margin-bottom: 28px; flex: 1; }
.plan__features li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); border-bottom: 1px dashed var(--border); }
.plan__features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.plans__note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 28px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Beneficios */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.feature__icon { font-size: 2rem; width: 60px; height: 60px; display: grid; place-items: center; background: var(--bg-alt); border-radius: 14px; margin-bottom: 16px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }

.features--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service {
  background: #fff; padding: 32px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); border-top: 4px solid var(--primary);
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.service .feature__icon { margin-bottom: 0; }
.service h3 { font-size: 1.2rem; }
.service__list { list-style: none; display: grid; gap: 12px; flex: 1; align-content: start; }
.service__list li { color: var(--muted); padding-left: 22px; position: relative; }
.service__list li::before { content: '›'; position: absolute; left: 4px; color: var(--primary); font-weight: 800; }
.service__list strong { color: var(--text); }
.service .btn { align-self: flex-start; }

/* Misión y visión */
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.mv__card { padding: 36px; border-radius: 20px; border: 1px solid var(--border); }
.mv__card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.mv__card p { color: var(--muted); font-size: 1.02rem; }
.mv__card--dark { background: var(--dark); color: #fff; border-color: transparent; }
.mv__card--dark p { color: rgba(255,255,255,.78); }

/* Cobertura */
.coverage { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.coverage h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.coverage__text > p { color: var(--muted); margin-bottom: 24px; }
.coverage__form { display: flex; gap: 10px; flex-wrap: wrap; }
.coverage__form input { flex: 1; min-width: 200px; }
.coverage__result { margin-top: 16px; font-weight: 600; min-height: 1.6em; }
.coverage__result.ok { color: #059669; }
.coverage__result.no { color: #d97706; }
.coverage__zones { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.coverage__zones h3 { margin-bottom: 14px; }
.coverage__zones ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.coverage__zones li { background: #fff; border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: .9rem; }

input, select, textarea {
  font-family: inherit; font-size: 1rem;
  padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }

/* Testimonios */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial { background: #fff; padding: 30px; border-radius: var(--radius); border-left: 4px solid var(--accent); }
.testimonial p { font-size: 1.05rem; margin-bottom: 14px; }
.testimonial cite { color: var(--muted); font-style: normal; font-weight: 600; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; transition: .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.contact h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.contact__info > p { color: rgba(255,255,255,.7); margin-bottom: 28px; }
.contact__list { list-style: none; display: grid; gap: 14px; font-size: 1.05rem; }
.contact__list a:hover { color: var(--accent); }
.contact__form { background: #fff; color: var(--text); padding: 32px; border-radius: 20px; display: grid; gap: 16px; }
.contact__form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.steps { list-style: none; counter-reset: paso; display: grid; gap: 20px; }
.steps li { counter-increment: paso; position: relative; padding-left: 56px; display: grid; gap: 2px; }
.steps li::before {
  content: counter(paso);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 800;
}
.steps span { color: rgba(255,255,255,.7); }
.form-msg { text-align: center; font-weight: 600; min-height: 1.4em; }
.form-msg.error { color: #dc2626; }
.form-msg.ok { color: #059669; }

/* Footer */
.footer { background: #070d1a; color: rgba(255,255,255,.6); padding: 30px 0 22px; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem;
  padding-right: 72px; /* espacio para que el botón flotante de WhatsApp no tape los enlaces */
}
.footer__bottom a { text-decoration: underline; }

/* Redes sociales */
.social { display: flex; gap: 10px; }
.social[hidden] { display: none; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background .2s, transform .2s;
}
.social a:hover { background: var(--primary); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: #fff; }

/* Franja de aviso */
.aviso { font-size: .9rem; font-weight: 600; color: #1a2233; background: #ffd34d; }
.aviso .container { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding: 6px 0; text-align: center; }
.aviso--falla { background: var(--primary); color: #fff; }
.aviso--info { background: #2f80ed; color: #fff; }
.aviso__close { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .7; }
.aviso__close:hover { opacity: 1; }

/* Casilla de aceptación de la política de datos */
.consent { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; font-size: .85rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.consent a, .consent__note a { color: var(--primary); text-decoration: underline; }
.consent__note { font-size: .8rem; color: var(--muted); text-align: center; }

/* Mapa de la oficina */
.contact__map { margin-top: 24px; border-radius: 16px; overflow: hidden; height: 240px; }
.contact__map iframe { width: 100%; height: 100%; border: 0; }

/* PQRS */
.pqrs { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.pqrs__info h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 18px; }
.pqrs__types { display: grid; gap: 14px; margin-bottom: 22px; }
.pqrs__types div { padding: 14px 18px; border-left: 4px solid var(--primary); background: var(--bg-alt); border-radius: 0 12px 12px 0; }
.pqrs__types dt { font-weight: 700; }
.pqrs__types dd { color: var(--muted); font-size: .95rem; }
.pqrs__note { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.pqrs__channels { font-size: .95rem; }
.pqrs__channels a { color: var(--primary); font-weight: 600; }
.pqrs__form { border: 1px solid var(--border); box-shadow: var(--shadow); }
.pqrs__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pqrs__actions .btn { flex: 1; }
@media (max-width: 900px) { .pqrs { grid-template-columns: 1fr; } }

/* Seguimiento de PQRS */
.seguimiento__form { max-width: 640px; margin: 0 auto; border: 1px solid var(--border); box-shadow: var(--shadow); }
.seguimiento__resultado { border-top: 1px solid var(--border); padding-top: 18px; display: grid; gap: 14px; }
.seguimiento__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.seguimiento__top strong { font-size: 1.05rem; }
.seguimiento__top small { display: block; color: var(--muted); font-weight: 400; }
.seguimiento__estado { padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--bg-alt); }
.seguimiento__estado[data-estado="Radicada"] { background: #fef3c7; color: #92400e; }
.seguimiento__estado[data-estado="En trámite"] { background: #dbeafe; color: #1e40af; }
.seguimiento__estado[data-estado="Respondida"] { background: #dcfce7; color: #166534; }
.seguimiento__pasos { display: flex; gap: 6px; }
.seguimiento__pasos span { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.seguimiento__pasos span.hecho { background: var(--primary); }
.seguimiento__respuesta { background: var(--bg-alt); border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; }
.seguimiento__respuesta h3 { font-size: .95rem; margin-bottom: 6px; }
.seguimiento__historial { list-style: none; color: var(--muted); font-size: .9rem; display: grid; gap: 4px; }

/* Páginas legales */
.legal h2 { font-size: 1.25rem; font-weight: 800; margin: 32px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.legal a { color: var(--primary); font-weight: 600; }

/* Documentos para descargar */
.docs { list-style: none; display: grid; gap: 8px; width: 100%; }
.docs a { color: var(--primary); font-weight: 600; }

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.7rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Accesos a las páginas de planes (página principal) */
.plan-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .plan-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plan-links { grid-template-columns: 1fr; } }
.plan-link {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 8px; background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.plan-link:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary); }
.plan-link__icon {
  font-size: 2rem; width: 60px; height: 60px; display: grid; place-items: center;
  background: var(--bg-alt); border-radius: 14px; margin-bottom: 6px;
}
.plan-link h3 { font-size: 1.35rem; }
.plan-link p { color: var(--muted); flex: 1; }
.plan-link strong { color: var(--primary); font-size: 1.1rem; }
.plan-link__go { font-weight: 700; color: var(--text); margin-top: 6px; }
.plan-link:hover .plan-link__go { color: var(--primary); }
.plan-link--soon { border-style: dashed; border-width: 2px; border-color: var(--accent); }
.plan-link .soon { position: absolute; top: 16px; right: 16px; }

/* Páginas de planes (hogar.html, pyme.html...) */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--dark);
  color: #fff; padding: 140px 0 70px; text-align: center;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 620px; margin: 0 auto; }
.page-cta { text-align: center; max-width: 760px; }
.page-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.page-cta > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 26px; }
.page-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.page-cta__more { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; color: var(--muted); }
.page-cta__more a {
  background: #fff; border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px;
  font-weight: 600; transition: border-color .2s, color .2s;
}
.page-cta__more a:hover { border-color: var(--primary); color: var(--primary); }

/* Oficina en Línea */
.office { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.office__card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
  transition: transform .25s, box-shadow .25s;
}
.office__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.office__card .feature__icon { margin-bottom: 0; }
.office__card h3 { font-size: 1.2rem; }
.office__card p { color: var(--muted); flex: 1; }

/* Prueba de velocidad */
.speedtest {
  position: relative; max-width: 960px; margin: 0 auto;
  border-radius: 20px; overflow: hidden;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow);
  height: clamp(480px, 55vw, 620px);
}
@media (max-width: 700px) { .speedtest { height: 600px; } }
.speedtest iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.speedtest__alt { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 16px; }
.speedtest__alt a { color: var(--primary); font-weight: 600; }

/* Encuesta */
.question { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 2rem; line-height: 1; color: #d5dae3; cursor: pointer; transition: color .15s, transform .15s; }
.stars label:hover { transform: scale(1.15); }
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label { color: #ffb400; }
.stars input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border); cursor: pointer; font-weight: 600; transition: .15s;
}
.choices input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.choices input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Publicidad App Cliente */
body.no-scroll { overflow: hidden; }
.promo {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 12, 30, .65); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 16px;
  opacity: 0; transition: opacity .3s;
}
.promo[hidden] { display: none; }
.promo.is-open { opacity: 1; }
.promo__box {
  position: relative; width: min(820px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  transform: translateY(24px) scale(.97); transition: transform .3s;
}
.promo.is-open .promo__box { transform: none; }
.promo__head {
  background: radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--primary) 45%, var(--dark)) 0%, var(--dark) 70%);
  color: #fff; padding: 36px 32px;
}
.promo__icon { font-size: 2.6rem; margin-bottom: 8px; }
.promo__head .badge { margin-bottom: 10px; }
.promo__head h2 { font-size: 1.9rem; line-height: 1.15; margin-bottom: 12px; }
.promo__head p { color: rgba(255,255,255,.78); margin-bottom: 18px; }
.promo__perks { list-style: none; display: grid; gap: 8px; }
.promo__perks li { padding-left: 26px; position: relative; }
.promo__perks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.promo__form { padding: 36px 32px; display: grid; gap: 14px; align-content: center; }
.promo__form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.promo__stores { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.promo__stores:empty { display: none; }
.promo__later { background: none; border: 0; color: var(--muted); font-family: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }
.promo__close {
  position: absolute; top: 10px; right: 12px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.06); color: var(--text); font-size: 1.6rem; line-height: 1;
}
.promo__close:hover { background: rgba(0,0,0,.12); }

@media (max-width: 700px) {
  .promo__box { grid-template-columns: 1fr; }
  .promo__head { padding: 28px 22px 22px; }
  .promo__head h2 { font-size: 1.5rem; }
  .promo__head p { margin-bottom: 0; font-size: .95rem; }
  .promo__icon, .promo__perks { display: none; }
  .promo__form { padding: 22px; gap: 12px; }
  .promo__form .form-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .promo__close { background: rgba(255,255,255,.15); color: #fff; }
}

/* Editor de colores (?editar) */
.color-editor {
  position: fixed; left: 20px; bottom: 20px; z-index: 70;
  width: 260px; background: #fff; color: var(--text);
  border-radius: 16px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
  display: grid; gap: 12px;
}
.color-editor h3 { font-size: 1rem; }
.color-editor label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.color-editor label span { display: flex; align-items: center; gap: 10px; }
.color-editor input[type="color"] { width: 48px; height: 36px; padding: 2px; cursor: pointer; }
.color-editor code { font-size: .85rem; color: var(--muted); }
.color-editor__hint { font-size: .78rem; color: var(--muted); }

/* Campo oculto contra spam en el PQRS */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== Diseño editorial (2026-11): todo lo de abajo de la portada, sin iconos. El hero no se toca. ===== */
:root {
  --radius: 2px;
  --bg-alt: #f5f7fc;
  --shadow-suave: 0 1px 2px rgba(11,37,86,.04), 0 8px 24px rgba(11,37,86,.07);
}

/* Números en lugar de iconos (se numeran solos) */
.plan-links, .services { counter-reset: n; }
.plan-link, .service { counter-increment: n; }

.section { padding: 112px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--border); }
.section__head { text-align: left; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 2px solid var(--text); }
.section__head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -.03em; line-height: 1.12; margin-bottom: 0; }
.section__head p { margin: 10px 0 0; max-width: 560px; }
.section__kicker { background: none; padding: 0; border-radius: 0; color: var(--primary); letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; }
.section__kicker::before { content: '— '; }

/* Franja de ventajas, montada sobre el borde inferior de la portada */
.ventajas { position: relative; z-index: 2; }
.ventajas__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.ventaja { position: relative; padding: 30px 24px 30px 0; }
.ventaja + .ventaja { padding-left: 24px; }
.ventaja + .ventaja::before { content: ''; position: absolute; left: 0; top: 30px; bottom: 30px; width: 1px; background: var(--border); }
.ventaja strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.ventaja span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; margin-top: 4px; }
.ventajas + .section { padding-top: 80px; }

/* Planes (página principal) */
.plan-links { gap: 0 40px; }
.plan-link {
  position: relative; background: none; border: 0; border-top: 2px solid var(--text); border-radius: 0; box-shadow: none;
  padding: 22px 0 8px; transition: border-color .2s;
}
.plan-link::before {
  content: counter(n, decimal-leading-zero);
  font-weight: 700; font-size: .85rem; letter-spacing: .12em; color: var(--primary); margin-bottom: 14px;
}
.plan-link:hover { transform: none; box-shadow: none; border-color: transparent; border-top-color: var(--primary); }
.plan-link h3 { font-size: 1.9rem; letter-spacing: -.02em; }
.plan-link p { color: var(--muted); }
.plan-link strong { border: 0; margin: 0; padding: 4px 0 0; }
.plan-link__go { border-bottom: 1px solid currentColor; align-self: flex-start; padding-bottom: 2px; }
.plan-link--soon { background: none; border-style: solid; border-width: 2px 0 0; border-color: var(--text); }
.plan-link .soon { top: 20px; right: 0; border-radius: 2px; }

/* Servicios */
.services { gap: 0 40px; }
.service {
  position: relative; background: none; border: 0; border-top: 2px solid var(--text); border-radius: 0; box-shadow: none;
  padding: 22px 0 8px; gap: 16px;
}
.service::before { content: counter(n, decimal-leading-zero); font-weight: 700; font-size: .85rem; letter-spacing: .12em; color: var(--primary); }
.service h3 { font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.2; }
.service__list { gap: 12px; }
.service__list li::before { content: '—'; font-size: 1rem; left: 0; }

/* Secciones oscuras (cotización y contacto) */
.section--dark { position: relative; }
.section--dark .contact h2 { letter-spacing: -.02em; }
.contact__form { border-radius: 2px; padding: 36px; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.contact__form label { color: var(--text); }
.btn { border-radius: 2px; }
.header .btn, .hero .btn { border-radius: 999px; } /* los botones de la portada y del menú no cambian */
input, select, textarea { background: #f8fafd; border-color: #dbe3ef; border-radius: 2px; transition: border-color .2s, background .2s, box-shadow .2s; }
input:hover, select:hover, textarea:hover { border-color: #b9c6da; }
input:focus, select:focus, textarea:focus { outline: 0; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.section--dark .contact__list li:not([hidden]) { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); }
.steps li::before { border-radius: 2px; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 46px; bottom: -14px; width: 2px; background: rgba(255,255,255,.14); }

/* Cobertura */
.coverage:has(.coverage__text:only-child) { grid-template-columns: minmax(0, 680px); }
.coverage__form { background: #fff; border: 2px solid var(--text); border-radius: 2px; padding: 5px; flex-wrap: nowrap; }
.coverage__form input { border: 0; background: transparent; box-shadow: none !important; border-radius: 0; min-width: 0; }
.coverage__form:focus-within { border-color: var(--primary); }
.coverage__zones { border: 1px solid var(--border); background: var(--bg-alt); border-radius: 2px; }
.coverage__zones li { border-radius: 2px; }

/* Preguntas frecuentes */
.faq details { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 0; }
.faq details[open] { box-shadow: none; border-bottom-color: var(--text); }
.faq summary { padding: 22px 0; font-size: 1.05rem; }
.faq summary::after { font-size: 1.7rem; }

/* Pie de página */
.footer { position: relative; padding: 40px 0 24px; }
.footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--primary); }
.footer nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.footer nav a:hover { border-bottom-color: var(--accent); }

/* Aparecer suavemente al bajar por la página (solo en navegadores que lo permiten) */
@keyframes aparecer { from { opacity: 0; transform: translateY(28px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .plan-link, .service, .testimonial, .coverage__zones, .faq details, .steps li {
      animation: aparecer linear backwards; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
}

@media (max-width: 900px) {
  .ventajas__grid { grid-template-columns: 1fr 1fr; }
  .ventaja:nth-child(3) { padding-left: 0; }
  .ventaja:nth-child(3)::before { display: none; }
  .ventaja { padding-top: 22px; padding-bottom: 22px; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .ventajas__grid { grid-template-columns: 1fr; }
  .ventaja, .ventaja + .ventaja { padding-left: 0; padding-right: 0; border-top: 1px solid var(--border); }
  .ventaja:first-child { border-top: 0; }
  .ventaja + .ventaja::before { display: none; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; padding-bottom: 22px; }
  .contact__form { padding: 24px; }
  .coverage__form { flex-wrap: wrap; }
  .coverage__form .btn { width: 100%; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner, .coverage, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero__visual { max-width: 420px; }
}

/* Menú tipo celular: se activa antes porque el menú tiene muchas opciones */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; /* justo debajo del encabezado, aunque haya franja de aviso */
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 20px;
    background: var(--dark);
    max-height: calc(100vh - 72px); overflow-y: auto;
    transform: translateY(-120%); transition: transform .3s;
    z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav > a { padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 12px; border: 0; }
  .header:has(.nav.is-open) { background: var(--dark); }

  .dropdown { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .dropdown__toggle { width: 100%; justify-content: space-between; padding: 14px 0; }
  .dropdown__menu {
    position: static; display: none; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; padding: 0 0 10px 12px;
  }
  .dropdown__menu::before { display: none; }
  .dropdown.is-open .dropdown__menu { display: grid; }
  .nav .dropdown__menu a { color: rgba(255,255,255,.8); padding: 10px 0; justify-content: flex-start; }
  .nav .dropdown__menu a:hover { background: none; color: #fff; }
  .nav .dropdown__menu a.is-current { background: none; color: var(--accent); }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero__stats { gap: 24px; }
  .speed-card { padding: 26px; }
  .speed-card__value { font-size: 3rem; }
  .contact__form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
  .footer nav { justify-content: center; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; padding-right: 0; padding-bottom: 70px; }
}
