:root {
  --azul: #2f6bff;
  --azul-oscuro: #1e4fd8;
  --negro: #0a0a0b;
  --gris: #6b6f7b;
  --gris-claro: #f2f3f6;
  --borde: #e3e5eb;
  --fondo: #ffffff;
  --display: "Montserrat", system-ui, sans-serif;
  --cuerpo: "Inter", system-ui, sans-serif;
  --lado: clamp(20px, 6.6vw, 96px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--cuerpo); color: var(--negro); background: var(--fondo); line-height: 1.5; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
.ancho { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--lado); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.saltar { position: absolute; left: 16px; top: -60px; background: var(--negro); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.saltar:focus { top: 12px; }
.azul-texto { color: var(--azul); }

/* Botones y pastillas */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.boton:active { transform: scale(.97); }
.boton.azul { background: var(--azul); color: #fff; }
.boton.azul:hover { background: var(--azul-oscuro); }
.boton.gris { background: var(--gris-claro); color: var(--negro); }
.boton.gris:hover { background: #e7e9ee; }
.ancho-total { width: 100%; min-height: 52px; }
.pastilla { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pastilla.azul-suave { background: #2f6bff14; color: var(--azul); }
.pastilla.lima { background: #e9f57a; }
.bajada { color: var(--gris); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; max-width: 560px; }
.bajada.centro { text-align: center; max-width: 640px; }

/* Menú */
.nav { position: sticky; top: 0; z-index: 50; background: #ffffffd9; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.con-borde { border-bottom-color: var(--borde); }
.nav-fila { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 1px; }
.marca-logo { width: 20px; height: 30px; fill: var(--negro); }
.marca-logo.azul-relleno { fill: var(--azul); }
.nav-enlaces { display: flex; gap: 34px; font-size: 15px; font-weight: 500; color: var(--gris); }
.nav-enlaces a:hover { color: var(--negro); }
.nav-acciones { display: flex; align-items: center; gap: 18px; }
.enlace-fuerte { font-weight: 600; font-size: 15px; }

/* Portada */
.portada { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: clamp(28px, 4vw, 64px); padding-bottom: clamp(32px, 4vw, 56px); }
.portada-texto { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.portada h1 { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -0.03em; }
.correo { display: flex; align-items: center; width: min(100%, 500px); padding: 5px; border: 1px solid #dadde5; border-radius: 999px; background: #fff; position: relative; }
.correo input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; padding: 0 16px; height: 48px; }
.correo:focus-within { border-color: var(--azul); box-shadow: 0 0 0 4px #2f6bff24; }
.correo-ok { display: none; position: absolute; left: 20px; top: calc(100% + 8px); font-size: 14px; font-weight: 600; color: #15803d; }
.correo.enviado .correo-ok { display: block; }
.sellos { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 600; }
.sellos li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: #f4f5f8; }
.sellos li::before { content: ""; width: 22px; height: 22px; border-radius: 22px; background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-8.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.bajada.grande { font-size: clamp(17px, 1.45vw, 20px); color: #3f434d; max-width: 520px; }
.portada-arte { position: relative; aspect-ratio: 520 / 640; max-width: 560px; width: 100%; justify-self: end; overflow: hidden; border-radius: 0 0 4px 4px; }
.bloque-azul { position: absolute; left: 4%; right: 0; top: 15.6%; bottom: 0; background: var(--azul); border-radius: 40px 40px 0 0; }
.bloque-azul svg { position: absolute; left: 9%; top: 9%; width: 30%; height: 42%; fill: #ffffff26; }
.portada-arte img { position: absolute; left: 7%; top: 1%; width: 92.3%; height: auto; }
/* Portada con el iPhone sobre el pedestal: sube desde abajo y el resplandor de atrás respira despacio. */
.portada-arte.iphone { aspect-ratio: auto; max-width: 470px; overflow: visible; border-radius: 0; }
.portada-arte.iphone img { position: relative; left: auto; top: auto; width: 100%; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, #000 78%, transparent 100%); animation: iphone-sube 1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
.portada-arte.iphone .aura { position: absolute; left: 4%; top: 6%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #2f6bff55 0%, #8fb2ff33 45%, #ffffff00 70%); filter: blur(30px); animation: aura 7s ease-in-out infinite alternate; }
@keyframes iphone-sube { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes aura { from { transform: scale(0.92) translate(0, 0); } to { transform: scale(1.08) translate(4%, 3%); } }
@media (prefers-reduced-motion: reduce) { .portada-arte.iphone img, .portada-arte.iphone .aura { animation: none; } }

/* Historia: solo el video. Los cuatro bordes se funden con el fondo,
   igual que los videos de la web de REAB (clase fade-4). */
.historia { scroll-margin-top: 110px; padding: clamp(40px, 7vw, 120px) 0 clamp(24px, 4vw, 64px); }
.lienzo { position: relative; max-width: 1440px; margin-inline: auto; }
.lienzo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.fundido {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 93%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.pausa { position: absolute; right: 7%; bottom: 10%; width: 44px; height: 44px; border-radius: 44px; border: 0; background: #0a0a0b99; display: grid; place-items: center; opacity: .55; transition: opacity .2s; }
.lienzo:hover .pausa, .pausa:focus-visible, .pausa.detenido { opacity: 1; }
.pausa svg { width: 18px; height: 18px; fill: #fff; }
.pausa .i-play, .pausa.detenido .i-pausa { display: none; }
.pausa.detenido .i-play { display: block; }

/* Rendimiento: lo que está lejos de la pantalla no se dibuja hasta que hace falta */
.precios, .app, .pie { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.franja-cinta { will-change: transform; }
.franja.fuera .franja-cinta { animation-play-state: paused; }

/* Web */
.web { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: clamp(60px, 8vw, 110px); padding-bottom: 40px; text-align: center; }
.web h2, .precios h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.03em; }
/* La portátil y la de escritorio se turnan: una sube desde abajo mientras la otra se va. */
.equipos { display: grid; place-items: center; width: min(100%, 1100px); aspect-ratio: 1800 / 1290; margin-top: 30px; }
.equipos img { grid-area: 1 / 1; width: auto; height: auto; max-width: 100%; max-height: 100%; filter: drop-shadow(0 34px 44px rgba(10, 20, 60, 0.18)); opacity: 0; animation: turno 11s cubic-bezier(0.16, 1, 0.3, 1) infinite; will-change: opacity, transform; }
.equipos img:nth-child(2) { animation-delay: -5.5s; }
@keyframes turno {
  0% { opacity: 0; transform: translateY(46px); }
  9% { opacity: 1; transform: none; }
  47% { opacity: 1; transform: none; }
  54% { opacity: 0; transform: translateY(-18px); }
  100% { opacity: 0; transform: translateY(-18px); }
}
@media (prefers-reduced-motion: reduce) {
  .equipos img { animation: none; opacity: 1; }
  .equipos img:nth-child(2) { display: none; }
}
.mac { width: min(100%, 1140px); margin-top: 42px; }
.mac-pantalla { width: 84.2%; margin-inline: auto; padding: 1.9% 1.9% 2.6%; background: #1a1a1e; border: 2px solid #3a3a42; border-radius: 28px 28px 8px 8px; }
.mac-pantalla img { width: 100%; height: auto; border-radius: 6px; }
.mac-base { height: 22px; background: linear-gradient(180deg, #d9dbe0, #a7aab2); border-radius: 2px 2px 18px 18px; }
.mac-base i { display: block; width: 14%; height: 8px; margin-inline: auto; background: #8e919a; border-radius: 0 0 8px 8px; }

/* Franja */
.franja { margin-top: 56px; background: var(--azul); overflow: hidden; }
.franja-cinta { display: flex; align-items: center; gap: 28px; width: max-content; height: 76px; padding-left: 28px; animation: corre 36s linear infinite; }
.franja-cinta span { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.6vw, 22px); color: #fff; white-space: nowrap; }
.franja-cinta svg { width: 14px; height: 21px; fill: #ffffff80; flex: none; }
@keyframes corre { to { transform: translateX(-50%); } }

/* Precios */
.precios { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: clamp(64px, 7vw, 100px); padding-bottom: 48px; text-align: center; }
.periodo { position: relative; display: inline-flex; gap: 4px; padding: 4px; margin: 22px 0 30px; border-radius: 999px; background: var(--gris-claro); }
.periodo-pastilla { position: absolute; left: 4px; top: 4px; bottom: 4px; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px #0a0a0b1a; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), width 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.periodo button { position: relative; z-index: 1; transition: color 0.3s; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--gris); font-size: 14px; font-weight: 600; }
.periodo button[aria-pressed="true"] { color: var(--negro); }
.periodo em { transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.periodo button[aria-pressed="false"] em { transform: scale(0.92); }
/* El precio da un pequeño salto hacia arriba mientras cuenta; la nota se cruza. */
.plan-precio strong { display: inline-block; font-variant-numeric: tabular-nums; }
.plan-precio strong.salta { animation: salta 0.65s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes salta { 0% { transform: translateY(10px); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
.plan-nota { transition: opacity 0.18s, transform 0.18s; }
.plan-nota.sale { opacity: 0; transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) { .periodo-pastilla, .periodo button, .plan-nota { transition: none; } .plan-precio strong.salta { animation: none; } }
.periodo em { font-style: normal; font-size: 11px; font-weight: 700; color: #15803d; background: #dcfce7; padding: 3px 8px; border-radius: 999px; }
.planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; align-items: end; text-align: left; }
.plan { display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid var(--borde); border-radius: 28px; background: #fff; }
.plan.destacado { padding: 40px 36px; background: var(--negro); color: #fff; border-color: var(--negro); }
.plan-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 24px; }
.plan-insignia { background: var(--azul); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan-para { color: var(--gris); font-size: 15px; line-height: 1.45; min-height: 2.9em; }
.plan-precio { display: flex; align-items: flex-end; gap: 8px; font-family: var(--display); }
.plan-precio small { font-size: 20px; font-weight: 600; color: var(--gris); padding-bottom: 6px; }
.plan-precio strong { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-nota { margin-top: -14px; font-size: 14px; font-weight: 500; color: var(--gris); }
.plan.destacado .plan-para, .plan.destacado .plan-precio small, .plan.destacado .plan-nota { color: #ffffffa6; }
.plan ul { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--borde); font-size: 15px; font-weight: 500; }
.plan.destacado ul { border-top-color: #ffffff26; }
.plan li { display: flex; align-items: center; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 20px; background: #2f6bff14 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-8.5' fill='none' stroke='%232f6bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan.destacado li::before { background-color: var(--azul); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-8.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.garantias { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 30px; color: var(--gris); font-size: 14px; font-weight: 500; }

/* App */
.app { overflow: hidden; }
.app-dentro { display: flex; flex-direction: column; align-items: center; gap: 30px; padding-top: 60px; text-align: center; }
.app h2 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.03em; }
.tiendas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tienda { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 196px; height: 60px; border-radius: 14px; background: var(--negro); color: #fff; }
.tienda svg { width: 27px; height: 27px; fill: #fff; }
.tienda svg.verde { fill: #3ddc84; }
.tienda span { display: flex; flex-direction: column; text-align: left; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.15; }
.tienda small { font-family: var(--cuerpo); font-weight: 400; font-size: 11px; color: #ffffffaa; }
.app-arte { position: relative; width: 100%; height: 380px; }
.app-arte img { position: absolute; left: 50%; top: 0; width: 420px; max-width: none; height: auto; margin-left: -125px; }
.aro { position: absolute; left: 50%; border: 1px solid var(--borde); border-radius: 50%; transform: translateX(-50%); }
.aro.a1 { width: 400px; height: 400px; top: 60px; }
.aro.a2 { width: 560px; height: 560px; top: -20px; border-color: #eef0f4; }

/* Pie */
.pie { padding-bottom: clamp(20px, 4.4vw, 64px); }
.pie .ancho { padding-inline: clamp(12px, 4.4vw, 64px); }
.pie-caja { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding: clamp(28px, 4vw, 56px); border-radius: 32px; background: #f4f5f8; }
.pie-marca { display: flex; flex-direction: column; gap: 18px; max-width: 420px; }
.pie-marca p { color: var(--gris); font-size: 14px; }
.pie-marca small { color: #a0a4ae; font-size: 12px; }
.correo.chico { border: 0; padding: 4px; }
.correo.chico input { height: 42px; }
.correo.chico .boton { min-height: 44px; padding: 0 18px; font-size: 14px; }
.pie-columnas { display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; }
.pie-columnas div { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--gris); }
.pie-columnas h4 { font-size: 15px; color: var(--negro); margin-bottom: 2px; }
.pie-columnas a:hover { color: var(--negro); }

/* ---------- Página de módulos ---------- */
.nav-enlaces a[aria-current="page"] { color: var(--negro); font-weight: 600; }
.mod-portada { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(32px, 4vw, 56px); }
.mod-portada h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.03em; max-width: 880px; }
.mod-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.filtros button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--borde); background: #fff; color: var(--gris); font-size: 14px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.filtros button span { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--gris-claro); color: var(--gris); }
.filtros button:hover { border-color: #c9cdd6; color: var(--negro); }
.filtros button[aria-pressed="true"] { background: var(--negro); border-color: var(--negro); color: #fff; }
.filtros button[aria-pressed="true"] span { background: #ffffff26; color: #fff; }
/* Módulos como barras verticales numeradas: la que tiene el mouse encima se ensancha y muestra su información */
.modulos { display: flex; gap: 8px; height: clamp(420px, 36vw, 500px); }
.modulo { position: relative; flex: 1 1 0; min-width: 0; border-radius: 16px; background: #e6e8ed; overflow: hidden; cursor: pointer; transition: flex-grow .5s cubic-bezier(.2, .8, .2, 1), background .3s; }
.modulo[hidden] { display: none; }
.modulo:not(.abierto):hover { background: #dcdfe6; }
.modulo.abierto { flex-grow: 5.6; background: var(--negro); color: #fff; cursor: default; }
.panel-num { position: absolute; left: 8px; top: 8px; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.9vw, 42px); letter-spacing: -0.05em; line-height: 1; color: #fff; transition: color .3s; }
.modulo.abierto .panel-num { color: #ffffff3d; }
.panel-vertical { position: absolute; left: 50%; bottom: 62px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; white-space: nowrap; color: var(--negro); transition: opacity .2s; }
.modulo-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; }
.modulo-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modulo-ico.azul { background: #dbeafe; color: #2563eb; }
.modulo-ico.morado { background: #ede9fe; color: #7c3aed; }
.modulo-ico.verde { background: #dcfce7; color: #15803d; }
.modulo-ico.naranja { background: #ffedd5; color: #ea580c; }
.modulo-ico.turquesa { background: #ccfbf1; color: #0d9488; }
.modulo-ico.rosa { background: #fce7f3; color: #db2777; }
.panel-ico { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); transition: opacity .2s; }
.modulo.abierto .panel-vertical, .modulo.abierto .panel-ico { opacity: 0; }
.panel-cuerpo { position: absolute; left: 22px; bottom: 22px; width: min(300px, calc(100vw - 150px)); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.modulo.abierto .panel-cuerpo { opacity: 1; visibility: visible; transition: opacity .35s .18s; }
.panel-cuerpo .modulo-donde { justify-self: start; font-size: 11px; font-weight: 600; color: #ffffffb3; padding: 3px 9px; border-radius: 999px; background: #ffffff1f; }
.panel-cuerpo h3 { grid-column: 1 / -1; font-size: 24px; letter-spacing: -0.02em; margin-top: 4px; }
.panel-cuerpo p { grid-column: 1 / -1; color: #ffffffb3; font-size: 15px; line-height: 1.45; }
.panel-cuerpo ul { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; margin-top: 2px; border-top: 1px solid #ffffff26; font-size: 14px; font-weight: 500; }
.panel-cuerpo li, .lista-check li { display: flex; align-items: flex-start; gap: 9px; }
.panel-cuerpo li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 18px; background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-8.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.lista-check li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 18px; background: #2f6bff14 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-8.5' fill='none' stroke='%232f6bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.lista-check { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; font-size: 15px; font-weight: 500; }
/* Pantallas angostas: las barras se deslizan de lado */
@media (max-width: 980px) {
  .modulos { height: 420px; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(var(--lado) * -1); padding-inline: var(--lado); scrollbar-width: none; }
  .modulos::-webkit-scrollbar { display: none; }
  .modulo { flex: 0 0 62px; scroll-snap-align: center; transition: flex-basis .45s cubic-bezier(.2, .8, .2, 1), background .3s; }
  .modulo.abierto { flex: 0 0 min(300px, 78vw); }
  .panel-cuerpo { width: calc(min(300px, 78vw) - 40px); left: 20px; }
  .panel-num { font-size: 30px; }
}
.destacados { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 120px); padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(56px, 7vw, 100px); }
.destacado-fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.destacado-fila.al-reves .destacado-texto { order: 2; }
.destacado-texto { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.destacado-texto h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.025em; }
.ventana { margin: 0; border: 1px solid var(--borde); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px #0a143224; }
.ventana-barra { display: flex; gap: 7px; padding: 12px 14px; background: #f4f5f8; border-bottom: 1px solid var(--borde); }
.ventana-barra i { width: 11px; height: 11px; border-radius: 11px; background: #d5d8df; }
.ventana img { width: 100%; height: auto; }
.cierre { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px); margin-bottom: clamp(32px, 5vw, 64px); border-radius: 32px; background: var(--negro); color: #fff; }
.cierre h2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.025em; max-width: 640px; }
.cierre p { color: #ffffffa6; font-size: 17px; max-width: 560px; }
.boton.blanco { background: #fff; color: var(--negro); margin-top: 8px; }
.boton.blanco:hover { background: #e9ebf0; }
@media (max-width: 860px) {
  .destacado-fila { grid-template-columns: 1fr; }
  .destacado-fila.al-reves .destacado-texto { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .modulo, .panel-cuerpo, .panel-num, .panel-vertical, .panel-ico { transition: none !important; } }

/* ---------- Módulos · estilo nuevo ---------- */
.modulo { background: #f3f5f9; }
.modulo:not(.abierto):hover { background: #e4ecff; }
.modulo.abierto { background: linear-gradient(180deg, #8fb2ff 0%, #3f78ff 34%, #1e4fd8 78%); }
.panel-num { color: #d5def0; }
.modulo:not(.abierto):hover .panel-num { color: #b9caf0; }
.modulo.abierto .panel-num { color: #ffffff59; }
.modulo-ico, .modulo-ico.azul, .modulo-ico.morado, .modulo-ico.verde, .modulo-ico.naranja, .modulo-ico.turquesa, .modulo-ico.rosa { background: #e4ecff; color: #2f6bff; }
.modulo.abierto .panel-cuerpo .modulo-ico { background: #ffffff; color: #2f6bff; }
.panel-cuerpo .modulo-donde { background: #ffffff2e; color: #fff; }
.panel-cuerpo p { color: #ffffffd9; }
.panel-cuerpo ul { border-top-color: #ffffff38; }
.panel-cuerpo li::before { background-color: #ffffff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-8.5' fill='none' stroke='%232f6bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* la pantalla del módulo sube desde abajo al abrir la barra */
@media (min-width: 981px) { .modulo.abierto { flex-grow: 9.5; } .panel-cuerpo { width: min(300px, 56%); } .modulo:not(.abierto) .panel-num { left: 0; right: 0; text-align: center; font-size: clamp(18px, 1.7vw, 24px); } }
.panel-tel { position: absolute; right: 20px; bottom: 22px; width: clamp(120px, 11vw, 158px); height: auto; filter: drop-shadow(0 24px 30px rgba(10, 20, 70, 0.45)); opacity: 0; transform: translateY(70px); transition: opacity .25s, transform .25s; pointer-events: none; }
.modulo.abierto .panel-tel { opacity: 1; transform: none; transition: opacity .45s .2s, transform .7s .2s cubic-bezier(0.16, 1, 0.3, 1); }
@media (max-width: 980px) { .panel-tel { display: none; } }
@media (prefers-reduced-motion: reduce) { .panel-tel, .modulo.abierto .panel-tel { transition: none; transform: none; } }

/* Tableta */
@media (max-width: 1020px) {
  .nav-enlaces { display: none; }
  .planes { grid-template-columns: 1fr; max-width: 520px; align-items: stretch; }
  .plan-para { min-height: 0; }
}

/* Celular */
@media (max-width: 760px) {
  .nav-fila { height: 64px; }
  .enlace-fuerte { display: none; }
  .nav .boton { min-height: 44px; padding: 0 18px; }
  .nav .nav-pc { display: none; }
  .nav .nav-movil { display: inline-flex; }
  .portada { grid-template-columns: 1fr; gap: 36px; }
  .portada-arte { justify-self: center; max-width: 420px; }
  /* En celular el correo y el botón son dos piezas del mismo alto, una debajo de la otra.
     flex: none es clave: en columna, flex: 1 anulaba el alto y la caja quedaba aplastada. */
  .correo, .correo.chico { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .correo:focus-within { box-shadow: none; }
  .correo input, .correo.chico input { flex: none; height: 54px; padding: 0 18px 0 48px; border: 1.5px solid #dadde5; border-radius: 16px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") no-repeat 16px center; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
  .correo input:focus { border-color: var(--azul); box-shadow: 0 0 0 4px #2f6bff24; }
  .correo .boton, .correo.chico .boton { width: 100%; min-height: 54px; border-radius: 16px; font-size: 16px; }
  .correo-ok { position: static; padding-left: 4px; }
  .lienzo video { aspect-ratio: 9 / 16; }
  .fundido {
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 4%, #000 96.5%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 4%, #000 96.5%, transparent 100%);
  }
  .pausa { bottom: 5%; }
  .mac-pantalla { width: 92%; border-radius: 16px 16px 5px 5px; }
  .mac-base { height: 12px; }
  .franja-cinta { height: 60px; }
  .plan, .plan.destacado { padding: 28px 24px; }
  .app-arte { height: 330px; }
  .app-arte img { width: 360px; margin-left: -107px; }
  .aro.a1 { width: 320px; height: 320px; }
  .aro.a2 { width: 460px; height: 460px; }
}

/* Menos movimiento: el video no arranca solo y la franja se queda quieta */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .franja-cinta { animation: none; }
}

/* ---------- Inicio de sesión ---------- */
.acceso-pagina { background: #fff; }
.acceso { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.acceso-marca { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 4vw, 56px); color: #fff; background: radial-gradient(90% 60% at 18% 100%, #2f6bff8c, #1e3a8a33 55%, transparent 100%), var(--negro); overflow: hidden; }
.marca.clara { color: #fff; letter-spacing: 3px; }
.marca.clara .marca-logo { fill: #fff; }
.acceso-lema h2 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.14; letter-spacing: 0.01em; text-transform: uppercase; }
.acceso-lema p { margin-top: 18px; max-width: 420px; color: #ffffffb3; font-size: 16px; line-height: 1.6; }
.acceso-pie { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #8e8e93; }
.acceso-form { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: clamp(24px, 5vw, 64px) var(--lado); }
.acceso-form form { display: flex; flex-direction: column; gap: 18px; width: min(100%, 400px); }
.acceso-form h1 { font-size: 30px; letter-spacing: -0.02em; }
.acceso-sub { margin-top: -12px; color: var(--gris); font-size: 15px; }
.solo-movil { display: none; }
.nav-movil { display: none; }
.campo { display: flex; flex-direction: column; gap: 7px; }
.campo label { font-size: 13.5px; font-weight: 600; }
.campo input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #d3d6de; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--negro); transition: border-color .15s, box-shadow .15s; }
.campo input::placeholder { color: #a0a4ae; }
.campo input:hover { border-color: #b3b7c2; }
.campo input:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 4px #2f6bff24; }
.campo input[aria-invalid="true"] { border-color: #b91c1c; box-shadow: 0 0 0 4px #b91c1c1a; }
.campo-error { color: #b91c1c; font-size: 13px; font-weight: 500; }
.campo-clave { position: relative; }
.campo-clave input { padding-right: 52px; }
.campo-clave button { position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; color: var(--gris); }
.campo-clave button:hover { background: var(--gris-claro); color: var(--negro); }
.campo-clave svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.campo-clave .ojo-no, .campo-clave button[aria-pressed="true"] .ojo { display: none; }
.campo-clave button[aria-pressed="true"] .ojo-no { display: block; }
.acceso-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.casilla { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; }
.casilla input { width: 18px; height: 18px; accent-color: var(--azul); }
.enlace-azul { color: var(--azul); font-weight: 600; }
.enlace-azul:hover { text-decoration: underline; }
.boton.negro { background: var(--negro); color: #fff; border-radius: 12px; }
.boton.negro:hover { background: #26262b; }
.boton .cargando { display: none; width: 16px; height: 24px; fill: #fff; }
.boton.ocupado .texto { display: none; }
.boton.ocupado .cargando { display: block; }
.boton.ocupado .cargando path { animation: franja 1s steps(1) infinite; opacity: .25; }
.boton.ocupado .cargando path:nth-child(2) { animation-delay: .25s; }
.boton.ocupado .cargando path:nth-child(3) { animation-delay: .5s; }
.boton.ocupado .cargando path:nth-child(4) { animation-delay: .75s; }
@keyframes franja { 0% { opacity: 1; } 25% { opacity: .25; } }
.aviso { padding: 12px 14px; border-radius: 12px; background: #fef3c7; color: #92400e; font-size: 14px; font-weight: 500; line-height: 1.45; }
.aviso[hidden] { display: none; }
.acceso-nota { display: flex; gap: 10px; padding: 14px; border-radius: 12px; background: #f4f5f8; color: #3f434d; font-size: 13.5px; line-height: 1.5; }
.acceso-nota svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--gris); stroke-width: 2; stroke-linecap: round; }
.acceso-volver { color: var(--gris); font-size: 14px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.acceso-volver:hover { color: var(--negro); }
@media (max-width: 860px) {
  .acceso { grid-template-columns: 1fr; }
  .acceso-marca { display: none; }
  .solo-movil { display: inline-flex; align-self: center; margin-bottom: 8px; }
  .acceso-form { justify-content: flex-start; padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .boton.ocupado .cargando path { animation: none; opacity: 1; } }

/* ---------- Iniciar sesión · estilo nuevo (azul de la app, campos grises, botón azul) ---------- */
.acceso-marca { background: linear-gradient(180deg, #8fb2ff 0%, #3f78ff 34%, #1e4fd8 72%); justify-content: flex-start; }
.acceso-lema { position: relative; z-index: 1; margin-top: clamp(24px, 6vh, 64px); }
.acceso-lema h2 { text-transform: none; letter-spacing: -0.02em; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; }
.acceso-lema h2 span { color: #dbe6ff; }
.acceso-lema p { color: #ffffffd9; }
.acceso-sellos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.acceso-sellos li { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: #ffffff2e; color: #fff; font-size: 13px; font-weight: 600; }
.acceso-sellos svg { width: 15px; height: 15px; color: #fff; }
@media (min-width: 861px) { .acceso { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.acceso-mano { position: absolute; right: -2%; bottom: -14%; width: auto; height: min(50vh, 540px); max-width: 64%; z-index: 0; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(10, 20, 70, 0.35)); animation: mano-sube 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both; pointer-events: none; }
@keyframes mano-sube { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
.acceso-pie { position: absolute; left: clamp(28px, 4vw, 56px); bottom: clamp(24px, 3vw, 40px); flex-direction: column; gap: 6px; color: #ffffffb3; }
.acceso-form .campo input { border: 0; background: #f3f5f9; border-radius: 16px; height: 54px; padding: 0 16px; }
.acceso-form .campo input:hover { background: #eceff5; }
.acceso-form .campo input:focus { background: #fff; box-shadow: 0 0 0 2px var(--azul), 0 0 0 6px #2f6bff1f; }
.acceso-form .campo input[aria-invalid="true"] { background: #fff; box-shadow: 0 0 0 2px #b91c1c, 0 0 0 6px #b91c1c1a; }
.acceso-form .campo-clave button { top: 5px; }
.acceso-form .campo label { color: #6b6f7b; font-size: 13px; }
.boton.azul-app { min-height: 56px; border-radius: 999px; background: var(--azul); color: #fff; font-weight: 700; box-shadow: 0 10px 24px #2f6bff59; transition: transform .2s, box-shadow .2s, background .2s; }
.boton.azul-app:hover { background: #2559e0; transform: translateY(-1px); box-shadow: 0 14px 30px #2f6bff66; }
.acceso-nota { border-radius: 16px; background: #eef3ff; color: #1e3a8a; }
.acceso-nota svg { stroke: var(--azul); }
.acceso-form form > * { animation: campo-sube 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.acceso-form form > *:nth-child(2) { animation-delay: 0.05s; }
.acceso-form form > *:nth-child(3) { animation-delay: 0.1s; }
.acceso-form form > *:nth-child(4) { animation-delay: 0.15s; }
.acceso-form form > *:nth-child(5) { animation-delay: 0.2s; }
.acceso-form form > *:nth-child(6) { animation-delay: 0.25s; }
.acceso-form form > *:nth-child(7) { animation-delay: 0.3s; }
.acceso-form form > *:nth-child(8) { animation-delay: 0.35s; }
@keyframes campo-sube { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.acceso-cabeza p { margin-top: 8px; color: #ffffffd9; font-size: 14px; }
@media (max-width: 860px) {
  .acceso-pagina { background: linear-gradient(180deg, #8fb2ff 0%, #3f78ff 22%, #1e4fd8 45%); }
  .acceso-form { padding: 0; gap: 0; align-items: stretch; }
  .acceso-cabeza { display: flex; flex-direction: column; align-items: center; padding: 56px 20px 40px; text-align: center; }
  .acceso-form form { width: 100%; flex: 1; padding: 30px 20px 24px; border-radius: 30px 30px 0 0; background: #fff; box-shadow: 0 -8px 24px #0a1e6e33; animation: hoja-sube 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .acceso-volver { justify-content: center; background: #fff; padding-bottom: 20px; }
}
@keyframes hoja-sube { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .acceso-mano, .acceso-form form, .acceso-form form > * { animation: none; } }

/* ---------- Cambio de página con desenfoque ----------
   Lo maneja transicion.js, igual en todos los navegadores:
   al pulsar un enlace a otra página, la actual se desenfoca y se apaga;
   la nueva entra desenfocada y se aclara. */
@keyframes entra-borroso { from { opacity: 0; filter: blur(28px); transform: scale(.975); } }
/* Mientras la página termina de cargar se queda oculta y desenfocada;
   la entrada empieza cuando ya se puede ver, para que no se pierda. */
html.por-entrar body { opacity: 0; filter: blur(28px); transform: scale(.975); }
html.entrando body { animation: entra-borroso 760ms cubic-bezier(.3, 0, .2, 1) both; }
html.saliendo body { opacity: 0; filter: blur(28px); transform: scale(1.025); transition: opacity 320ms cubic-bezier(.4, 0, 1, 1), filter 320ms cubic-bezier(.4, 0, 1, 1), transform 320ms cubic-bezier(.4, 0, 1, 1); pointer-events: none; }
html.saliendo, html.entrando { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html.entrando body { animation: none; }
  html.por-entrar body { opacity: 1; filter: none; transform: none; }
  html.saliendo body { opacity: 1; filter: none; transform: none; transition: none; }
}
