/* =========================================================
   Fibra Inter Maturín · Promo Navidad
   Mobile-first: los estilos base son para teléfono;
   las media queries (min-width) agregan tablet/escritorio.
   ========================================================= */
:root {
  color-scheme: light;
  --blue: #0057b7;          /* azul del logo Inter */
  --blue-2: #1468d6;
  --blue-deep: #0a2a7a;
  --navy: #061a4d;
  --yellow: #ffc20e;
  --yellow-2: #ffd84d;
  --sky: #eef4ff;
  --ink: #0d1b3d;
  --muted: #56627f;
  --line: #d9e3f5;
  --card: #ffffff;
  --bg: #f7f9fe;
  --wa: #14974a;
  --wa-hover: #0f7f3d;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(10, 42, 122, .12);
  --shadow-lg: 0 20px 50px rgba(6, 26, 77, .28);
  --display: "Exo 2", "Arial Black", sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --topbar: 56px;
  --dock: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2 * var(--gutter)); }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Botones (mín. 48px de alto para dedos) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px;
  font: 800 1rem/1.1 var(--body);
  padding: .75em 1.2em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, .reel:focus-visible, .choice:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 2px;
}
.btn--sm { min-height: 40px; padding: .5em .95em; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: .9em 1.5em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 5px 0 #d99a00; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue); border-color: currentColor; }
.btn--ghost-light { color: #fff; }
.btn--link { background: none; color: var(--muted); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--yellow:hover { background: var(--yellow-2); }
  .btn--blue:hover { background: var(--blue-2); }
  .btn--wa:hover { background: var(--wa-hover); }
}

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 26, 77, .94);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  color: #fff;
  padding-top: env(safe-area-inset-top);
}
.topbar__in { display: flex; align-items: center; gap: 12px; height: var(--topbar); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand__logo { height: 26px; width: auto; }
.brand__city {
  font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--yellow); border-left: 1px solid rgba(255,255,255,.3); padding-left: 8px; line-height: 1;
}
.nav { display: none; }
.back {
  display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px;
  border-radius: 50%; color: #fff; text-decoration: none;
}
.back .ico { width: 24px; height: 24px; }

/* ---------- Nieve decorativa ---------- */
.snow {
  position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' opacity='.55'%3E%3Cg transform='translate(40 50)'%3E%3Cpath d='M0-14v28M-12-7l24 14M12-7l-24 14M0-14l-4-4M0-14l4-4M0 14l-4 4M0 14l4 4'/%3E%3C/g%3E%3Cg transform='translate(160 130) scale(.6)'%3E%3Cpath d='M0-14v28M-12-7l24 14M12-7l-24 14'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.5'%3E%3Ccircle cx='110' cy='30' r='2.5'/%3E%3Ccircle cx='190' cy='40' r='1.5'/%3E%3Ccircle cx='80' cy='170' r='2'/%3E%3Ccircle cx='20' cy='130' r='1.5'/%3E%3Ccircle cx='140' cy='200' r='2.5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' opacity='.35'%3E%3Cg transform='translate(250 70) scale(1.4)'%3E%3Cpath d='M0-14v28M-12-7l24 14M12-7l-24 14M0-14l-4-4M0-14l4-4M0 14l-4 4M0 14l4 4'/%3E%3C/g%3E%3Cg transform='translate(90 250) scale(.9)'%3E%3Cpath d='M0-14v28M-12-7l24 14M12-7l-24 14'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: snow 40s linear infinite;
}
.snow--soft { opacity: .22; }
@keyframes snow { from { background-position: 0 0, 0 0; } to { background-position: 60px 440px, -40px 640px; } }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--display); font-style: italic; font-weight: 900;
  text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(1.7rem, 7.4vw, 3.4rem);
  color: #fff;
}
.display--dark { color: var(--blue-deep); }
.hl { color: var(--yellow); }
.hl--blue { color: var(--blue); }
.eyebrow { font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--blue); margin-bottom: .5em; }
.eyebrow--light { color: var(--yellow); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.05rem; color: var(--muted); margin: .9em 0 1.3em; }
.center { text-align: center; }
.fine { font-size: .8rem; color: var(--muted); margin-top: 1em; }
.fine--light { color: rgba(255,255,255,.65); }
.pill {
  display: inline-block; font-weight: 800; font-size: .82rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: .4em .9em; border-radius: 999px; margin-bottom: 1em; color: #fff;
}

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(21,101,230,.55), transparent 70%),
    linear-gradient(160deg, #0057b7 0%, #0a3a9e 45%, #061a4d 100%);
}
.hero__in { position: relative; display: grid; gap: 28px; padding: 28px 0 40px; }
.hero__title { font-size: clamp(2.2rem, 10.5vw, 4.6rem); line-height: .98; }
.hero__price { display: flex; align-items: center; gap: 12px; margin: .9em 0 .6em; font-weight: 800; font-size: 1rem; line-height: 1.15; }
.price-tag {
  font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: 2.3rem; line-height: 1;
  background: var(--yellow); color: var(--blue-deep);
  padding: .12em .42em .12em .32em; border-radius: 12px;
  transform: rotate(-3deg); box-shadow: 0 6px 0 #d99a00;
}
.price-tag sup { font-size: .5em; }
.hero__lead { font-size: 1.02rem; max-width: 34em; opacity: .95; }
.hero__ctas { display: grid; gap: 12px; margin: 1.3em 0 1.1em; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero__chips li { font-weight: 700; font-size: .82rem; background: rgba(6,26,77,.45); padding: .35em .75em; border-radius: 10px; }
.hero__art { position: relative; margin: 0 auto; width: min(78%, 320px); }
.hero__art > img:first-child { border-radius: 18px; box-shadow: var(--shadow-lg); transform: rotate(2deg); border: 5px solid rgba(255,255,255,.9); }
.hero__badge { position: absolute; width: 84px; left: -26px; bottom: 18px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-6deg); } }

/* ---------- Premios ---------- */
.prizes { background: var(--yellow); color: var(--navy); }
.prizes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 16px 0; }
.prize { display: flex; align-items: center; gap: 8px; }
.prize__n { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 2rem; line-height: 1; color: var(--blue-deep); }
.prize__t { font-weight: 900; text-transform: uppercase; font-size: .82rem; line-height: 1.15; }
.prize__t small { display: block; font-weight: 700; text-transform: none; font-size: .78rem; opacity: .8; }
.prize--date { background: var(--blue-deep); color: #fff; border-radius: 12px; padding: 8px 12px; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 52px 0; }
.section--blue { color: #fff; overflow: hidden; background: linear-gradient(160deg, #0a3a9e, #061a4d); }
.section--sky { background: var(--sky); }
.section--form { overflow: hidden; color: #fff; background: linear-gradient(170deg, #0057b7 0%, #0a2a7a 60%, #061a4d 100%); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.section__head .display { margin-bottom: .3em; }
.split { position: relative; display: grid; gap: 32px; align-items: center; }
.framed { margin: 0 auto; max-width: 440px; }
.framed img { border-radius: 18px; box-shadow: var(--shadow-lg); }
.framed--sm { width: min(70%, 260px); }
.framed--tilt img { transform: rotate(-2deg); }
.framed--phone { width: min(62%, 240px); }
.framed--phone img { border: 6px solid #0d1b3d; border-radius: 26px; }
.split--rev > .framed { order: 2; }
.hide-mobile { display: none; }

/* ---------- Planes (carrusel deslizable en celular) ---------- */
.swipe-hint { text-align: right; font-size: .8rem; font-weight: 800; color: var(--blue); margin: -12px 0 6px; }
.plans {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter)); padding: 18px var(--gutter) 14px;
  scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.plans::-webkit-scrollbar { display: none; }
.plan {
  position: relative; display: flex; flex-direction: column; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px 18px; box-shadow: var(--shadow);
}
.plan--hot { background: linear-gradient(165deg, #0057b7, #0a2a7a); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.plan__flag {
  position: absolute; top: -13px; left: 18px;
  background: var(--yellow); color: var(--navy); font-weight: 900; font-size: .78rem;
  padding: .3em .9em; border-radius: 999px; white-space: nowrap; margin: 0;
}
.plan__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.plan__speed { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 2.6rem; color: var(--blue); line-height: .95; }
.plan--hot .plan__speed { color: var(--yellow); }
.plan__speed span { display: block; font-size: 1.05rem; text-transform: lowercase; }
.plan__price { margin: 0; font-weight: 900; font-size: 2.1rem; line-height: 1; text-align: right; }
.plan__price .cur { font-size: .55em; vertical-align: .55em; margin-right: 1px; }
.plan__price sup { font-size: .45em; }
.plan__price small { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); margin-top: 4px; }
.plan--hot .plan__price small { color: rgba(255,255,255,.75); }
.plan__list { list-style: none; padding: 0; margin: 14px 0 18px; flex: 1; font-size: .95rem; }
.plan__list li { padding: 7px 0 7px 26px; border-top: 1px dashed var(--line); position: relative; font-weight: 600; }
.plan--hot .plan__list li { border-color: rgba(255,255,255,.2); }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%230a2a7a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plan__ctas { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.install {
  display: grid; gap: 10px; margin-top: 18px;
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 14px 16px;
  font-size: .95rem;
}
.install__item { display: flex; align-items: center; gap: 10px; }
.install strong { color: var(--blue); }

/* ---------- Beneficios (2x2 compacto en celular) ---------- */
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perks li {
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-left: 3px solid var(--yellow);
  border-radius: 12px; padding: 12px;
}
.perks strong { display: block; color: var(--yellow); font-size: .95rem; line-height: 1.2; }
.perks span { display: block; font-size: .82rem; opacity: .9; line-height: 1.35; margin-top: 2px; }

/* ---------- Sorteo ---------- */
.gears { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.gears li {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 14px; padding: 10px 14px; box-shadow: 0 3px 10px rgba(10,42,122,.07);
  font-size: .92rem; line-height: 1.3;
}
.gears strong { display: block; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; color: var(--blue-deep); font-size: .95rem; }
.gears b { color: var(--blue); }
.gear {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #fff; border: 3px solid var(--yellow); color: var(--blue-deep);
  font: italic 900 1.05rem/1 var(--display);
}
.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px;
  scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.reel img { border-radius: 14px; box-shadow: var(--shadow); scroll-snap-align: start; aspect-ratio: 520 / 686; object-fit: cover; width: 100%; }

/* ---------- Empresas ---------- */
.biz { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); margin-bottom: 12px; }
.biz__row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.biz__row:first-child { border-top: 0; }
.biz__sp { font-family: var(--display); font-style: italic; font-weight: 900; color: var(--blue-deep); font-size: 1.15rem; }
.biz__sp small { font-family: var(--body); font-style: normal; font-weight: 800; font-size: .7em; }
.biz__ex { font-size: .82rem; color: var(--muted); font-weight: 600; grid-column: 1; grid-row: 2; }
.biz__pr { font-weight: 900; font-size: 1.3rem; color: var(--blue); text-align: right; line-height: 1.1; grid-column: 2; grid-row: 1 / span 2; }
.biz__pr s { font-size: .75rem; color: #9aa5bf; font-weight: 700; margin-right: 3px; }
.biz__pr small { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; }
.row-ctas { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }

/* ---------- Elegir cómo contratar ---------- */
.choose { position: relative; display: grid; gap: 14px; }
.choice {
  display: grid; grid-template-columns: 1fr; gap: 6px; align-items: start;
  border-top: 5px solid var(--yellow);
  background: var(--card); color: var(--ink); text-decoration: none;
  border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg);
  transition: transform .15s;
}
.choice__body strong { display: block; font-size: 1.15rem; font-weight: 900; color: var(--blue-deep); }
.choice__body span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.choice__go { margin-top: 10px; }
.choice--wa { border-top-color: var(--wa); }
.agent { position: relative; display: flex; gap: 14px; align-items: center; border-radius: 16px; padding: 14px; margin-top: 18px; }
.agent--light { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.agent__av {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: var(--yellow);
  font: italic 900 1.1rem/1 var(--display); border: 3px solid var(--yellow);
}
.agent strong { display: block; font-size: 1.05rem; }
.agent span { display: block; font-size: .85rem; opacity: .8; }
.agent__tel { display: inline-block; margin-top: 2px; font-weight: 800; color: var(--yellow); text-decoration: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #fff; padding: 36px 0 calc(var(--dock) + 28px + env(safe-area-inset-bottom)); }
.footer__banner { border-radius: 14px; margin-bottom: 22px; width: 100%; }
.footer__in { display: grid; gap: 14px; }
.footer__logo { height: 30px; width: auto; margin-bottom: 10px; }
.footer a { color: var(--yellow); font-weight: 800; text-decoration: none; }
.footer--mini { padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); }
.footer--mini .fine { margin: 0; }

/* ---------- Barra fija inferior (celular) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -6px 20px rgba(6,26,77,.15);
  transform: translateY(110%); transition: transform .25s ease;
}
.dock.is-visible { transform: none; }
.dock .btn { min-height: 50px; box-shadow: none; }
.fab { display: none; }

/* ---------- Página de solicitud ---------- */
.fpage {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0057b7 0, #0a2a7a 320px, var(--bg) 320px);
}
.fpage__in { position: relative; padding: 22px 0 36px; max-width: 680px; }
.fpage__head { color: #fff; margin-bottom: 18px; }
.fpage__head .display { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: .25em; }
.fpage__head p:last-child { opacity: .92; margin: 0; }

.card { background: var(--card); color: var(--ink); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg); }
.form { display: grid; gap: 0; }
.fstep { display: grid; gap: 14px; padding: 18px 0; border-top: 1px dashed var(--line); }
.fstep:first-child { border-top: 0; padding-top: 4px; }
.fstep__title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 900; color: var(--blue-deep); }
.step {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--yellow); color: var(--navy); font: italic 900 1rem/1 var(--display);
}
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 800; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.field label { margin-bottom: 0; }
.field-row { display: grid; gap: 14px; }
.opt { font-weight: 600; color: var(--muted); font-size: .82rem; }
input, select, textarea {
  width: 100%; min-height: 50px;
  font: 600 16px/1.3 var(--body);  /* 16px evita el zoom automático en iPhone */
  color: var(--ink);
  background: #f5f8ff; border: 2px solid var(--line); border-radius: 12px;
  padding: .7em .85em; transition: border-color .15s, background-color .15s;
  min-width: 0; -webkit-appearance: none; appearance: none;
}
select {
  padding-right: 2.4em;
  background: #f5f8ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230057b7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .7em center/18px no-repeat;
}
input[type="date"] { display: block; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); background-color: #fff; outline: none; }
textarea { resize: vertical; min-height: 84px; }
.input-group { display: flex; gap: 8px; }
.input-group select { width: 76px; flex: none; }
.invalid { border-color: #d93025 !important; background-color: #fff5f4 !important; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; cursor: pointer; font-weight: 700; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px;
  text-align: center; padding: .5em; border-radius: 12px; line-height: 1.2;
  border: 2px solid var(--line); background: #f5f8ff; transition: all .15s;
}
.seg input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Selector de planes en tarjetas */
.planpick { display: grid; gap: 8px; }
.pp { position: relative; cursor: pointer; }
.pp input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pp__box {
  display: grid; grid-template-columns: 74px 1fr 24px; gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: #f5f8ff;
  transition: all .15s;
}
.pp__speed { font: italic 900 1.7rem/1 var(--display); color: var(--blue); }
.pp__speed small { display: block; font: 800 .72rem/1.2 var(--body); color: var(--muted); text-transform: uppercase; }
.pp__info b { display: block; font-size: 1.1rem; }
.pp__info small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; line-height: 1.3; }
.pp__radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.pp--top .pp__box::after {
  content: "Más elegido"; position: absolute; top: -9px; right: 12px;
  font-size: .68rem; font-weight: 900; background: var(--yellow); color: var(--navy);
  padding: .15em .6em; border-radius: 999px;
}
.pp input:checked + .pp__box { border-color: var(--blue); background: #fff; box-shadow: 0 4px 14px rgba(0,87,183,.18); }
.pp input:checked + .pp__box .pp__radio { border: 7px solid var(--blue); }
.pp input:focus-visible + .pp__box { outline: 3px solid var(--yellow); outline-offset: 2px; }

.summary {
  display: grid; gap: 2px; margin: 4px 0 16px; padding: 14px 16px;
  background: var(--sky); border: 2px dashed #b9cdf2; border-radius: 14px; font-size: .9rem; color: var(--muted);
}
.summary strong { color: var(--blue-deep); font-size: 1.1rem; }
.summary__gift { color: var(--blue); font-weight: 800; margin-top: 4px; }
.hint { font-size: .84rem; color: var(--muted); margin: 0; }
.hint--ok { color: var(--wa); font-weight: 700; }
.note { background: #fff8e1; border: 1px solid #ffe08a; border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 1px; padding: 0; accent-color: var(--blue); -webkit-appearance: checkbox; appearance: auto; }
.form__error { background: #fdecea; color: #a1190f; border-radius: 12px; padding: 12px 14px; font-weight: 700; margin: 0 0 14px; font-size: .92rem; }
.form .hint.center { margin-top: 10px; }

.alt { text-align: center; margin-top: 22px; display: grid; gap: 10px; }
.alt p { margin: 0; font-weight: 800; color: var(--blue-deep); }
.alt__tel { color: var(--blue); font-weight: 800; text-decoration: none; padding: 8px; }

/* ---------- Modal ---------- */
.modal {
  border: 0; border-radius: 22px; padding: 24px 20px; width: min(460px, calc(100% - 24px));
  box-shadow: var(--shadow-lg); color: var(--ink);
}
.modal::backdrop { background: rgba(6,26,77,.6); }
.modal h3 { font-size: 1.35rem; color: var(--blue-deep); margin-bottom: 8px; }
.modal p { color: var(--muted); }
.modal__details summary { cursor: pointer; font-weight: 800; color: var(--blue); padding: 6px 0; }
.modal__preview {
  max-height: 200px; overflow: auto; background: #f5f8ff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; font: 600 .8rem/1.5 ui-monospace, Consolas, monospace;
  white-space: pre-wrap; word-break: break-word; margin: 6px 0 0;
}
.modal__ctas { display: grid; gap: 8px; margin-top: 16px; }

/* =========================================================
   Pantallas medianas y grandes
   ========================================================= */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero__ctas { display: flex; flex-wrap: wrap; }
  .prizes__grid { grid-template-columns: repeat(4, 1fr); }
  .prize { justify-content: center; }
  .plans { grid-auto-columns: 46%; }
  .reel { grid-auto-columns: 36%; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .card { padding: 28px; }
  .install { grid-template-columns: repeat(3, 1fr); }
  .choose { grid-template-columns: 1fr 1fr; }
  .gears { grid-template-columns: 1fr 1fr; }
  .gears li:last-child { grid-column: 1 / -1; }
}

@media (min-width: 980px) {
  :root { --topbar: 64px; }
  body { font-size: 17px; }
  .brand__logo { height: 30px; }
  .nav { display: flex; gap: 22px; font-weight: 700; font-size: .95rem; margin-right: 12px; }
  .nav a { text-decoration: none; opacity: .85; }
  .nav a:hover { opacity: 1; color: var(--yellow); }

  .hero__in { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0 72px; }
  .hero__price { font-size: 1.2rem; }
  .price-tag { font-size: 2.7rem; }
  .hero__lead { font-size: 1.15rem; }
  .hero__art { width: 100%; max-width: 430px; }
  .hero__badge { width: 118px; left: -40px; bottom: 36px; }

  .section { padding: 88px 0; }
  .section__head { margin-bottom: 44px; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--rev > .framed { order: 0; }
  .hide-mobile { display: block; }
  .framed--sm { width: 100%; max-width: 400px; }
  .framed--phone { width: 100%; max-width: 320px; }

  .swipe-hint { display: none; }
  .plans { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 16px 0 0; gap: 24px; }
  .plan { padding: 30px 26px 26px; }
  .plan--hot { transform: translateY(-12px); }
  .plan__top { display: block; }
  .plan__speed { font-size: 3.2rem; }
  .plan__speed span { font-size: 1.3rem; }
  .plan__price { text-align: left; font-size: 2.6rem; margin-top: 16px; }
  .plan__price small { font-size: .85rem; }
  .plan__flag { left: 50%; transform: translateX(-50%); }
  .install { margin-top: 40px; padding: 18px 22px; }

  .perks { grid-template-columns: 1fr; gap: 12px; }
  .perks li { padding: 14px 18px; }
  .perks strong { font-size: 1.05rem; }
  .perks span { font-size: .95rem; }

  .gears { grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 40px; }
  .gears li { flex-direction: column; align-items: flex-start; padding: 18px 16px; }
  .gears li:last-child { grid-column: auto; }
  .reel { grid-auto-columns: minmax(230px, 260px); margin: 0; padding: 6px 4px 18px; scrollbar-width: thin; scrollbar-color: var(--blue) transparent; }

  .biz__row { grid-template-columns: 120px 1fr auto; padding: 14px 18px; }
  .biz__ex { grid-column: auto; grid-row: auto; font-size: .9rem; }
  .biz__pr { grid-column: auto; grid-row: auto; font-size: 1.35rem; }
  .row-ctas { display: flex; }

  .choice { padding: 26px; grid-template-rows: 1fr auto; }
  .choice:hover { transform: translateY(-4px); }
  .agent--light { max-width: 520px; margin: 24px auto 0; }

  .footer { padding-bottom: 48px; }
  .footer__in { grid-template-columns: 1fr 1.4fr; gap: 28px; }

  .dock { display: none; }
  .fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 60;
    width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.3); transition: transform .15s;
  }
  .fab svg { width: 34px; height: 34px; }
  .fab:hover { transform: scale(1.07); }
  .fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #25d366; animation: ping 2.4s ease-out infinite; }

  .fpage { background: linear-gradient(180deg, #0057b7 0, #0a2a7a 360px, var(--bg) 360px); }
  .fpage__in { padding: 40px 0 56px; }
  .fstep { gap: 16px; padding: 22px 0; }
}
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* Pantallas muy pequeñas (≤ 360px) */
@media (max-width: 360px) {
  :root { --gutter: 12px; }
  .topbar__wa span { display: none; }
  .brand__city { display: none; }
  .hero__chips li { font-size: .76rem; }
  .plan__speed { font-size: 2.2rem; }
  .plan__price { font-size: 1.8rem; }
  .pp__box { grid-template-columns: 62px 1fr 22px; gap: 10px; padding: 10px; }
  .pp__speed { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snow, .hero__badge, .fab::before { animation: none; }
  .btn, .dock { transition: none; }
}
