/* CondominIA · sitio público. Misma identidad que la app (frontend/src/styles.css):
   noche verde azulada, esmeralda y el plano arquitectónico de las cabeceras. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2');
}

:root {
  --noche: #0a1c29;
  --noche-2: #112a3a;
  --noche-3: #07141e;
  --noche-borde: #1d3a4c;
  --noche-tinta: #c3d2dc;
  --noche-tinta-2: #93a9b8;
  --papel: #f4f6fa;
  --hoja: #ffffff;
  --tinta: #0f172a;
  --tinta-2: #334155;
  --tinta-3: #566780;
  --borde: #e4e8ef;
  --borde-fuerte: #cbd3df;
  --lavado: #eef2f7;
  --esm-50: #ecfdf5;
  --esm-100: #d1fae5;
  --esm-200: #a7f3d0;
  --esm-300: #6ee7b7;
  --esm-400: #34d399;
  --esm-500: #10b981;
  --esm-700: #047857;
  --esm-800: #065f46;
  --esm-900: #064e3b;
  --senal: #b45309;
  --senal-lavado: #fef3c7;
  --ambar: #fbbf24;

  --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 24px;

  --sombra-1: 0 1px 2px rgb(15 23 42 / .05), 0 6px 18px -10px rgb(15 23 42 / .12);
  --sombra-2: 0 1px 2px rgb(15 23 42 / .06), 0 18px 40px -18px rgb(15 23 42 / .28);
  --sombra-3: 0 50px 90px -30px rgb(2 12 20 / .7), 0 16px 28px -10px rgb(2 12 20 / .45);

  --sale: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 20px;
  --cabecera: 68px;
  --ritmo: clamp(80px, 11vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera) + 12px); -webkit-text-size-adjust: 100%; scrollbar-color: var(--esm-700) var(--noche-3); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  accent-color: var(--esm-700);
  caret-color: var(--esm-700);
}
::selection { background: var(--esm-300); color: var(--noche); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--esm-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
small { font-size: inherit; }

:focus-visible { outline: 3px solid var(--esm-400); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--hoja); color: var(--tinta); padding: 10px 16px; border-radius: var(--r-md); font-weight: 600; box-shadow: var(--sombra-2); }
.saltar:focus { top: 12px; }

.contenedor { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Tipografía de sección ---------- */
.seccion { padding-block: var(--ritmo); position: relative; }
.seccion--blanca { background: var(--hoja); }
.seccion--noche { background: var(--noche); color: #fff; }
.seccion h2, .dia h2 { font-size: clamp(2rem, 5.2vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.04; font-weight: 800; }
.bajada { margin-top: 20px; font-size: clamp(1.04rem, 2vw, 1.2rem); line-height: 1.55; color: var(--tinta-2); max-width: 36em; }
.bajada--clara { color: var(--noche-tinta); }
.titulo-ancho { max-width: 17em; }
.tinta-esm { color: var(--esm-700); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-md); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s var(--sale), box-shadow .18s ease;
}
.boton svg { font-size: 18px; transition: transform .25s var(--sale); }
.boton:hover svg { transform: translateX(4px); }
.boton:active { transform: scale(.98); }
.boton--primario { background: var(--esm-700); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .16) inset, 0 10px 24px -10px rgb(4 120 87 / .8); }
.boton--primario:hover { background: var(--esm-800); }
.boton--secundario { background: var(--hoja); color: var(--tinta); border-color: var(--borde-fuerte); }
.boton--secundario:hover { color: var(--esm-800); border-color: var(--esm-700); }
.boton--contorno-claro { color: #fff; border-color: rgb(195 210 220 / .32); background: rgb(255 255 255 / .04); }
.boton--contorno-claro:hover { border-color: var(--esm-300); color: var(--esm-200); }
.boton--whatsapp { background: var(--esm-400); color: var(--noche); }
.boton--whatsapp:hover { background: var(--esm-300); }
.boton--grande { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: var(--r-lg); }
.boton--chico { min-height: 38px; padding: 0 14px; font-size: 14px; }
.boton--ancho { width: 100%; }

/* ---------- Cabecera ---------- */
.cabecera { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--cabecera); color: #fff; transition: background-color .25s ease, box-shadow .25s ease; }
.cabecera.es-solida { background: rgb(10 28 41 / .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgb(195 210 220 / .1); }
.cabecera__fila { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; min-height: 44px; }
.marca b { color: var(--esm-400); font-weight: 800; }
.marca__logo { width: 30px; height: 30px; color: var(--esm-500); stroke-width: 1.9; }
.menu-boton { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(195 210 220 / .25); border-radius: var(--r-md); background: transparent; color: #fff; cursor: pointer; }
.menu-boton svg { font-size: 22px; }
.menu {
  position: fixed; inset: var(--cabecera) 0 auto; display: flex; flex-direction: column; padding: 8px var(--gutter) 24px;
  background: var(--noche); border-bottom: 1px solid var(--noche-borde);
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s var(--sale), opacity .2s ease, visibility .2s;
  max-height: calc(100dvh - var(--cabecera)); overflow-y: auto;
}
.menu.esta-abierto { transform: none; opacity: 1; visibility: visible; }
.menu a { color: var(--noche-tinta); text-decoration: none; font-weight: 600; font-size: 16px; min-height: 50px; display: flex; align-items: center; border-bottom: 1px solid rgb(195 210 220 / .1); }
.menu a:hover { color: #fff; }
.menu .menu__cta { margin-top: 16px; color: #fff; border: 1px solid transparent; justify-content: center; }
.menu .menu__entrar { border-bottom: 0; }
@media (min-width: 1080px) {
  .menu-boton { display: none; }
  .menu { position: static; flex-direction: row; align-items: center; gap: 26px; padding: 0; background: none; border: 0; transform: none; opacity: 1; visibility: visible; overflow: visible; }
  .menu a { min-height: 44px; border: 0; font-size: 14.5px; position: relative; }
  .menu a:not(.boton)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--esm-400); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--sale); }
  .menu a:not(.boton):hover::after { transform: scaleX(1); }
  .menu .menu__cta { margin: 0 0 0 4px; min-height: 42px; }
  .menu .menu__entrar { margin-left: 10px; color: #fff; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--noche); color: #fff; padding: calc(var(--cabecera) + clamp(36px, 7vw, 84px)) 0 clamp(150px, 22vw, 300px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(90% 70% at 85% 0%, rgb(16 185 129 / .22), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgb(17 42 58 / .9), transparent 70%), linear-gradient(180deg, #081823, var(--noche) 55%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(150 226 214 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(150 226 214 / .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%); }
.hero__plano { position: absolute; z-index: -1; left: 50%; bottom: -2%; width: max(1500px, 118vw); transform: translateX(-42%); opacity: .3; mix-blend-mode: screen; pointer-events: none; }
.hero__plano img { width: 100%; }
.hero__rejilla { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 8.4vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
.hero__giro { display: block; color: var(--esm-300); }
.hero__bajada { margin-top: 26px; font-size: clamp(1.06rem, 2.2vw, 1.24rem); line-height: 1.55; color: var(--noche-tinta); max-width: 33em; }
.hero__acciones { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__acciones .boton { flex: 1 1 100%; }
.hero__garantias { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--noche-tinta); }
.hero__garantias li { display: inline-flex; align-items: center; gap: 7px; }
.hero__garantias svg { color: var(--esm-400); font-size: 17px; stroke-width: 2.6; }
@media (min-width: 560px) { .hero__acciones .boton { flex: 0 0 auto; } }
@media (min-width: 1000px) { .hero__rejilla { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; } }

/* Entrada del hero: una sola secuencia, desde contenido ya visible si no hay JS. */
.js .hero__texto > * { animation: sube .9s var(--sale) both; }
.js .hero__texto > :nth-child(2) { animation-delay: .08s; }
.js .hero__texto > :nth-child(3) { animation-delay: .16s; }
.js .hero__texto > :nth-child(4) { animation-delay: .24s; }
.js .torre { animation: sube 1.1s .15s var(--sale) both; }
@keyframes sube { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* La torre: cada ventana es un apartamento; se enciende cuando paga. */
.torre { position: relative; padding: 22px 20px 16px; border-radius: var(--r-2xl); background: linear-gradient(180deg, rgb(17 42 58 / .82), rgb(10 28 41 / .9)); border: 1px solid rgb(150 226 214 / .16); box-shadow: var(--sombra-3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.torre__rotulo { font-size: 13.5px; font-weight: 600; color: var(--noche-tinta-2); }
.torre__cifra { margin-top: 4px; font-size: clamp(1.7rem, 4.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.torre__cifra small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--noche-tinta-2); white-space: nowrap; }
.torre__barra { margin-top: 12px; height: 6px; border-radius: 3px; background: rgb(195 210 220 / .14); overflow: hidden; }
.torre__barra i { display: block; height: 100%; width: var(--pct, 85%); border-radius: 3px; background: linear-gradient(90deg, var(--esm-500), var(--esm-300)); transition: width .9s var(--sale); }
.torre__estado { margin-top: 10px; font-size: 14px; color: var(--noche-tinta); }
.torre__estado b { color: #fff; font-variant-numeric: tabular-nums; }
.torre__plano { margin-top: 40px; padding-inline: clamp(6px, 3%, 22px); }
.torre__techo { height: 16px; margin-inline: 14%; border: 1px solid rgb(150 226 214 / .35); border-bottom: 0; border-radius: 4px 4px 0 0; position: relative; }
.torre__techo::before { content: ''; position: absolute; left: 22%; bottom: 100%; width: 1px; height: 22px; background: rgb(150 226 214 / .45); }
.torre__techo::after { content: ''; position: absolute; left: calc(22% - 2px); bottom: calc(100% + 20px); width: 5px; height: 5px; border-radius: 50%; background: #f87171; animation: baliza 2.4s ease-in-out infinite; }
@keyframes baliza { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.torre__pisos { display: grid; gap: 5px; padding: 8px; border: 1px solid rgb(150 226 214 / .35); background: rgb(7 20 30 / .55); }
.torre__piso { display: grid; grid-template-columns: 22px repeat(8, minmax(0, 1fr)); gap: 5px; align-items: center; }
.torre__nivel { font-family: var(--mono); font-size: 10.5px; color: var(--noche-tinta-2); }
.apto { position: relative; aspect-ratio: 1.25; min-height: 26px; padding: 0; border: 1px solid rgb(150 226 214 / .24); border-radius: 3px; background: rgb(150 226 214 / .03); cursor: default; transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease, transform .2s var(--sale); }
.apto::before { content: ''; position: absolute; inset: 0 50% 0 auto; width: 1px; background: rgb(150 226 214 / .18); }
.apto.al-dia { background: linear-gradient(180deg, rgb(110 231 183 / .95), rgb(16 185 129 / .78)); border-color: var(--esm-300); box-shadow: 0 0 14px -2px rgb(52 211 153 / .7); }
.apto.al-dia::before { background: rgb(6 78 59 / .35); }
.apto.pendiente { cursor: pointer; border-color: rgb(251 191 36 / .7); animation: late 2.6s ease-in-out infinite; }
.apto.pendiente:hover, .apto.elegido { transform: scale(1.12); background: rgb(251 191 36 / .22); z-index: 1; }
.apto.elegido { outline: 2px solid var(--ambar); outline-offset: 2px; }
.apto.avisado { animation: none; border-color: var(--esm-300); background: rgb(52 211 153 / .18); }
.apto.recien { animation: enciende .9s var(--sale); }
@keyframes late { 0%, 100% { background-color: rgb(251 191 36 / .04); } 50% { background-color: rgb(251 191 36 / .2); } }
@keyframes enciende { 0% { transform: scale(1.35); box-shadow: 0 0 34px 6px rgb(110 231 183 / .95); } 100% { transform: none; } }
.torre__suelo { height: 22px; border-top: 2px solid rgb(150 226 214 / .5); margin-inline: -4%; position: relative; }
.torre__suelo i { position: absolute; left: 50%; bottom: 100%; width: 34px; height: 20px; margin-left: -17px; border: 1px solid rgb(150 226 214 / .5); border-bottom: 0; background: var(--noche-3); }
.torre__ficha { margin-top: 4px; min-height: 62px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 14px; border-radius: var(--r-lg); background: rgb(7 20 30 / .6); border: 1px solid rgb(150 226 214 / .14); }
.torre__ficha-texto { flex: 1 1 200px; font-size: 14px; line-height: 1.45; color: var(--noche-tinta); }
.torre__ficha-texto b { color: #fff; }
.torre__ficha.cambia .torre__ficha-texto { animation: cambia .5s var(--sale); }
.torre__nota { margin-top: 10px; font-size: 12.5px; color: var(--noche-tinta-2); text-align: center; }
@keyframes cambia { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- El sistema asomando + cinta ---------- */
.asoma { position: relative; background: var(--papel); }
.asoma .contenedor { margin-top: calc(-1 * clamp(110px, 17vw, 240px)); position: relative; z-index: 2; }
.ventana { border-radius: var(--r-lg); overflow: hidden; background: var(--hoja); border: 1px solid var(--borde); box-shadow: var(--sombra-2); }
.ventana img { width: 100%; }
.ventana__barra { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--lavado); border-bottom: 1px solid var(--borde); }
.ventana__barra i { width: 9px; height: 9px; border-radius: 50%; background: var(--borde-fuerte); }
.ventana__barra span { margin-left: 12px; flex: 0 1 300px; height: 20px; padding: 0 12px; border-radius: 10px; background: var(--hoja); font-family: var(--mono); font-size: 11px; line-height: 20px; color: var(--tinta-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ventana--asoma { border-radius: var(--r-xl); box-shadow: var(--sombra-3); }
.ventana--noche { border-color: rgb(150 226 214 / .2); box-shadow: var(--sombra-3); }
.ventana--noche .ventana__barra { background: var(--noche-2); border-color: var(--noche-borde); }
.ventana--noche .ventana__barra i { background: var(--noche-borde); }
.ventana--noche .ventana__barra span { background: var(--noche); color: var(--noche-tinta-2); }
.js [data-revela] { clip-path: inset(14% 6% 0 6% round 18px); transform: translateY(40px) scale(.97); opacity: .4; transition: clip-path 1.1s var(--sale), transform 1.1s var(--sale), opacity .6s ease; }
.js [data-revela].es-visible { clip-path: inset(0 round 18px); transform: none; opacity: 1; }
.asoma__pie { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--tinta-3); }

.cinta { margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--borde); background: var(--hoja); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cinta__pista { display: flex; width: max-content; animation: cinta 48s linear infinite; }
.cinta:hover .cinta__pista { animation-play-state: paused; }
.cinta span { display: inline-flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 700; letter-spacing: -0.02em; color: var(--tinta); white-space: nowrap; }
.cinta span::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--esm-500); }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- El grupo de WhatsApp: antes y después ---------- */
.grupo { display: grid; gap: 48px; align-items: center; }
.grupo__cierre { margin-top: 24px; font-size: 15px; color: var(--tinta-3); max-width: 30em; }
.conmutador { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 30px; padding: 5px; border-radius: 999px; background: var(--noche); isolation: isolate; }
.conmutador button { position: relative; z-index: 1; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: 15px; color: var(--noche-tinta); cursor: pointer; transition: color .3s ease; white-space: nowrap; }
.conmutador button[aria-pressed="true"] { color: var(--noche); }
.conmutador i { position: absolute; z-index: 0; inset: 5px auto 5px 5px; width: calc(50% - 5px); border-radius: 999px; background: #fff; transition: transform .5s var(--sale), background-color .5s ease; }
.conmutador:has([data-modo="con"][aria-pressed="true"]) i { transform: translateX(100%); background: var(--esm-300); }

.hilo { border-radius: var(--r-2xl); overflow: hidden; background: #e9e4dc; border: 1px solid var(--borde-fuerte); box-shadow: var(--sombra-2); transition: background-color .7s ease; }
.hilo[data-modo="con"] { background: var(--hoja); }
.hilo__barra { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #0b5c4f; color: #fff; transition: background-color .7s ease; }
.hilo[data-modo="con"] .hilo__barra { background: var(--noche); }
.hilo__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .16); font-weight: 700; font-size: 13px; }
.hilo__barra b { display: block; font-size: 15.5px; line-height: 1.2; }
.hilo__barra small { font-size: 12.5px; color: rgb(255 255 255 / .75); }
.hilo__lista { display: grid; gap: 10px; padding: 18px 14px 20px; }
.hilo__lista li { display: grid; }
.hilo__lista li > p { grid-area: 1 / 1; transition: opacity .45s ease, transform .6s var(--sale), filter .45s ease; transition-delay: calc(var(--i) * 70ms); }
.antes { justify-self: start; max-width: 88%; padding: 9px 13px 10px; border-radius: 4px 14px 14px 14px; background: #fff; box-shadow: 0 1px 1px rgb(15 23 42 / .12); font-size: 14.5px; line-height: 1.42; color: #1f2937; }
.antes b { display: block; font-size: 12.5px; color: #b45309; margin-bottom: 2px; }
.es-mio .antes { justify-self: end; border-radius: 14px 4px 14px 14px; background: #d9fdd3; }
.es-mio .antes b { color: #047857; }
.con { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-lg); background: var(--esm-50); border: 1px solid var(--esm-100); font-size: 14.5px; line-height: 1.45; color: var(--tinta-2); align-self: center; }
.con svg { font-size: 22px; padding: 8px; box-sizing: content-box; border-radius: 10px; background: var(--hoja); color: var(--esm-700); box-shadow: var(--sombra-1); }
.con b { display: block; color: var(--tinta); font-size: 15px; }
.hilo[data-modo="antes"] .con, .hilo[data-modo="con"] .antes { opacity: 0; transform: translateY(10px) scale(.97); filter: blur(5px); pointer-events: none; visibility: hidden; transition: opacity .3s ease, transform .3s ease, filter .3s ease, visibility 0s .3s; }
@media (min-width: 960px) { .grupo { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }

/* ---------- Un día en el condominio ---------- */
.dia { --cielo: #f59e0b; position: relative; background: var(--noche); color: #fff; padding-block: var(--ritmo) clamp(48px, 8vw, 96px); }
.dia::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 78% 38%, color-mix(in oklab, var(--cielo) 26%, transparent), transparent 70%); transition: --cielo 1s ease; opacity: .8; }
@property --cielo { syntax: '<color>'; inherits: true; initial-value: #f59e0b; }
.dia .contenedor { position: relative; max-width: 1360px; }
.dia__encabezado { max-width: 760px; }
.dia__rejilla { margin-top: clamp(40px, 6vw, 72px); }
.dia__pasos { display: grid; gap: 56px; }
.dia__hora { font-family: var(--mono); font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.03em; color: color-mix(in oklab, var(--cielo) 55%, #fff); line-height: 1; }
.dia__paso .dia__hora { color: var(--esm-300); }
.dia__hora small { font-size: .55em; letter-spacing: 0; }
.dia__paso h3 { margin-top: 14px; font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -0.035em; }
.dia__paso > p:not(.dia__hora):not(.burbuja) { margin-top: 12px; color: var(--noche-tinta); font-size: 1.05rem; max-width: 30em; }
.burbuja { margin-top: 18px; max-width: 24em; padding: 10px 14px 11px; border-radius: 4px 16px 16px 16px; background: #dcfce7; color: #14342b; font-size: 14.5px; line-height: 1.42; box-shadow: 0 10px 24px -14px rgb(0 0 0 / .8); }
.burbuja b { display: block; font-size: 12px; color: var(--esm-800); margin-bottom: 2px; }
.dia__movil { margin-top: 22px; border-color: rgb(150 226 214 / .2); }
.dia__escena { display: none; }
@media (min-width: 1000px) {
  .dia__rejilla { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 72px; align-items: start; }
  .dia__movil { display: none; }
  .dia__pasos { gap: 0; position: relative; padding-left: 30px; }
  .dia__pasos::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgb(195 210 220 / .14); }
  .dia__pasos::after { content: ''; position: absolute; left: 0; top: 0; width: 2px; height: calc(var(--avance, 0) * 100%); background: linear-gradient(var(--esm-300), var(--esm-500)); box-shadow: 0 0 12px var(--esm-400); }
  .dia__paso { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; filter: blur(1.5px); transition: opacity .5s ease, filter .5s ease; }
  .dia__paso.es-actual { opacity: 1; filter: none; }
  .dia__paso .burbuja { transform: translateY(14px) scale(.96); opacity: 0; transform-origin: 0 0; transition: transform .7s .15s var(--sale), opacity .4s .15s ease; }
  .dia__paso.es-actual .burbuja { transform: none; opacity: 1; }
  .dia__escena { display: block; position: sticky; top: calc(var(--cabecera) + max(24px, (100vh - var(--cabecera) - 620px) / 2)); }
  .dia__reloj { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-family: var(--mono); font-size: 13px; color: var(--noche-tinta); }
  .dia__reloj span { min-width: 6.5em; }
  .dia__reloj i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--esm-400) calc(var(--avance, 0) * 100%), rgb(195 210 220 / .16) 0); }
  .dia__capturas { position: relative; aspect-ratio: 1600 / 1000; background: var(--papel); }
  .dia__capturas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--sale); }
  .dia__capturas img.es-previa { clip-path: inset(0); z-index: 1; transition: none; }
  .dia__capturas img.es-actual { clip-path: inset(0); z-index: 2; }
}

/* ---------- App del residente ---------- */
.app { display: grid; gap: 48px; align-items: center; }
.app__lista { margin-top: 30px; display: grid; gap: 4px; }
.app__lista button { position: relative; display: flex; gap: 16px; align-items: flex-start; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-lg); background: none; text-align: left; cursor: pointer; color: var(--tinta-3); transition: background-color .3s ease, color .3s ease; }
.app__lista button svg { font-size: 22px; margin-top: 2px; color: var(--tinta-3); transition: color .3s ease; }
.app__lista button b { display: block; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--tinta); }
.app__lista button span { font-size: 15px; line-height: 1.45; }
.app__lista button:hover { background: var(--papel); }
.app__lista button[aria-selected="true"] { background: var(--esm-50); color: var(--tinta-2); }
.app__lista button[aria-selected="true"] svg { color: var(--esm-700); }
.app__lista button::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 1px; background: var(--esm-500); transform: scaleX(0); transform-origin: left; }
.app__lista.gira button[aria-selected="true"]::after { animation: cuenta 4.6s linear forwards; }
@keyframes cuenta { to { transform: scaleX(1); } }
.app__escena { position: relative; display: grid; place-items: center; padding-block: 10px 30px; perspective: 1400px; }
.app__escena::before { content: ''; position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--esm-100), transparent); }
.celular { position: relative; width: min(290px, 70vw); padding: 9px; border-radius: 42px; background: var(--noche); box-shadow: 0 0 0 1px #2b4a5e inset, var(--sombra-3); transform: rotateY(var(--gx, 0deg)) rotateX(var(--gy, 0deg)); transition: transform .5s var(--sale); }
.celular__pantallas { position: relative; aspect-ratio: 780 / 1688; border-radius: 34px; overflow: hidden; background: var(--papel); }
.celular__pantallas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateX(8%) scale(.98); filter: blur(6px); transition: opacity .45s ease, transform .7s var(--sale), filter .45s ease; }
.celular__pantallas img.es-actual { opacity: 1; transform: none; filter: none; }
.aviso-flotante { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--hoja); border: 1px solid var(--borde); box-shadow: var(--sombra-2); font-size: 13px; line-height: 1.3; color: var(--tinta-3); animation: flota 6s ease-in-out infinite; }
.aviso-flotante b { display: block; font-size: 13.5px; color: var(--tinta); }
.aviso-flotante svg { font-size: 18px; padding: 7px; box-sizing: content-box; border-radius: 9px; background: var(--esm-50); color: var(--esm-700); }
.aviso-flotante--1 { top: 12%; left: max(0px, calc(50% - 250px)); }
.aviso-flotante--2 { bottom: 16%; right: max(0px, calc(50% - 250px)); animation-delay: -3s; }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .aviso-flotante--1 { top: 4%; } .aviso-flotante--2 { bottom: 6%; } }
@media (min-width: 960px) { .app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }

/* ---------- Puertas ---------- */
#puertas { overflow: hidden; }
#puertas::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 80% 30%, rgb(16 185 129 / .16), transparent 70%); }
#puertas .contenedor { position: relative; }
.puertas__encabezado { max-width: 760px; }
.acceso { margin-top: clamp(36px, 6vw, 64px); display: grid; gap: 28px; padding: clamp(18px, 3vw, 32px); border-radius: var(--r-2xl); background: linear-gradient(180deg, rgb(17 42 58 / .7), rgb(7 20 30 / .7)); border: 1px solid rgb(150 226 214 / .16); }
.acceso__tipo { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acceso__tipo legend, .acceso__rotulo { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--noche-tinta); }
.acceso__rotulo { margin-top: 24px; }
.acceso__tipo label { position: relative; }
.acceso__tipo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.acceso__tipo span { display: block; height: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--noche-borde); font-weight: 700; font-size: 14.5px; line-height: 1.3; transition: border-color .25s ease, background-color .25s ease; }
.acceso__tipo small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--noche-tinta-2); }
.acceso__tipo input:checked + span { border-color: var(--esm-400); background: rgb(16 185 129 / .14); }
.acceso__tipo input:focus-visible + span { outline: 3px solid var(--esm-400); outline-offset: 2px; }
.acceso__puertas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acceso__puertas button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--noche-borde); background: rgb(255 255 255 / .03); font-weight: 700; font-size: 15px; color: #fff; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, transform .2s var(--sale); }
.acceso__puertas button svg { font-size: 20px; color: var(--esm-300); }
.acceso__puertas button:hover { border-color: var(--esm-400); background: rgb(16 185 129 / .12); }
.acceso__puertas button:active { transform: scale(.97); }
.acceso__puertas button[disabled] { opacity: .5; cursor: progress; }
.acceso__puertas button.es-elegida { border-color: var(--esm-300); background: rgb(16 185 129 / .2); opacity: 1; }
.acceso__registro { margin-top: 18px; min-height: 118px; padding: 14px 16px; border-radius: var(--r-md); background: var(--noche-3); border: 1px solid var(--noche-borde); font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--noche-tinta-2); }
.acceso__registro li { animation: cambia .4s var(--sale); }
.acceso__registro li.ok { color: var(--esm-300); }
.acceso__registro time { color: var(--noche-tinta); margin-right: 10px; }
.acceso__recorrido { display: grid; gap: 24px; align-content: center; }
.ruta { display: grid; gap: 30px; position: relative; }
.ruta li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid var(--noche-borde); background: var(--noche); transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease; }
.ruta li svg { grid-row: span 2; font-size: 24px; color: var(--noche-tinta-2); transition: color .3s ease; }
.ruta li b { font-size: 15px; }
.ruta li small { font-size: 12.5px; color: var(--noche-tinta-2); }
.ruta li:not(:last-child)::after { content: ''; position: absolute; left: 28px; top: 100%; width: 2px; height: 30px; background: repeating-linear-gradient(rgb(150 226 214 / .4) 0 4px, transparent 4px 8px); }
.ruta li.es-activo { border-color: var(--esm-400); background: rgb(16 185 129 / .14); box-shadow: 0 0 0 4px rgb(16 185 129 / .12), 0 0 30px -6px rgb(52 211 153 / .7); }
.ruta li.es-activo svg { color: var(--esm-300); }
.ruta li.es-activo:not(:last-child)::after { background: linear-gradient(var(--esm-300), var(--esm-300)) no-repeat 0 0 / 100% 0; animation: baja .45s .1s linear forwards; }
@keyframes baja { to { background-size: 100% 100%; } }
.porton { display: grid; justify-items: center; gap: 10px; }
.porton__marco { width: 112px; height: 168px; padding: 6px 6px 0; border: 2px solid rgb(150 226 214 / .5); border-bottom: 0; border-radius: 6px 6px 0 0; background: radial-gradient(80% 60% at 50% 100%, rgb(251 191 36 / .0), transparent); perspective: 600px; transition: background .6s ease; }
.porton__hoja { position: relative; width: 100%; height: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(135deg, #1b3a4d, #112a3a); border: 1px solid rgb(150 226 214 / .3); transform-origin: left center; transition: transform 1s var(--sale); }
.porton__hoja i { position: absolute; right: 9px; top: 52%; width: 5px; height: 18px; border-radius: 3px; background: var(--noche-tinta-2); transition: background-color .3s ease, box-shadow .3s ease; }
.porton.abierta .porton__marco { background: radial-gradient(90% 80% at 50% 100%, rgb(110 231 183 / .5), rgb(110 231 183 / .08) 70%); }
.porton.abierta .porton__hoja { transform: rotateY(-68deg); }
.porton.abierta .porton__hoja i { background: var(--esm-300); box-shadow: 0 0 10px var(--esm-300); }
.porton__estado { font-family: var(--mono); font-size: 12.5px; color: var(--noche-tinta-2); }
.porton.abierta .porton__estado { color: var(--esm-300); }
@media (min-width: 620px) { .acceso__recorrido { grid-template-columns: 1fr auto; align-items: center; gap: 40px; } }
@media (min-width: 1000px) { .acceso { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; } }

.puertas__lista { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 22px 40px; }
.puertas__lista li { display: flex; gap: 14px; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--noche-borde); font-size: 14.5px; line-height: 1.5; color: var(--noche-tinta); }
.puertas__lista svg { font-size: 22px; color: var(--esm-300); margin-top: 2px; }
.puertas__lista b { display: block; font-size: 16px; color: #fff; letter-spacing: -0.01em; }
@media (min-width: 640px) { .puertas__lista { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .puertas__lista { grid-template-columns: repeat(4, 1fr); } }
.puertas__captura { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1000px; }
.aviso-marca { margin: 26px auto 0; max-width: 760px; font-size: 13px; line-height: 1.6; text-align: center; color: var(--noche-tinta-2); }

/* ---------- Condi ---------- */
.ia { display: grid; gap: 48px; align-items: center; }
.lista-check { margin-top: 26px; }
.lista-check li { position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--tinta-2); }
.lista-check li::before { content: ''; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--esm-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.lista-check strong { color: var(--tinta); }
.lista-check--chica { margin-top: 0; }
.lista-check--chica li { font-size: 14.5px; margin-bottom: 9px; }
.lista-check .lista-check__titulo::before { display: none; }
.lista-check .lista-check__titulo { padding-left: 0; }
.nota-plan { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--esm-800); background: var(--esm-50); border: 1px solid var(--esm-100); padding: 6px 12px; border-radius: 999px; }
.chat { display: flex; flex-direction: column; border-radius: var(--r-2xl); background: var(--hoja); border: 1px solid var(--borde); box-shadow: var(--sombra-2); overflow: hidden; }
.chat__cabeza { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--borde); }
.chat__condi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--noche); color: var(--esm-300); font-size: 19px; }
.chat__cabeza b { display: block; line-height: 1.2; }
.chat__cabeza small { font-size: 12.5px; color: var(--tinta-3); }
.chat__hilo { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 330px; max-height: 420px; overflow-y: auto; background: var(--papel); scrollbar-width: thin; }
.chat__mensaje { max-width: 90%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; animation: llega .5s var(--sale); }
.chat__mensaje--usuario { align-self: flex-end; background: var(--noche); color: #fff; border-bottom-right-radius: 4px; transform-origin: 100% 100%; }
.chat__mensaje--ia { align-self: flex-start; background: var(--hoja); border: 1px solid var(--borde); border-bottom-left-radius: 4px; color: var(--tinta-2); transform-origin: 0 100%; }
.chat__mensaje--ia b { color: var(--tinta); }
@keyframes llega { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
.chat__puntos { display: inline-flex; gap: 5px; padding: 4px 2px; }
.chat__puntos i { width: 7px; height: 7px; border-radius: 50%; background: var(--tinta-3); animation: punto 1s ease-in-out infinite; }
.chat__puntos i:nth-child(2) { animation-delay: .15s; }
.chat__puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chat__propuesta { align-self: flex-start; width: 92%; padding: 14px 16px; border-radius: var(--r-lg); background: var(--hoja); border: 1px solid var(--esm-200); box-shadow: var(--sombra-1); font-size: 14.5px; animation: llega .5s var(--sale); transform-origin: 0 100%; }
.chat__propuesta-titulo { font-size: 13px; font-weight: 700; color: var(--esm-800); margin-bottom: 8px; }
.chat__propuesta li { position: relative; padding-left: 18px; margin-bottom: 4px; color: var(--tinta-2); }
.chat__propuesta li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--esm-500); }
.chat__botones { display: flex; gap: 8px; margin-top: 12px; }
.chat__sugerencias { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--borde); }
.chat__sugerencias button { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--borde-fuerte); background: var(--hoja); font-size: 14px; font-weight: 600; color: var(--tinta-2); cursor: pointer; text-align: left; transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s var(--sale); }
.chat__sugerencias button:hover { border-color: var(--esm-700); color: var(--esm-800); background: var(--esm-50); }
.chat__sugerencias button:active { transform: scale(.97); }
.chat__sugerencias button[disabled] { opacity: .45; cursor: default; }
@media (min-width: 960px) { .ia { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }

/* ---------- Índice de funciones ---------- */
.indice { margin: clamp(36px, 5vw, 56px) 0 0; display: grid; column-gap: 48px; }
.indice > div { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--borde); transition: border-color .3s ease; }
.indice > div:hover { border-top-color: var(--esm-500); }
.indice dt { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; color: var(--tinta); }
.indice dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--tinta-3); }
@media (min-width: 640px) { .indice { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .indice { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Precios ---------- */
.seccion--precios { background: linear-gradient(180deg, var(--papel), #e9f3ef); }
.precios__encabezado { max-width: 760px; }
.calculadora { margin-top: clamp(32px, 5vw, 48px); display: grid; gap: 26px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-2xl); background: var(--noche); color: #fff; box-shadow: var(--sombra-3); }
.calculadora__campo { display: block; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; }
.calculadora__numero { display: inline-block; min-width: 2.2ch; padding: 0 .28em; border-radius: 8px; background: var(--esm-300); color: var(--noche); font-variant-numeric: tabular-nums; text-align: center; }
.calculadora__control { margin-top: 18px; display: flex; gap: 16px; align-items: center; }
.calculadora__control input[type=number] { width: 96px; min-height: 46px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--noche-borde); background: var(--noche-3); color: #fff; font: inherit; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.calculadora__nota { margin-top: 10px; font-size: 13.5px; color: var(--esm-200); }
.calculadora input[type=range] { flex: 1; min-width: 0; height: 28px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.calculadora input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--esm-400) var(--pct, 15%), rgb(195 210 220 / .18) var(--pct, 15%)); }
.calculadora input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--esm-400) var(--pct, 15%), rgb(195 210 220 / .18) var(--pct, 15%)); }
.calculadora input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 5px solid var(--esm-500); box-shadow: 0 4px 12px rgb(0 0 0 / .4); transition: transform .2s var(--sale); }
.calculadora input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--esm-500); box-shadow: 0 4px 12px rgb(0 0 0 / .4); }
.calculadora input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }
.calculadora input:focus-visible { outline: 3px solid var(--esm-400); outline-offset: 3px; }
.calculadora__opciones { display: grid; gap: 16px; align-content: center; }
.segmento { border: 0; margin: 0; padding: 4px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--r-lg); background: var(--noche-3); position: relative; }
.segmento legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.segmento label { position: relative; display: block; }
.segmento input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.segmento span { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; min-height: 44px; padding: 6px 10px; border-radius: var(--r-md); font-weight: 700; font-size: 14.5px; color: var(--noche-tinta); transition: background-color .25s ease, color .25s ease; }
.segmento em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgb(52 211 153 / .18); color: var(--esm-200); }
.segmento input:checked + span { background: #fff; color: var(--noche); }
.segmento input:checked + span em { background: var(--esm-100); color: var(--esm-800); }
.segmento input:focus-visible + span { outline: 3px solid var(--esm-400); outline-offset: 2px; }
.interruptor { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 14.5px; line-height: 1.35; position: relative; color: var(--noche-tinta); }
.interruptor input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.interruptor__pista { flex: 0 0 auto; width: 44px; height: 26px; border-radius: 13px; background: rgb(195 210 220 / .25); position: relative; transition: background-color .25s ease; }
.interruptor__pista::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .35s var(--sale); }
.interruptor input:checked + .interruptor__pista { background: var(--esm-500); }
.interruptor input:checked + .interruptor__pista::after { transform: translateX(18px); }
.interruptor input:focus-visible + .interruptor__pista { outline: 3px solid var(--esm-400); outline-offset: 2px; }
.interruptor em { font-style: normal; font-weight: 500; color: var(--noche-tinta-2); display: block; }
@media (min-width: 900px) { .calculadora { grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; } }

.planes { margin-top: 22px; display: grid; gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 26px; border-radius: var(--r-2xl); background: var(--hoja); border: 1px solid var(--borde); box-shadow: var(--sombra-1); transition: transform .4s var(--sale), box-shadow .4s ease; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--sombra-2); }
.plan--destacado { border: 2px solid var(--esm-700); box-shadow: 0 30px 60px -30px rgb(4 120 87 / .55); }
.plan__sello { position: absolute; top: -13px; left: 26px; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--esm-700); color: #fff; }
.plan__nombre { font-size: 1.5rem; letter-spacing: -0.03em; }
.plan__para { font-size: 14.5px; color: var(--tinta-3); min-height: 2.9em; }
.plan__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.plan__monto { font-size: clamp(2.1rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__periodo { font-size: 14px; font-weight: 600; color: var(--tinta-3); }
.plan__detalle { font-size: 13px; color: var(--esm-800); font-weight: 600; min-height: 2.6em; }
.plan__tarifa { font-size: 13.5px; color: var(--tinta-3); padding-bottom: 14px; border-bottom: 1px solid var(--borde); }
.plan .lista-check { margin: 4px 0 10px; flex: 1; }
@media (min-width: 900px) { .planes { grid-template-columns: repeat(3, 1fr); } .plan--destacado { margin-top: -10px; margin-bottom: -10px; padding-block: 38px 36px; } }

.argumento { margin: 44px auto 0; max-width: 640px; text-align: center; font-size: 1.1rem; color: var(--tinta-2); }
.argumento strong { color: var(--esm-800); }
.comparar { margin: 36px auto 0; max-width: 900px; background: var(--hoja); border: 1px solid var(--borde); border-radius: var(--r-lg); }
.comparar summary, .preguntas summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; }
.comparar summary { padding: 16px 20px; min-height: 56px; }
.comparar summary::-webkit-details-marker, .preguntas summary::-webkit-details-marker { display: none; }
.comparar summary::after, .preguntas summary::after { content: ''; flex: 0 0 auto; width: 11px; height: 11px; border-right: 2px solid var(--tinta-3); border-bottom: 2px solid var(--tinta-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform .35s var(--sale); }
.comparar[open] summary::after, .preguntas details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); border-color: var(--esm-700); }
.comparar__tabla { overflow-x: auto; padding: 0 12px 12px; }
.comparar table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.comparar th, .comparar td { padding: 11px 10px; text-align: center; border-top: 1px solid var(--borde); }
.comparar thead th { font-size: 13px; color: var(--tinta-3); border-top: 0; }
.comparar tbody th { text-align: left; font-weight: 600; color: var(--tinta-2); }
.comparar td span { display: inline-block; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; text-indent: -999px; vertical-align: middle; }
.comparar .si { background: var(--esm-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.comparar .no { background: var(--lavado) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; }
.condiciones { margin-top: 48px; display: grid; gap: 32px; }
.condiciones h3 { font-size: 1.15rem; margin-bottom: 16px; }
.extras div { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-top: 1px solid var(--borde-fuerte); }
.extras div:first-child { border-top: 0; padding-top: 0; }
.extras dt { font-size: 14.5px; color: var(--tinta-2); }
.extras dd { margin: 0; font-weight: 700; }
@media (min-width: 800px) { .condiciones { grid-template-columns: 1fr 1fr; gap: 64px; } .extras div { flex-direction: row; justify-content: space-between; gap: 20px; } .extras dd { text-align: right; } }

/* ---------- Pasos y resguardo ---------- */
.pasos { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 32px; position: relative; }
.pasos li { position: relative; }
.pasos__n { display: block; font-size: clamp(3.4rem, 8vw, 5rem); font-weight: 800; letter-spacing: -0.06em; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--esm-700); margin-bottom: 14px; transition: color .5s ease; }
.pasos li:hover .pasos__n { color: var(--esm-700); }
.pasos h3 { font-size: 1.35rem; margin-bottom: 8px; }
.pasos p { color: var(--tinta-2); max-width: 26em; }
@media (min-width: 860px) { .pasos { grid-template-columns: repeat(3, 1fr); gap: 48px; } .pasos li { padding-top: 26px; border-top: 2px solid var(--tinta); } }
.resguardo { margin-top: clamp(56px, 8vw, 96px); padding: clamp(24px, 4vw, 40px); border-radius: var(--r-2xl); background: var(--papel); }
.resguardo h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.resguardo ul { margin-top: 24px; display: grid; gap: 18px 40px; }
.resguardo li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--tinta-2); }
.resguardo svg { font-size: 22px; color: var(--esm-700); margin-top: 1px; }
.resguardo b { color: var(--tinta); }
@media (min-width: 720px) { .resguardo ul { grid-template-columns: 1fr 1fr; } }

/* ---------- Testimonios (sección comentada en el HTML) ---------- */
.testimonios { margin-top: 40px; display: grid; gap: 18px; }
.testimonio { padding: 28px; border-radius: var(--r-xl); background: var(--hoja); border: 1px solid var(--borde); }
.testimonio blockquote { margin: 0 0 18px; font-size: 1.15rem; font-weight: 600; line-height: 1.5; }
.testimonio figcaption strong { display: block; }
.testimonio figcaption span { font-size: 14px; color: var(--tinta-3); }
@media (min-width: 800px) { .testimonios { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Preguntas ---------- */
.preguntas-rejilla { display: grid; gap: 36px; align-items: start; }
.preguntas { border-top: 2px solid var(--tinta); }
.preguntas details { border-bottom: 1px solid var(--borde-fuerte); }
.preguntas summary { padding: 20px 4px; min-height: 60px; font-size: 1.08rem; letter-spacing: -0.015em; transition: color .2s ease; }
.preguntas summary:hover { color: var(--esm-800); }
.preguntas details p { padding: 0 4px 24px; color: var(--tinta-2); max-width: 62ch; }
.preguntas details[open] p { animation: cambia .5s var(--sale); }
@media (min-width: 960px) { .preguntas-rejilla { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; } .preguntas-rejilla > div:first-child { position: sticky; top: calc(var(--cabecera) + 32px); } }

/* ---------- Contacto ---------- */
.seccion--cierre { overflow: hidden; }
.cierre__plano { position: absolute; left: 0; right: 0; bottom: 0; opacity: .2; mix-blend-mode: screen; pointer-events: none; }
.cierre__plano img { width: max(1100px, 100%); max-width: none; }
.contacto { position: relative; display: grid; gap: 44px; align-items: center; }
.contacto__canales { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.contacto__canales .boton { flex: 1 1 100%; }
.contacto__aparte { margin-top: 22px; font-size: 14.5px; color: var(--noche-tinta); }
.contacto__aparte a { color: var(--esm-200); }
.contacto__lugares { margin-top: 8px; font-size: 13.5px; color: var(--noche-tinta-2); }
@media (min-width: 560px) { .contacto__canales .boton { flex: 0 0 auto; } }
@media (min-width: 1000px) { .contacto { grid-template-columns: 1.05fr 1fr; gap: 72px; } }

.formulario { background: var(--hoja); color: var(--tinta); border-radius: var(--r-2xl); padding: 26px 22px; display: grid; gap: 16px; box-shadow: var(--sombra-3); }
.formulario__titulo { font-size: 1.25rem; }
.formulario__fila { display: grid; gap: 6px; min-width: 0; }
.formulario__doble { display: grid; gap: 16px; }
.formulario label { font-size: 14px; font-weight: 600; color: var(--tinta-2); }
.opcional { font-weight: 500; color: var(--tinta-3); }
.formulario input, .formulario select, .formulario textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--borde-fuerte); border-radius: var(--r-md); font: inherit; font-size: 16px; color: var(--tinta); background: var(--hoja); transition: border-color .2s ease, box-shadow .2s ease; }
.formulario textarea { resize: vertical; min-height: 88px; }
.formulario input:focus, .formulario select:focus, .formulario textarea:focus { outline: 0; box-shadow: 0 0 0 4px rgb(52 211 153 / .35); border-color: var(--esm-700); }
.formulario [aria-invalid="true"] { border-color: #b91c1c; background: #fef2f2; }
.formulario__error { padding: 10px 14px; border-radius: var(--r-md); background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 14px; font-weight: 600; }
.formulario__nota { font-size: 13px; color: var(--tinta-3); text-align: center; }
@media (min-width: 560px) { .formulario__doble { grid-template-columns: 1fr 1fr; } .formulario { padding: 32px; } }

/* ---------- Pie ---------- */
.pie { background: var(--noche-3); color: var(--noche-tinta); padding-top: 64px; font-size: 14.5px; }
.pie a { color: var(--noche-tinta); text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie__rejilla { display: grid; gap: 36px; padding-bottom: 40px; }
.pie__marca .marca { color: #fff; }
.pie__marca p { margin-top: 12px; max-width: 28em; }
.pie__enlaces { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.pie__enlaces a { display: flex; align-items: center; min-height: 44px; }
.pie__empresa p + p { margin-top: 10px; }
.pie__empresa strong { color: #fff; }
.pie__legal { border-top: 1px solid rgb(195 210 220 / .12); padding-block: 22px 28px; font-size: 12.5px; color: var(--noche-tinta-2); }
@media (min-width: 900px) { .pie__rejilla { grid-template-columns: 1.2fr 1.2fr 1fr; gap: 56px; } }

/* ---------- Barra móvil ---------- */
.barra-movil { position: fixed; inset: auto 0 0; z-index: 40; display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgb(10 28 41 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgb(195 210 220 / .14); transform: translateY(110%); transition: transform .4s var(--sale); }
.barra-movil.es-visible { transform: none; }
.barra-movil .boton { flex: 1; min-height: 48px; }
.barra-movil .boton--whatsapp { flex: 0 0 52px; padding: 0; }
.barra-movil .boton--whatsapp svg { font-size: 22px; }
@media (min-width: 1080px) { .barra-movil { display: none; } }
@media (max-width: 1079px) { .pie { padding-bottom: 76px; } }

/* ---------- Entradas discretas (títulos de sección) ---------- */
.js [data-entra] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .9s var(--sale); }
.js [data-entra].es-visible { opacity: 1; transform: none; }

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; transition-delay: 0s !important; }
  .cinta__pista { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .cinta__pista span:nth-child(n+11) { display: none; }
  .cinta { mask-image: none; -webkit-mask-image: none; }
  .js [data-revela], .js [data-entra] { clip-path: none; transform: none; opacity: 1; }
  .dia__paso { opacity: 1 !important; filter: none !important; }
  .dia__paso .burbuja { transform: none !important; opacity: 1 !important; }
  .celular { transform: none !important; }
}
