/* ==========================================================================
   MEGARED Telecomunicaciones — Hoja de estilos
   Diseño corporativo sutil. Un solo archivo para todas las páginas.
   ========================================================================== */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --primary: #1d5ea8;
  --primary-d: #174e8e;
  --brand: #478ac9;
  --sky: #eaf2fb;
  --ink: #0f1b2d;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .06);
  --shadow-lg: 0 2px 4px rgba(11, 37, 69, .06), 0 16px 40px rgba(11, 37, 69, .10);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

:focus-visible { outline: 3px solid rgba(71, 138, 201, .55); outline-offset: 2px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Iconos */
.ico { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-wrap { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--primary); display: grid; place-items: center; flex: none; }
.ico-wrap .ico { width: 22px; height: 22px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; box-shadow: 0 6px 16px rgba(29, 94, 168, .25); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--primary); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Barra superior y cabecera ---------- */
/* Barra superior */
.promo { background: linear-gradient(90deg, var(--navy), var(--navy-2) 55%, #1a4a85); color: #dbe7f5; font-size: .88rem; }
.promo .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding-block: 6px; }
.promo-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.promo-message { line-height: 1.4; }
.promo-share { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: inherit; font-size: .82rem; transition: background .2s, border-color .2s; }
.promo-share:hover { border-color: rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .12); color: #fff; }
.promo-share .ico { width: 15px; height: 15px; }
.promo-socials { display: flex; align-items: center; gap: 4px; }
.promo-socials a { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; transition: background .2s, border-color .2s; }
.promo-socials a:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .12); }
.promo-socials img { width: 15px; height: 15px; object-fit: contain; filter: brightness(0) invert(1); }
.promo-socials a[aria-label="TikTok MEGARED"] { background: transparent; }
.promo-socials a[aria-label="TikTok MEGARED"] img { width: 20px; height: 20px; filter: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(11, 37, 69, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list a, .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px;
  color: var(--ink); font: inherit; font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer;
}
.nav-list a:hover, .sub-toggle:hover { background: var(--bg); color: var(--primary); }
.nav-list a[aria-current="page"], .sub-toggle.is-active { color: var(--primary); background: var(--sky); }
.nav-list a.nav-store { border: 1px solid #d5e4f4; background: var(--sky); color: var(--navy); font-weight: 600; }
.nav-list a.nav-store .ico { color: #c28a00; }
.nav-list a.nav-store:hover { border-color: #f2d27a; background: #fff8e6; color: var(--navy); }
.sub-toggle .ico { width: 14px; height: 14px; transition: transform .2s; }
.has-sub.open .sub-toggle .ico { transform: rotate(180deg); }
.sub {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.sub a { display: flex; width: 100%; padding: 10px 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 76px 0 96px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(71, 138, 201, .18), transparent 60%),
    radial-gradient(600px 300px at -5% 110%, rgba(71, 138, 201, .10), transparent 60%),
    linear-gradient(180deg, #f4f8fd, #fff);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 20%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 80% 20%, #000, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); }
.lead { font-size: 1.125rem; max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px; }
.panel-title { padding: 14px 16px 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.service-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; color: inherit; transition: background .2s; }
.service-row:hover { background: var(--bg); color: inherit; }
.service-row strong { display: block; color: var(--navy); font-weight: 600; }
.service-row small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.service-row .go { margin-left: auto; color: var(--muted); transition: transform .2s, color .2s; }
.service-row:hover .go { transform: translateX(3px); color: var(--primary); }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 16px; }

/* ---------- Estadísticas ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -48px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.stat { background: #fff; padding: 26px 24px; }
.stat b { display: block; font-size: 2rem; line-height: 1.1; font-weight: 600; color: var(--navy); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--sky); box-shadow: var(--shadow); }
.media img { width: 100%; height: auto; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); margin-bottom: 0; }
a.card { display: block; color: inherit; }
a.card:hover, .card.hover:hover { border-color: #c5d6ea; box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: .92rem; color: var(--primary); }
.card .more .ico { width: 1em; height: 1em; }

.checks li { display: flex; gap: 10px; padding: 5px 0; }
.checks .ico { color: var(--brand); margin-top: 4px; width: 1.1em; height: 1.1em; stroke-width: 2.2; }

.benefit { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.benefit:first-child { border-top: 0; padding-top: 0; }
.benefit h3 { margin: 0 0 4px; font-size: 1.05rem; }
.benefit p { margin: 0; color: var(--muted); }
.benefits-image { width: min(100%, 460px); margin: 32px 0 0; }
.benefits-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 58%; }

/* ---------- Planes ---------- */
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan .tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.plan-speed { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 2px; }
.plan-speed b { font-size: 3.4rem; line-height: 1; font-weight: 600; color: var(--navy); letter-spacing: -.035em; }
.plan-speed span { color: var(--muted); font-weight: 500; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 24px; }
.plans-grid-business, .plans-grid-rural { max-width: 850px; margin-inline: auto; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 0; color: var(--muted); }
.plan-price strong { color: var(--navy); font-size: 1.65rem; font-weight: 700; letter-spacing: -.03em; }
.plan-featured { overflow: hidden; border-color: var(--primary); box-shadow: var(--shadow-lg); }
.plan-ribbon { margin: -28px -28px 18px; padding: 8px 10px; background: var(--navy); color: #fff; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.plan .checks { margin: 18px 0 26px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text); font-size: .95rem; }
.plan .btn { margin-top: auto; }
.plan-conditions { margin-top: 28px; padding: 26px 28px; border: 1px solid #d5e4f4; border-radius: var(--radius); background: var(--sky); }
.plan-conditions h2 { margin-bottom: 16px; font-size: 1.2rem; }
.conditions-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px 22px; }
.conditions-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); }
.conditions-list .ico { flex: none; margin-top: 4px; color: var(--primary); }
.conditions-list strong { color: var(--navy); }
.rural-fit { min-height: 3.2em; margin: 12px 0 0; color: var(--muted); }
.note { margin-top: 28px; font-size: .9rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.note .ico { margin-top: 3px; width: 1.1em; height: 1.1em; }
.g2.narrow { max-width: 800px; }

/* ---------- Reseñas ---------- */
.quote { display: flex; flex-direction: column; gap: 14px; }
.stars { display: flex; gap: 2px; color: #d99a00; }
.stars .ico { fill: currentColor; stroke: none; width: 1em; height: 1em; }
.quote p { margin: 0; color: var(--text); }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.quote footer b { color: var(--navy); font-weight: 600; font-size: .95rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sky); color: var(--primary); display: grid; place-items: center; font-weight: 600; font-size: .85rem; flex: none; }
.rating-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: .95rem; }
.rating-line b { color: var(--navy); }

/* ---------- Páginas internas ---------- */
.page-hero { background: linear-gradient(180deg, #f4f8fd, #fff); padding: 52px 0 44px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.page-hero h1 { max-width: 20ch; margin-bottom: 14px; }
.page-hero.wide h1 { max-width: 26ch; }
.page-hero .lead { margin: 0; color: var(--text); }
.about-hero-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.about-hero-image { margin: 0; }
.about-hero-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-hero-content h1 { max-width: 26ch; }

.prose p { max-width: 72ch; }
.prose h3 { margin-top: 1.6em; }

.timeline { display: grid; gap: 0; max-width: 860px; }
.tl-item { display: grid; grid-template-columns: 96px 1fr; gap: 24px; }
.tl-year { font-size: 1.5rem; font-weight: 600; color: var(--primary); letter-spacing: -.02em; line-height: 1.2; padding-top: 2px; }
.tl-body { position: relative; border-left: 2px solid var(--line); padding: 0 0 36px 28px; }
.tl-item:last-child .tl-body { padding-bottom: 0; border-left-color: transparent; }
.tl-body::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.tl-body h3 { margin-bottom: 8px; }
.tl-body p { margin: 0 0 .8em; color: var(--text); }

.mv { padding: 32px; }
.mv h3 { margin: 16px 0 10px; font-size: 1.3rem; }
.mv p { margin: 0; }

.resource { display: flex; flex-direction: column; gap: 10px; }
.resource .logo { height: 48px; display: flex; align-items: center; }
.resource .logo img { max-height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.resource h3 { margin: 6px 0 0; font-size: 1.05rem; }
.resource p { margin: 0; font-size: .92rem; color: var(--muted); }

.legal { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.legal + .legal { margin-top: 20px; }
.legal h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.legal p { max-width: none; color: var(--text); font-size: .95rem; }
.legal p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; display: grid; gap: 18px; margin: 24px 0 28px; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .95rem; flex: none; }
.steps li span { padding-top: 4px; }
.video-wrap video { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: #0b2545; }
.payment-video { width: min(100%, 360px); justify-self: center; }
.payment-video video { display: block; aspect-ratio: 478 / 850; margin-inline: auto; object-fit: contain; }
.about-facade { width: min(100%, 500px); justify-self: end; margin: 0; }
.about-facade img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.qr { max-width: 300px; margin-inline: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 10px; }
.qr img { width: 100%; height: auto; }

.person { text-align: center; padding: 28px 20px; }
.person .avatar { width: 72px; height: 72px; font-size: 1.25rem; margin: 0 auto 14px; }
.person h3 { margin: 0 0 2px; font-size: 1.02rem; }
.person p { margin: 0; color: var(--muted); font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; }

.contact-card { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.contact-card h3 { margin: 0 0 4px; }
.contact-card p { margin: 0; color: var(--muted); }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 52px; border-radius: 22px; color: #cbd5e1; background: radial-gradient(500px 240px at 100% 0, rgba(71, 138, 201, .35), transparent 70%), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 52ch; }
.cta .actions { margin: 0; }

/* ---------- Pie de página ---------- */
.site-footer { background: #f1f5f9; border-top: 1px solid var(--line); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: .95rem; }
.site-footer h4 { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; font-size: .95rem; }
.site-footer li a { color: var(--ink); }
.site-footer li a:hover { color: var(--primary); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.contact-list .ico { margin-top: 4px; color: var(--primary); width: 1.05em; height: 1.05em; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social a { display: grid; width: 38px; height: 38px; place-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 50%; background: #fff; transition: border-color .2s, background .2s, transform .2s; }
.social a:hover { transform: translateY(-2px); border-color: #c5d6ea; background: var(--sky); }
.social img { width: 20px; height: 20px; object-fit: contain; }
.footer-bottom { margin-top: 48px; background: var(--navy); color: #cbd5e1; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0; }

/* Botón flotante "Paga tu factura" (sobre el chat) */
.pay-pill { position: fixed; right: 20px; bottom: 104px; z-index: 60; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 8px 0 22px; border-radius: 999px; background: linear-gradient(90deg, var(--navy-2), var(--primary)); color: #fff; font-weight: 600; font-size: .98rem; white-space: nowrap; box-shadow: 0 10px 26px rgba(11, 37, 69, .32); transition: transform .2s; }
.pay-pill:hover { color: #fff; transform: translateY(-2px); }
.pay-pill::before { content: ""; position: absolute; inset: -5px; border-radius: 999px; background: linear-gradient(90deg, rgba(71, 138, 201, .9), rgba(29, 94, 168, .9)); filter: blur(12px); z-index: -1; animation: auraPulse 2.4s infinite ease-in-out; }
@keyframes auraPulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .9; transform: scale(1.06); } }
.pay-icon { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--primary); display: grid; place-items: center; }
.pay-icon .ico { width: 20px; height: 20px; }

/* ---------- Animación de entrada (solo con JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 12px; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(11, 37, 69, .08);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-header.open .nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a, .sub-toggle { width: 100%; justify-content: space-between; padding: 13px 12px; }
  .sub { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 6px 12px; min-width: 0; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .nav .btn { width: 100%; }
  .hero { padding: 56px 0 84px; }
  .hero-grid, .split, .about-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-hero-image { width: min(100%, 480px); }
  .about-facade { justify-self: center; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta { padding: 32px 24px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-body { padding-left: 22px; padding-bottom: 28px; }
  .stat { padding: 20px 18px; }
  .stat b { font-size: 1.6rem; }
  .footer-bottom .container { flex-direction: column; }
  .promo .container { justify-content: center; }
  .promo-actions { flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
  .promo-message { width: 100%; text-align: center; }
  .pay-pill { bottom: 92px; right: 16px; height: 50px; font-size: .92rem; gap: 10px; padding-left: 18px; }
  .pay-icon { width: 36px; height: 36px; }
}

/* ---------- Carrusel (reseñas y videos) ---------- */
.carousel { position: relative; }
.car-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding: 6px 2px 10px; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.car-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s, box-shadow .2s; }
.car-btn:hover { border-color: var(--brand); color: var(--primary); box-shadow: var(--shadow); }
.car-btn .ico { width: 18px; height: 18px; }
.car-btn.prev .ico { transform: rotate(180deg); }
.car-dots { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: width .25s, background .25s; }
.car-dots button[aria-current="true"] { width: 24px; background: var(--primary); }
.rating-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: .95rem; }

.video-card { padding: 0; overflow: hidden; }
.video-card .frame { position: relative; width: 100%; padding-top: 56.25%; background: #0b2545; }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { margin: 0; padding: 16px 18px 18px; font-size: 1rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #c5d6ea; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; color: var(--text); }

/* ---------- Ventana del test de velocidad ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(11, 37, 69, .6); backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.modal-box { width: min(960px, 100%); height: min(640px, 88vh); display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modal-head strong { color: var(--navy); }
.modal-clock { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: var(--brand); color: var(--primary); }
.modal iframe { flex: 1; width: 100%; border: 0; }
.modal-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); text-align: center; }
body.modal-open { overflow: hidden; }

@media (max-width: 960px) {
  .car-track > * { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .car-track { gap: 16px; }
  .car-track > * { flex-basis: 88%; }
  .modal { padding: 10px; }
  .modal-clock { display: none; }
}
