/* ==========================================================================
   Condomío — landing v2 (prototipo, versión minimalista)
   Todo sale de ui_packages/cm_design_system: CmPalette, CmAppColors,
   CmAppSizes, CmAppShadows, CmAppTypography. Si cambia el design system,
   cambia AQUÍ y sólo aquí.

   Réplica de los componentes de la plataforma:
   - botón    → CmFilledButton   (amarillo, radio 14, etiqueta 18/700)
   - tarjeta  → CmSectionIntroCard (blanca, radio 14, sombra suave, sin borde)
   - ícono    → cuadrado brandPrimarySoft, radio 10
   - campo    → CmTextFormField  (contorno, radio 10, borde 1px)
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("assets/fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("assets/fonts/Inter-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("assets/fonts/Inter-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("assets/fonts/Inter-Bold.ttf") format("truetype"); }

:root {
  /* CmAppColors */
  --brand: #FAD228;          /* brandPrimary */
  --brand-soft: #FFF1A8;     /* brandPrimarySoft */
  --brand-deep: #7A5F00;     /* brandPrimaryDeep */
  --bg: #FFFDF9;             /* backgroundPrimary al 40 % sobre blanco: el fondo de la landing publicada */
  --band: #FEF4CF;           /* brandPrimary al 20 % sobre el fondo: la banda amarilla de la landing publicada. Sólo para el contacto final. */
  --surface: #FAFAFA;        /* surfacePrimary */
  --card: #FFFFFF;           /* surfaceElevated */
  --text: #1F2937;           /* textPrimary */
  --text-2: #374151;         /* textSecondary */
  --text-3: #6B7280;         /* textTertiary */
  --line: #E5E7EB;           /* borderSubtle */
  --field-border: #D1D5DB;   /* gray300: borde de reposo de los campos de la landing (un escalón sobre el de la app) */
  --field-focus: #9CA3AF;    /* inputBorderFocusedSoft: borde de foco del input */
  --field-disabled: #FAFAFA; /* surfacePrimary */
  --line-strong: #6B7280;    /* borderDefault / inputBorder */
  --success: #16A34A;
  --error: #DC2626;
  --warning-bg: #FEF3C7;

  /* CmAppSizes */
  --sm: 8px; --md: 12px; --lg: 16px; --xl: 20px; --xxl: 24px; --xxxl: 32px; --huge: 40px; --massive: 48px;
  --r-md: 10px; --r-lg: 14px;

  /* CmAppShadows.boxShadowLight */
  --shadow: 0 2px 4px #E5E7EB;
  /* CmFilledButton: elevation 2 */
  --shadow-btn: 0 3px 3px -2px rgba(0,0,0,.2), 0 3px 4px rgba(0,0,0,.14), 0 1px 8px rgba(0,0,0,.12);

  /* Tipografía: la de CmAppTypography. Sólo el hero sube a 48 en pantallas anchas. */
  --fs-hero: clamp(2rem, 1.4rem + 2.6vw, 3rem);   /* 32 → 48 (displayLarge = 40) */
  --fs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);   /* 24 → 32 (headlineMedium/Large) */
  --fs-h3: 1.25rem;                               /* headlineSmall 20 */
  --fs-title: 1.125rem;                           /* titleLarge 18 */
  --fs-body: 1rem;                                /* bodyLarge 16 */
  --fs-small: .875rem;                            /* bodyMedium 14 */

  --wrap: 1100px;
  --pad: var(--lg);          /* compact 16; medium 16; expanded 24 */
  --section-y: clamp(56px, 8vw, 96px);
  --sec-top: clamp(24px, 3.5vw, 48px);      /* aire sobre el contenido de una sección */
  --sec-bottom: clamp(72px, 10vw, 128px);   /* aire bajo el contenido: compensa el recorte de arriba */
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Padding lateral por tamaño: compact 16 · medium 32 · expanded 32 (el contenido se centra con tope de ancho) */
@media (min-width: 600px) { :root { --pad: var(--xxxl); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; font-size: var(--fs-body); line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; letter-spacing: -.01em; }
p { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--lg); top: -64px; z-index: 100; background: var(--text); color: #fff; padding: var(--md) var(--lg); border-radius: var(--r-md); }
.skip:focus { top: var(--lg); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
section { padding-top: var(--sec-top); padding-bottom: var(--sec-bottom); }
.alt { background: transparent; }
.center { text-align: center; }
.head { display: grid; gap: var(--md); margin-bottom: var(--massive); justify-items: center; text-align: center; }
.head h2 { font-size: var(--fs-h2); font-weight: 700; }
.head p { color: var(--text-2); max-width: 36rem; }
.eyebrow { font-size: var(--fs-small); font-weight: 600; color: var(--brand-deep); }

/* ---------- Botones: CmFilledButton y variante secundaria ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-radius: var(--r-lg); font-size: var(--fs-title); font-weight: 700; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; transition: filter .2s, transform .2s var(--ease); }
.btn-primary { background: var(--brand); color: var(--text); box-shadow: var(--shadow-btn); }
.btn-primary:hover { filter: brightness(.96); }
.btn-secondary { background: var(--card); color: var(--text); border: 1.5px solid var(--text); }
.btn-secondary:hover { background: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
@media (min-width: 1024px) { .btn { min-height: 56px; padding-inline: 36px; } }

/* ---------- Barra ----------
   Expanded (≥900): banda superior fija. Compact y medium: al hacer scroll la barra se vuelve una
   cápsula flotante, y al abrir el menú esa misma cápsula se expande hacia abajo con las opciones. */
.nav { position: sticky; top: 0; z-index: 50; height: 64px; }
.nav-card { position: absolute; left: 0; right: 0; top: 0; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); border-radius: 0;
  transition: left .45s var(--ease), right .45s var(--ease), top .45s var(--ease), border-radius .45s var(--ease), background .3s, box-shadow .45s var(--ease); }
.nav.scrolled .nav-card, .nav.open .nav-card { left: 12px; right: 12px; top: 8px; border-radius: 26px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(31, 41, 55, .16); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--xxl); transition: height .3s var(--ease); }
.nav.scrolled .nav-in, .nav.open .nav-in { height: 60px; }
.nav-card .nav-in { padding-inline: 20px; }
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: none; gap: var(--xxxl); }
.nav-links a { text-decoration: none; font-weight: 600; font-size: var(--fs-small); padding: var(--sm) 0; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-actions { display: flex; align-items: center; gap: var(--md); }
.nav .btn { min-height: 40px; padding: 6px 16px; font-size: var(--fs-small); }
.burger { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; margin-right: -12px; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ""; transition: transform .25s var(--ease), background .2s; }
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* El menú vive dentro de la misma cápsula: la altura se anima de 0 a su contenido */
.menu { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease), visibility 0s .5s; }
.nav.open .menu { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s var(--ease), visibility 0s; }
.menu-in { overflow: hidden; min-height: 0; padding-inline: 20px; display: grid; }
.menu-in > :last-child { margin-bottom: 20px; }
.menu a { text-decoration: none; font-weight: 600; font-size: var(--fs-title); padding: var(--lg) 0; border-top: 1px solid var(--line); opacity: 0; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.nav.open .menu a { opacity: 1; transform: none; }
.nav.open .menu a:nth-child(1) { transition-delay: .12s; } .nav.open .menu a:nth-child(2) { transition-delay: .17s; } .nav.open .menu a:nth-child(3) { transition-delay: .22s; }
.nav.open .menu a:nth-child(4) { transition-delay: .27s; } .nav.open .menu a:nth-child(5) { transition-delay: .32s; } .nav.open .menu a:nth-child(6) { transition-delay: .37s; }
.menu .btn { margin-top: var(--md); }
.menu .btn-secondary { border: 1.5px solid var(--text); }  /* si no, `.menu a` le pinta una línea gris arriba */
.menu .btn-primary { border: 0; margin-top: var(--xl); }
.nav-cta { display: none; }

@media (min-width: 900px) {
  .nav { height: auto; }
  .nav-card, .nav.scrolled .nav-card, .nav.open .nav-card { position: static; left: auto; right: auto; top: auto; border-radius: 0; background: var(--bg); border: 0; border-bottom: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; }
  .nav-card .nav-in { padding-inline: var(--pad); }
  .nav.scrolled .nav-in { height: 64px; }
  .nav-links { display: flex; } .nav-cta { display: inline-flex; } .burger, .menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: var(--section-y); overflow: hidden; }
.hero h1 { font-size: var(--fs-hero); font-weight: 700; }
.hero .lead { margin-top: var(--xl); max-width: 36rem; font-size: var(--fs-title); color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--md); margin-top: var(--xxxl); }
.hero-note { margin-top: var(--lg); font-size: var(--fs-small); color: var(--text-3); }

/* ---------- Tarjeta y captura (placeholder) ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--xxl); }
.ico { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-soft); display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; stroke: var(--text-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shot { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; color: var(--text-3); padding: var(--xxl); min-height: 200px; position: relative; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 32px; }
.shot strong { font-size: var(--fs-small); font-weight: 600; color: var(--text-2); background: var(--card); padding: 2px 8px; }
.shot small { font-size: 12px; max-width: 28ch; background: var(--card); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-16-10 { aspect-ratio: 16 / 10; }
.ar-4-3 { aspect-ratio: 4 / 3; }
.phone-shot { aspect-ratio: 9 / 18; width: min(260px, 100%); margin-inline: auto; border-radius: 28px; }

/* ---------- Módulos (cuadrícula de tarjetas) ---------- */
.grid { display: grid; gap: var(--lg); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); gap: var(--xxl); } }
.mod { display: grid; gap: var(--sm); align-content: start; }
.mod .ico { margin-bottom: var(--sm); }
.mod h3 { font-size: var(--fs-title); font-weight: 600; }
.mod p { color: var(--text-2); font-size: var(--fs-small); }
.mod .tag { justify-self: start; font-size: 12px; font-weight: 600; background: var(--warning-bg); color: var(--brand-deep); padding: 2px 10px; border-radius: 999px; }

/* ---------- Filas de producto: texto + captura ---------- */
.row { display: grid; gap: var(--xxxl); align-items: center; }
.row + .row { margin-top: clamp(56px, 8vw, 96px); }
.row h3 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: var(--lg); }
.row > div > p { color: var(--text-2); font-size: var(--fs-title); }
.row ul { display: grid; gap: var(--md); margin-top: var(--xl); }
.row li { display: grid; grid-template-columns: 22px 1fr; gap: var(--md); color: var(--text-2); font-size: var(--fs-small); }
.row li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%231F2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (min-width: 900px) { .row { grid-template-columns: 1fr 1fr; gap: var(--massive); } .row.flip > :first-child { order: 2; } }

/* ---------- Precios ---------- */
.calc { display: grid; gap: var(--xxxl); max-width: 920px; margin-inline: auto; padding: clamp(20px, 4vw, 40px); }
.field { display: grid; gap: var(--md); }
.field > label, .field > .label { font-weight: 600; font-size: var(--fs-small); color: var(--text-2); }
.units-row { display: flex; align-items: center; gap: var(--lg); }
.units-input { width: 140px; height: 56px; font-size: 1.5rem; font-weight: 700; text-align: center; background: var(--card); border: 1px solid var(--field-border); border-radius: var(--r-md); }
.units-input:focus { outline: none; border-color: var(--field-focus); box-shadow: inset 0 0 0 .5px var(--field-focus); }  /* foco como el de la app: borde de 1,5 px, sin halo */
.units-row span { color: var(--text-3); font-size: var(--fs-small); }
input[type=range] { width: 100%; height: 28px; background: transparent; accent-color: var(--text); cursor: pointer; }
.plans { display: grid; gap: var(--sm); }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: grid; gap: 2px; min-height: 64px; padding: var(--md) var(--lg); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--card); cursor: pointer; text-align: left; }
.plan b { font-size: var(--fs-body); }
.plan small { color: var(--text-3); font-size: 13px; }
.plan[aria-checked="true"] { border: 2px solid var(--text); background: var(--brand-soft); padding: calc(var(--md) - 1px) calc(var(--lg) - 1px); }
.result { background: var(--brand-soft); border-radius: var(--r-lg); padding: var(--xxl); display: grid; gap: var(--md); justify-items: center; text-align: center; }
.result small { color: var(--text-2); font-size: var(--fs-small); }
.result .amount { font-size: clamp(2.25rem, 1.5rem + 3vw, 3rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result .amount span { font-size: .4em; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.result .btn { margin-top: var(--sm); }
.note { text-align: center; color: var(--text-3); font-size: var(--fs-small); margin-top: var(--lg); }
.note.warn { color: var(--brand-deep); }

/* ---------- Pasos y FAQ ---------- */
.steps { display: grid; gap: var(--lg); counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--xxl); } }
.step { counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); font-weight: 700; margin-bottom: var(--lg); }
.step h3 { font-size: var(--fs-title); font-weight: 600; margin-bottom: var(--sm); }
.step p { color: var(--text-2); font-size: var(--fs-small); }
.faq { max-width: 720px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--lg); min-height: 60px; padding: var(--lg) 0; font-weight: 600; font-size: var(--fs-title); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--lg); color: var(--text-2); }

/* ---------- Demo ---------- */
.demo { display: grid; gap: var(--massive); align-items: start; }
.demo h2 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: var(--lg); }
.demo > div > p { color: var(--text-2); font-size: var(--fs-title); }
.contact { display: grid; gap: var(--sm); margin-top: var(--xxl); font-size: var(--fs-small); color: var(--text-2); }
.form { display: grid; gap: var(--lg); }
.form .two { display: grid; gap: var(--lg); }
@media (min-width: 600px) { .form .two { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 8px; font-size: var(--fs-small); font-weight: 500; color: var(--text); }
@media (min-width: 600px) { .form label { font-weight: 400; } }
.form label:not(.consent) > span:first-child { padding-inline: 10px; }  /* el rótulo se sangra 10 px, como en la app */
/* Campos: los mismos que los outlined de la app (docs/pepper/landing-inputs-como-la-app.md) */
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=number], .form select, .form textarea {
  min-height: 58px; padding: 16px 20px; width: 100%; background: var(--card); color: var(--text); caret-color: var(--text);
  border: 1px solid var(--field-border); border-radius: var(--r-md); font-size: 16px; font-weight: 600;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { min-height: 109px; resize: vertical; }
/* Foco: el borde pasa a 1,5 px gris. Sin halo ni sombra de color; el borde es la señal (el outline global no aplica a los campos). */
.form input:not([type=checkbox]):focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--field-focus); box-shadow: inset 0 0 0 .5px var(--field-focus); }
.form input:not([type=checkbox]):user-invalid, .form input.invalid, .form select.invalid, .form textarea.invalid { border-color: var(--error); }
.form input:not([type=checkbox]):user-invalid:focus, .form input.invalid:focus, .form select.invalid:focus, .form textarea.invalid:focus { border-color: var(--error); box-shadow: inset 0 0 0 .5px var(--error); }
.form input:disabled, .form select:disabled, .form textarea:disabled { background: var(--field-disabled); border-color: rgba(229, 231, 235, .5); cursor: not-allowed; }
.form label:has(:disabled) { color: var(--text-3); }
/* El navegador pinta su azul o amarillo al autocompletar: se fuerza el fondo blanco */
.form input:-webkit-autofill, .form input:-webkit-autofill:hover, .form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); transition: background-color 9999s;
}
.consent { grid-template-columns: 22px 1fr; align-items: start; font-weight: 400 !important; }
.consent input { width: 22px; height: 22px; accent-color: var(--text); margin: 0; }
.echo { display: none; background: var(--brand-soft); border-radius: var(--r-md); padding: var(--md) var(--lg); font-size: var(--fs-small); }
.echo.on { display: block; }
.form-ok { display: none; text-align: center; padding: var(--xxl) 0; }
.form-ok h3 { font-size: var(--fs-h3); margin-bottom: var(--sm); }
.form.done > :not(.form-ok) { display: none; }
.form.done .form-ok { display: block; }
.proto { font-size: 12px; color: var(--text-3); text-align: center; }
@media (min-width: 1024px) { .demo { grid-template-columns: 1fr 1.1fr; } }

/* ---------- Pie ---------- */
.foot { background: var(--card); border-top: 1px solid var(--line); padding-block: var(--massive) var(--xxxl); font-size: var(--fs-small); color: var(--text-2); }
.foot-grid { display: grid; gap: var(--xxxl); }
.foot img { height: 22px; width: auto; margin-bottom: var(--md); }
.foot h4 { font-size: var(--fs-small); font-weight: 600; color: var(--text); margin-bottom: var(--md); }
.foot ul { display: grid; gap: 4px; }
.foot a { text-decoration: none; display: inline-block; padding: 4px 0; }
.foot a:hover { text-decoration: underline; }
.foot-bottom { margin-top: var(--xxxl); padding-top: var(--xl); border-top: 1px solid var(--line); color: var(--text-3); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }


/* ---------- Movimiento: una sola aparición suave por scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Botón oscuro sobre la banda amarilla */
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { filter: brightness(1.2); }


/* Descarga de las apps */
.stores-title { margin-top: var(--xl); font-weight: 600; color: var(--text); }
.stores { display: flex; flex-wrap: wrap; gap: var(--md); margin-top: var(--md); align-items: center; }
.stores a { display: block; line-height: 0; }
.stores a { padding: 0; }
.stores img { height: 44px; width: auto; margin: 0; }

/* ---------- Hero: el producto estrella ---------- */
.wrap.wide { max-width: calc(1240px + var(--pad) * 2); }
.hero-visual { position: relative; margin-top: clamp(32px, 5vw, 56px); }
.hero-glow { position: absolute; inset: 8% 6% -6%; background: radial-gradient(60% 60% at 50% 40%, var(--brand-soft), transparent 72%); filter: blur(24px); opacity: .9; }
.hero-frame {
  position: relative; background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  transform-origin: 50% 0;
  transform: translateY(calc((1 - var(--p, 1)) * 28px)) scale(calc(.95 + var(--p, 1) * .05));
  box-shadow: 0 calc(10px + var(--p, 1) * 22px) calc(30px + var(--p, 1) * 30px) rgba(31, 41, 55, calc(.07 + var(--p, 1) * .07));
  will-change: transform;
}
.hero-frame > img { display: block; width: 100%; height: auto; }

/* Wireframe del panel mientras no hay captura real */
.mock { aspect-ratio: 16 / 10; display: grid; grid-template-rows: auto 1fr; background: var(--bg); position: relative; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--brand); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(31,41,55,.35); }
.mock-bar b { margin-left: 10px; height: 10px; width: 22%; border-radius: 5px; background: rgba(31,41,55,.2); }
.mock-body { display: grid; grid-template-columns: 56px 1fr; min-height: 0; }
.mock-side { background: var(--card); border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 12px; align-content: start; }
.mock-side span { height: 28px; border-radius: 8px; background: var(--line); }
.mock-side span.on { background: var(--brand-soft); }
.mock-main { padding: clamp(10px, 2vw, 24px); display: grid; gap: clamp(8px, 1.6vw, 16px); grid-template-rows: auto 1fr; min-height: 0; }
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.6vw, 16px); }
.mock-kpis div, .mock-chart, .mock-list { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); }
.mock-kpis div { padding: clamp(8px, 1.4vw, 16px); display: grid; gap: 8px; }
.mock-kpis em { height: 8px; width: 55%; border-radius: 4px; background: var(--line); }
.mock-kpis b { height: clamp(14px, 2.4vw, 26px); width: 78%; border-radius: 6px; background: var(--brand); }
.mock-panels { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(8px, 1.6vw, 16px); min-height: 0; }
.mock-chart { display: flex; align-items: flex-end; gap: 4%; padding: clamp(10px, 2vw, 22px); }
.mock-chart span { flex: 1; background: var(--brand); border-radius: 5px 5px 0 0; }
.mock-chart span:nth-child(odd) { background: var(--brand-soft); }
.mock-list { padding: clamp(10px, 2vw, 20px); display: grid; gap: clamp(6px, 1.2vw, 12px); align-content: start; }
.mock-list p { height: clamp(8px, 1.4vw, 14px); border-radius: 5px; background: var(--line); }
.mock-list p:nth-child(2n) { width: 70%; }
.mock-tag { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12px; font-weight: 600; background: var(--warning-bg); color: var(--brand-deep); padding: 4px 12px; border-radius: 999px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } .mock-kpis { grid-template-columns: repeat(2, 1fr); } .mock-kpis div:nth-child(n+3) { display: none; } .mock { aspect-ratio: 4 / 3.4; } }
@media (prefers-reduced-motion: reduce) { .hero-frame { transform: none; } }

/* ---------- Hero: homologado con la landing publicada ---------- */
/* Escritorio (>1000): texto a la izquierda, edificios a la derecha. Debajo: texto centrado, imagen entre título y subtítulo en el original; aquí apilado. */
.mark { color: var(--brand); font-size: 1.29em; } /* como la landing publicada: 62 sobre 48. Ojo: contraste ~1,4:1, decisión de marca */
.hero-grid { display: grid; gap: var(--xxxl); align-items: center; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-cta { justify-content: center; }
.hero-art img { width: 100%; height: auto; border-radius: var(--r-lg); }
@media (max-width: 1000px) { .hero-art { order: 2; } .hero-copy { display: contents; } .hero-grid { text-align: center; justify-items: center; } .hero-grid h1 { order: 1; } .hero-grid .lead { order: 3; } .hero-grid .hero-cta { order: 4; } }
@media (min-width: 1001px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--massive); text-align: left; }
  .hero-copy { align-items: flex-start; }
  .hero-cta { justify-content: flex-start; }
}

/* ---------- Pie: la única banda amarilla acentuada, y más grande ---------- */
.foot { background: var(--band); border-top: 0; padding-block: clamp(72px, 10vw, 136px) var(--huge); font-size: var(--fs-body); }
.wrap.foot-wrap { max-width: calc(1240px + var(--pad) * 2); }
.foot-grid { gap: clamp(32px, 5vw, 64px); }
.foot img { height: 30px; margin-bottom: var(--lg); }
.foot h4 { font-size: var(--fs-title); margin-bottom: var(--lg); }
.foot ul { gap: var(--sm); }
.foot a { padding: 6px 0; }
.foot .stores-title { font-size: var(--fs-title); }
.foot .stores img { height: 48px; width: auto; margin: 0; display: block; }
.foot-bottom { margin-top: clamp(48px, 6vw, 88px); padding-top: var(--xxl); border-top: 1px solid rgba(31, 41, 55, .15); color: var(--text-2); }

/* ---------- Módulos en órbita (escritorio) ---------- */
.orbit-wrap { display: none; }
/* Expanded (≥900): círculo. Compact y medium: cuadrícula en cascada. */
@media (min-width: 900px) {
  .orbit-mode .grid.mods { display: none; }
  .orbit-mode .orbit-wrap { display: block; }
}
.orbit { position: relative; width: min(760px, 100%, calc(100vh - 120px)); aspect-ratio: 1; margin-inline: auto; }
.orbit::before { content: ""; position: absolute; inset: 11%; border-radius: 50%; border: 2px dashed var(--brand); opacity: .55; }
.hub {
  position: absolute; inset: 23%; border-radius: 50%; background: var(--card); box-shadow: 0 8px 32px rgba(31, 41, 55, .12);
  display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--sm); padding: 8%;
}
.hub .ico { width: 52px; height: 52px; }
.hub .ico svg { width: 28px; height: 28px; }
.hub h3 { font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); font-weight: 700; }
.hub p { color: var(--text-2); font-size: var(--fs-small); max-width: 26ch; }
.hub .tag { font-size: 12px; font-weight: 600; background: var(--warning-bg); color: var(--brand-deep); padding: 2px 10px; border-radius: 999px; }
.hub > * { transition: opacity .25s, transform .25s var(--ease); }
.hub.swap > * { opacity: 0; transform: translateY(6px); }
.node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(.4); opacity: 0;
  display: grid; justify-items: center; gap: 6px; width: 104px; background: none; border: 0; cursor: pointer; padding: 0;
  transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms);
}
.orbit.in .node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.node .dot { width: 64px; height: 64px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; transition: background .25s, transform .25s var(--ease), box-shadow .25s; }
.node .dot svg { width: 26px; height: 26px; stroke: var(--text-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node span { font-size: 13px; font-weight: 600; color: var(--text-2); line-height: 1.2; text-align: center; }
.node.on .dot, .node:hover .dot { background: var(--brand); transform: scale(1.12); box-shadow: 0 6px 18px rgba(250, 210, 40, .5); }
.node.on span, .node:hover span { color: var(--text); }
.node:focus-visible { outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .node { opacity: 1; transform: translate(-50%, -50%); } .hub > * { transition: none; } }

/* ---------- Módulos: cuadrícula en cascada diagonal ---------- */
.js .mods .casc { opacity: 0; transform: translateY(40px) scale(.95); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .25s; transition-delay: var(--d, 0ms); }
.js .mods .casc.in { opacity: 1; transform: none; }
.js .mods .casc .ico { transform: scale(.4) rotate(-14deg); transition: transform .7s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--d, 0ms) + 160ms); }
.js .mods .casc.in .ico { transform: none; }
.mods .casc.in:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(31, 41, 55, .12); transition-delay: 0ms; }
.mods .casc.in:hover .ico { background: var(--brand); }
@media (prefers-reduced-motion: reduce) { .js .mods .casc, .js .mods .casc .ico { opacity: 1; transform: none; } }
@media (min-width: 1024px) { .mods > :last-child:nth-child(3n+1) { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; column-gap: var(--xl); } .mods > :last-child:nth-child(3n+1) .ico { margin: 0; grid-row: 1 / span 2; } .mods > :last-child:nth-child(3n+1) .tag { grid-row: 1 / span 2; grid-column: 3; } }

/* ==========================================================================
   Micro-animaciones por módulo (dibujadas en código, sin archivos).
   El estado BASE es el estado final: sin animación (reducir movimiento)
   se ve el dibujo completo y quieto.
   ========================================================================== */
.viz { display: grid; place-items: center; height: 112px; overflow: hidden; } /* sin fondo propio: queda el color de la tarjeta */
.mods .viz { margin-bottom: var(--sm); }
.mods .mod .ico { display: none; }
.hub .viz { height: 96px; width: 100%; background: transparent; }
.hub .viz .v { transform: scale(.88); }
.v { position: relative; width: 220px; height: 100px; font-size: 12px; font-weight: 600; color: var(--text-2); --loop: 4.5s; }
.v > * { position: absolute; }
.v .box { background: var(--card); border-radius: 10px; box-shadow: var(--shadow); }
.v .ln { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.v .pill { background: var(--brand); color: var(--text); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.v svg { overflow: visible; }

/* Cartelera */
.v-board .post { left: 35px; top: 16px; width: 150px; height: 70px; padding: 12px; display: grid; grid-template-columns: 24px 1fr; gap: 6px 10px; align-content: start; animation: postIn var(--loop) var(--ease) infinite; }
.v-board .av { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); grid-row: 1 / span 3; }
.v-board .ln:nth-child(2) { width: 90%; background: var(--text-3); opacity: .5; }
.v-board .ln:nth-child(3) { width: 70%; }
.v-board .ln:nth-child(4) { width: 50%; }
.v-board .pill { right: 22px; top: 6px; animation: pop var(--loop) infinite; transform-origin: 50% 100%; }
@keyframes postIn { 0% { opacity: 0; transform: translateY(16px); } 14%, 84% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes pop { 0%, 14% { opacity: 0; transform: scale(.3); } 22% { opacity: 1; transform: scale(1.15); } 28%, 84% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* Visitantes */
.v-visit .qr { left: 78px; top: 14px; width: 64px; height: 64px; padding: 6px; }
.v-visit .qr svg { width: 52px; height: 52px; display: block; }
.v-visit .scan { left: 68px; top: 14px; width: 84px; height: 3px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 10px var(--brand); animation: scan var(--loop) ease-in-out infinite; }
.v-visit .pill { left: 64px; top: 84px; background: #DCFCE7; color: var(--success); animation: okIn var(--loop) infinite; }
@keyframes scan { 0% { top: 14px; opacity: 0; } 8% { opacity: 1; } 55% { top: 76px; opacity: 1; } 62%, 100% { top: 76px; opacity: 0; } }
@keyframes okIn { 0%, 55% { opacity: 0; transform: translateY(6px); } 66%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Paquetes */
.v-parcel .toast { left: 20px; top: 27px; width: 180px; height: 46px; padding: 8px 12px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; animation: slideIn var(--loop) var(--ease) infinite; }
.v-parcel .toast .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); display: grid; place-items: center; }
.v-parcel .toast .ic svg { width: 18px; height: 18px; stroke: var(--text-2); fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.v-parcel .toast b { display: block; font-size: 12px; color: var(--text); line-height: 1.2; }
.v-parcel .toast small { font-size: 11px; font-weight: 500; color: var(--text-3); }
@keyframes slideIn { 0% { opacity: 0; transform: translateX(70px); } 16%, 84% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-20px); } }

/* Asambleas */
.v-assembly .box { left: 8px; top: 10px; width: 204px; height: 82px; padding: 8px 12px; display: grid; grid-template-rows: 18px 14px 14px; gap: 8px; align-content: center; overflow: hidden; }
.v-assembly .top { display: flex; align-items: center; justify-content: space-between; }
.v-assembly .avs { display: flex; }
.v-assembly .avs i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -5px; background: var(--brand-soft); animation: avIn var(--loop) var(--ease) infinite; animation-delay: var(--d); transform-origin: 50% 100%; }
.v-assembly .avs i:first-child { margin-left: 0; }
.v-assembly .avs i:nth-child(1) { --d: 0s; background: var(--brand); } .v-assembly .avs i:nth-child(2) { --d: .12s; } .v-assembly .avs i:nth-child(3) { --d: .24s; background: var(--brand); } .v-assembly .avs i:nth-child(4) { --d: .36s; background: var(--line); } .v-assembly .avs i:nth-child(5) { --d: .48s; }
.v-assembly .q { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-3); }
.v-assembly .q .bar { width: 44px; }
.v-assembly .vt { display: grid; grid-template-columns: 50px 1fr; gap: 8px; align-items: center; font-size: 11px; height: 14px; }
.v-assembly .bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; display: block; }
.v-assembly .bar i { display: block; height: 100%; width: var(--w); background: var(--brand); border-radius: 4px; transform-origin: 0 50%; animation: fill var(--loop) var(--ease) infinite; animation-delay: var(--d, .6s); }
.v-assembly .vt:nth-of-type(3) .bar i { background: var(--text-3); }
.v-assembly .pill { right: 4px; top: 0; background: #DCFCE7; color: var(--success); animation: stamp var(--loop) infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 28%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes avIn { 0%, 2% { transform: scale(0); opacity: 0; } 10%, 90% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
@keyframes stamp { 0%, 62% { opacity: 0; transform: scale(1.6) rotate(-8deg); } 70% { opacity: 1; transform: scale(.94) rotate(-3deg); } 75%, 90% { opacity: 1; transform: scale(1) rotate(-3deg); } 100% { opacity: 0; } }

/* Activos y mantenimiento */
.v-assets .gear { left: 26px; top: 26px; width: 48px; height: 48px; animation: spin 7s linear infinite; }
.v-assets .gear svg { width: 48px; height: 48px; stroke: var(--text-2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.v-assets .box { left: 92px; top: 14px; width: 108px; height: 72px; padding: 10px 12px; display: grid; gap: 8px; align-content: center; }
.v-assets .it { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: center; }
.v-assets .ck { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); animation: tick var(--loop) infinite; animation-delay: var(--d); }
.v-assets .it:nth-child(1) { --d: .3s; } .v-assets .it:nth-child(2) { --d: 1s; } .v-assets .it:nth-child(3) { --d: 1.7s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick { 0%, 4% { background: transparent; border-color: var(--line); } 10%, 85% { background: var(--brand); border-color: var(--brand); } 100% { background: transparent; border-color: var(--line); } }

/* Presupuesto */
.v-budget .box { left: 20px; top: 8px; width: 180px; height: 84px; }
.v-budget .bars { left: 34px; top: 20px; width: 152px; height: 60px; display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--line); }
.v-budget .g { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.v-budget .g i { display: block; width: 10px; height: var(--h); border-radius: 3px 3px 0 0; background: var(--brand-soft); transform-origin: 50% 100%; animation: grow var(--loop) var(--ease) infinite; animation-delay: var(--d); }
.v-budget .g i + i { background: var(--brand); }
@keyframes grow { 0% { transform: scaleY(0); } 28%, 88% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

/* Mi hogar */
.v-home .house { left: 10px; top: 12px; width: 76px; height: 78px; transform-origin: 50% 100%; animation: houseIn var(--loop) var(--ease) infinite; }
.v-home .house svg { width: 76px; height: 78px; }
.v-home .win { animation: glow var(--loop) ease-in-out infinite; }
.v-home .puff { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--line); left: 61px; top: 8px; opacity: 0; animation: puff 2.6s ease-out infinite; }
.v-home .puff:nth-of-type(2) { animation-delay: 1.3s; }
.v-home .box { left: 96px; top: 12px; width: 114px; height: 76px; padding: 10px 12px; display: grid; grid-template-columns: 30px 1fr; gap: 6px 10px; align-items: center; align-content: center; }
.v-home .ring { grid-row: 1 / span 2; width: 30px; height: 30px; position: relative; }
.v-home .ring svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.v-home .ring .tr { fill: none; stroke: var(--line); stroke-width: 4; }
.v-home .ring .pg { fill: none; stroke: var(--success); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 75.4; stroke-dashoffset: 0; animation: ringFill var(--loop) var(--ease) infinite; }
.v-home .ring .ck { position: absolute; inset: 0; display: grid; place-items: center; animation: pop var(--loop) infinite; }
.v-home .ring .ck svg { width: 14px; height: 14px; transform: none; fill: none; stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.v-home .box .ln:nth-of-type(1) { width: 100%; } .v-home .box .ln:nth-of-type(2) { width: 62%; }
.v-home .pill { grid-column: 1 / -1; justify-self: start; background: #DCFCE7; color: var(--success); animation: pop var(--loop) infinite; transform-origin: 0 50%; }
@keyframes houseIn { 0% { opacity: 0; transform: translateY(14px) scale(.85); } 14%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes glow { 0%, 20% { fill: var(--line); } 34%, 88% { fill: var(--brand); } 100% { fill: var(--line); } }
@keyframes puff { 0% { opacity: 0; transform: translate(0, 4px) scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(8px, -22px) scale(1.5); } }
@keyframes ringFill { 0%, 12% { stroke-dashoffset: 75.4; } 40%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 75.4; } }

/* Avisos */
.v-bell .bell { left: 28px; top: 20px; width: 50px; height: 56px; transform-origin: 50% 8%; animation: ring var(--loop) ease-in-out infinite; }
.v-bell .bell svg { width: 50px; height: 56px; stroke: var(--text-2); fill: var(--brand-soft); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.v-bell .badge { left: 62px; top: 14px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--error); color: #fff; font-size: 11px; display: grid; place-items: center; animation: pop var(--loop) infinite; }
.v-bell .box { left: 92px; top: 24px; width: 108px; height: 52px; padding: 10px 12px; display: grid; gap: 8px; align-content: center; animation: slideIn var(--loop) var(--ease) infinite; }
@keyframes ring { 0%, 14%, 40%, 100% { transform: rotate(0); } 18% { transform: rotate(16deg); } 23% { transform: rotate(-14deg); } 28% { transform: rotate(10deg); } 33% { transform: rotate(-6deg); } 37% { transform: rotate(0); } }

/* Roles y permisos */
.v-roles .lock { left: 26px; top: 18px; width: 48px; height: 60px; }
.v-roles .lock svg { width: 48px; height: 60px; fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-roles .lock .body { fill: var(--brand-soft); }
.v-roles .lock .sh { transform-origin: 14px 20px; animation: shackle var(--loop) var(--ease) infinite; }
.v-roles .box { left: 92px; top: 14px; width: 108px; height: 72px; padding: 10px 12px; display: grid; gap: 9px; align-content: center; }
.v-roles .sw { display: grid; grid-template-columns: 1fr 26px; gap: 8px; align-items: center; }
.v-roles .tg { width: 26px; height: 14px; border-radius: 7px; background: var(--brand); position: relative; animation: tgBg var(--loop) infinite; animation-delay: var(--d); }
.v-roles .tg::after { content: ""; position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: tgKnob var(--loop) infinite; animation-delay: var(--d); }
.v-roles .sw:nth-child(1) { --d: 0s; } .v-roles .sw:nth-child(2) { --d: .5s; } .v-roles .sw:nth-child(3) { --d: 1s; }
@keyframes shackle { 0%, 10% { transform: translateY(0) rotate(0); } 22%, 62% { transform: translateY(-5px) rotate(-22deg); } 78%, 100% { transform: translateY(0) rotate(0); } }
@keyframes tgBg { 0%, 20% { background: var(--brand); } 30%, 60% { background: var(--line); } 70%, 100% { background: var(--brand); } }
@keyframes tgKnob { 0%, 20% { right: 2px; } 30%, 60% { right: 14px; } 70%, 100% { right: 2px; } }

/* Citofonía */
.v-call .ph { left: 86px; top: 20px; width: 48px; height: 60px; display: grid; place-items: center; }
.v-call .ph svg { width: 30px; height: 30px; stroke: var(--text); fill: var(--brand); stroke-width: 1.6; stroke-linejoin: round; animation: shake var(--loop) ease-in-out infinite; }
.v-call .rg { left: 85px; top: 20px; width: 50px; height: 60px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: wave 2.4s ease-out infinite; animation-delay: var(--d); }
.v-call .rg:nth-child(2) { --d: 0s; } .v-call .rg:nth-child(3) { --d: .8s; } .v-call .rg:nth-child(4) { --d: 1.6s; }
.v-call .pill { left: 70px; top: 86px; }
@keyframes wave { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(-8deg); } 40% { transform: rotate(0); } }

@media (prefers-reduced-motion: reduce) { .v, .v * , .v *::after { animation: none !important; } }

/* ---------- Flujo: cuotas, reservas y parqueaderos → contabilidad (dibujado en código) ---------- */
.flowcard { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(16px, 3vw, 32px); display: grid; grid-template-columns: auto minmax(70px, 1fr) auto; gap: clamp(8px, 2vw, 20px); align-items: center; min-height: 260px; --loop: 6s; }
.fc-src { display: grid; gap: 14px; }
.fc-pill { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: var(--r-md); padding: 10px 14px; font-size: var(--fs-small); font-weight: 600; box-shadow: var(--shadow); animation: fcPulse var(--loop) infinite; animation-delay: calc(var(--i) * 1.4s); }
.fc-pill svg { width: 18px; height: 18px; stroke: var(--text-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fc-flow { position: relative; align-self: stretch; min-height: 150px; min-width: 70px; }
.fc-flow i { position: absolute; left: 0; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 12px); top: calc(16% + var(--i) * 34%); opacity: .7; }
.fc-flow i::after { content: ""; position: absolute; top: -4px; left: 0; will-change: left; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); animation: fcDot var(--loop) var(--ease) infinite; animation-delay: calc(var(--i) * 1.4s); }
.fc-book { background: var(--bg); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 12px; width: clamp(150px, 26vw, 190px); }
.fc-book b { font-size: var(--fs-small); }
.fc-row { display: grid; grid-template-columns: 1fr 34px; gap: 8px; align-items: center; font-size: 12px; color: var(--text-2); animation: fcRow var(--loop) infinite; animation-delay: calc(var(--i) * 1.4s + .9s); }
.fc-row .ln { display: block; height: 7px; border-radius: 4px; background: var(--brand); }
@keyframes fcPulse { 0%, 24%, 100% { box-shadow: var(--shadow); background: var(--bg); } 6%, 14% { box-shadow: 0 0 0 3px var(--brand-soft); background: var(--brand-soft); } }
@keyframes fcDot { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 22% { opacity: 1; } 28%, 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes fcRow { 0%, 6% { opacity: .25; transform: translateX(-6px); } 12%, 90% { opacity: 1; transform: none; } 100% { opacity: .25; } }
/* Compact: el flujo cae en vertical. Tres fuentes en fila, tres hilos que bajan y la contabilidad debajo. */
@media (max-width: 599px) {
  .flowcard { grid-template-columns: 1fr; gap: 0; padding: 16px; min-height: 0; }
  .fc-src { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .fc-pill { flex-direction: column; text-align: center; gap: 6px; padding: 12px 4px; font-size: 13px; }
  .fc-flow { display: grid; grid-template-columns: repeat(3, 1fr); height: 64px; min-height: 64px; min-width: 0; align-self: auto; }
  .fc-flow i { position: relative; top: auto; left: auto; width: 2px; height: 100%; margin-inline: auto; background: repeating-linear-gradient(180deg, var(--brand) 0 6px, transparent 6px 12px); }
  .fc-flow i::after { top: 0; left: -4px; animation-name: fcDotV; }
  .fc-book { width: 100%; }
}
@keyframes fcDotV { 0% { top: 0; opacity: 0; } 5% { opacity: 1; } 22% { opacity: 1; } 28%, 100% { top: calc(100% - 10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fc-pill, .fc-row, .fc-flow i::after { animation: none !important; opacity: 1; } .fc-flow i::after { opacity: 0; } }

/* Reservas */
.v-resv .cal { left: 30px; top: 12px; width: 160px; height: 74px; padding: 10px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; align-content: center; }
.v-resv .cal i { height: 14px; border-radius: 4px; background: var(--line); }
.v-resv .cal i:nth-child(3n) { background: var(--brand-soft); }
.v-resv .cal .pick { background: var(--brand); animation: pick var(--loop) var(--ease) infinite; }
.v-resv .pill { right: 18px; top: 0; background: #DCFCE7; color: var(--success); animation: pop var(--loop) infinite; }
@keyframes pick { 0%, 14% { transform: scale(1); background: var(--line); } 22% { transform: scale(1.5); background: var(--brand); } 30%, 90% { transform: scale(1.15); background: var(--brand); } 100% { transform: scale(1); background: var(--line); } }

/* Parqueaderos */
.v-park .sign { left: 16px; top: 22px; width: 36px; height: 36px; border-radius: 9px; background: var(--brand); color: var(--text); font-weight: 800; font-size: 20px; display: grid; place-items: center; box-shadow: var(--shadow); }
.v-park .gate { left: 74px; top: 20px; width: 70px; height: 50px; }
.v-park .gate .post { position: absolute; left: 0; bottom: 0; width: 12px; height: 34px; border-radius: 4px; background: var(--text-2); }
.v-park .gate .arm { position: absolute; left: 6px; bottom: 30px; width: 62px; height: 7px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--brand) 0 9px, var(--card) 9px 18px); border: 1px solid var(--text-2); transform-origin: 0 50%; animation: arm var(--loop) var(--ease) infinite; }
.v-park .car { left: 20px; top: 44px; width: 46px; height: 22px; animation: drive var(--loop) var(--ease) infinite; }
.v-park .car > i:first-child { position: absolute; inset: 0; border-radius: 9px 12px 5px 5px; background: var(--text-2); }
.v-park .car .w { position: absolute; bottom: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--text); border: 2px solid var(--card); }
.v-park .car .w1 { left: 6px; } .v-park .car .w2 { right: 6px; }
.v-park .pill { left: 58px; top: 82px; animation: pop var(--loop) infinite; }
@keyframes arm { 0%, 20% { transform: rotate(0); } 30%, 62% { transform: rotate(-70deg); } 72%, 100% { transform: rotate(0); } }
@keyframes drive { 0%, 24% { transform: translateX(-4px); opacity: 0; } 30% { opacity: 1; } 34%, 40% { transform: translateX(0); } 62% { transform: translateX(150px); opacity: 1; } 70%, 100% { transform: translateX(170px); opacity: 0; } }

/* ---------- Accesibilidad ---------- */
.anim-toggle { min-height: 44px; padding: 0 var(--xl); border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: var(--fs-small); cursor: pointer; }
.anim-toggle:hover { background: var(--card); }
body.anim-paused *, body.anim-paused *::before, body.anim-paused *::after { animation-play-state: paused !important; }
.v .pill.ok, .v-visit .pill, .v-resv .pill, .v-home .pill, .v-assembly .pill { color: #166534; }
.v .pill { font-size: 12px; }
.node span { font-size: 14px; }
.req { color: var(--brand-deep); }
.err { display: none; font-size: var(--fs-small); font-weight: 500; color: #B91C1C; }
.err::before { content: "! "; font-weight: 700; }
.invalid + .err, .err.on { display: block; }
.form-note { font-size: var(--fs-small); color: var(--text-3); }
.consent .err { grid-column: 1 / -1; }

/* Selector: iOS ignora min-height en <select>; se fija la altura y se dibuja la flecha */
.form select { -webkit-appearance: none; appearance: none; height: 48px; padding-right: 44px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=number] { height: 48px; }
.nav .menu .btn { min-height: 52px; padding: 10px 20px; font-size: var(--fs-title); border-radius: var(--r-lg); }

/* ---------- Cifras ---------- */
.stats { padding-block: clamp(32px, 5vw, 56px); }
.stats-grid { display: grid; gap: var(--lg); max-width: 760px; margin-inline: auto; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--xxl); } }
.stat { display: grid; gap: 4px; justify-items: center; text-align: center; padding: var(--xxl) var(--xl); }
.stat .ico { margin-bottom: var(--sm); }
.stat .num { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 3.75rem); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .lbl { font-weight: 600; color: var(--text); max-width: 22ch; }
.stat small { color: var(--text-3); font-size: var(--fs-small); }
.mock-tag-note { text-align: center; margin-top: var(--lg); }
.todo-tag { display: inline-block; font-size: 12px; font-weight: 600; background: var(--warning-bg); color: var(--brand-deep); padding: 4px 12px; border-radius: 999px; }

/* ---------- Qué incluye cada plan ---------- */
.plan-incl { color: var(--text); font-weight: 600; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.matrix-block { margin-top: clamp(40px, 6vw, 72px); }
.matrix-block h3 { text-align: center; font-size: var(--fs-h2); font-weight: 700; margin-bottom: var(--xxl); }
.matrix-card { max-width: 920px; margin-inline: auto; padding: 0; overflow: hidden; }
.matrix { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.matrix th, .matrix td { padding: 12px 10px; text-align: center; border-top: 1px solid var(--line); }
.matrix thead th { border-top: 0; font-size: var(--fs-body); padding-block: var(--lg); background: var(--card); }
.matrix thead th small { display: block; font-weight: 500; color: var(--text-3); font-size: 12px; }
.matrix th[scope="row"] { text-align: left; font-weight: 500; padding-left: var(--lg); color: var(--text); }
.matrix th[scope="colgroup"], .matrix .grp td { text-align: left; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); background: var(--bg); padding: 10px var(--lg); }
.matrix .mk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.matrix .mk.y { background: var(--brand); }
.matrix .mk.y svg { width: 14px; height: 14px; stroke: var(--text); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.matrix .mk.n { color: var(--text-3); font-weight: 700; }
.matrix .soon { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; background: var(--warning-bg); color: var(--brand-deep); padding: 1px 8px; border-radius: 999px; }
.matrix[data-plan="starter"] [data-p="starter"], .matrix[data-plan="pro"] [data-p="pro"], .matrix[data-plan="enterprise"] [data-p="enterprise"] { background: var(--brand-soft); }
.matrix .grp td { background: var(--bg) !important; }
@media (max-width: 599px) { .matrix th, .matrix td { padding: 10px 6px; } .matrix th[scope="row"] { padding-left: var(--md); } }

.base-line { text-align: center; max-width: 760px; margin: 0 auto var(--xxl); color: var(--text-2); }
.base-line b { color: var(--text); }
/* `hidden` manda sobre cualquier `display` de una clase: sin esto `.plan-tag` y `.from` seguían visibles con `hidden`, y una sección
   oculta dejaría su hueco. */
[hidden] { display: none !important; }
.plan-tag, .from { display: inline-block; font-size: 12px; font-weight: 600; background: var(--brand-soft); color: var(--text); padding: 3px 10px; border-radius: 999px; justify-self: start; }
.plan-tag { margin-bottom: var(--sm); }
.row > div > .plan-tag { display: inline-block; }
.hub .from { margin-top: 2px; justify-self: center; }
.mods .from { margin-top: var(--sm); }

/* ---------- Vistas previas (wireframes) de PQRs y Asambleas ---------- */
.wf-phone { width: min(270px, 100%); aspect-ratio: 9 / 18; margin-inline: auto; border-radius: 30px; border: 9px solid var(--text); background: var(--bg); box-shadow: var(--shadow-lg, 0 24px 64px rgba(31,41,55,.14)); overflow: hidden; display: grid; grid-template-rows: 54px 1fr; }
.wf-bar { background: var(--brand); }
.wf-list { padding: 12px; display: grid; gap: 10px; align-content: start; }
.wf-item { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: center; }
.wf-item .d { width: 14px; height: 14px; border-radius: 50%; background: var(--success); }
.wf-item .d.a { background: #F59E0B; } .wf-item .d.r { background: var(--error); }
.wf-item span { display: grid; gap: 7px; }
.wf-item .ln { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.wf-item .ln.s { width: 60%; }
.wf-web { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); }
.wf-cols { padding: clamp(12px, 2.4vw, 24px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 20px); min-height: 0; }
.wf-card { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: clamp(12px, 2vw, 20px); display: grid; gap: 12px; align-content: start; position: relative; }
.wf-h { display: block; height: 10px; width: 42%; border-radius: 5px; background: var(--brand); margin-bottom: 4px; }
.wf-att { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; }
.wf-att i { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); }
.wf-att:nth-of-type(odd) i { background: var(--brand); }
.wf-att .ln { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.wf-vote { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.wf-vote i { display: block; height: 9px; width: var(--w); border-radius: 5px; background: var(--brand); }
.wf-vote i.g { background: var(--text-3); }
.wf-ok { justify-self: start; margin-top: 4px; font-size: 12px; font-weight: 700; background: #DCFCE7; color: #166534; padding: 3px 12px; border-radius: 999px; }
@media (max-width: 599px) { .wf-cols { grid-template-columns: 1fr; } .wf-cols .wf-card:first-child { display: none; } }

/* Al ir a una sección desde el menú, el contenido queda a ~24 px de la barra: se descuenta el
   padding vertical de la sección (que es aire, no contenido) del desplazamiento. */
#producto, #modulos, #precios, #empezar, #demo, #faq { scroll-margin-top: calc(24px - var(--sec-top)); }
#contacto, #incluye { scroll-margin-top: 24px; }
/* Desvanecido tras la cápsula flotante: el contenido se difumina y se funde con el fondo al pasar por debajo */
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 108px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease);
  /* El contenido que sube por detrás de la barra se va desvaneciendo SIN llegar a blanco puro:
     el velo nunca pasa de ~85 % y se apaga con una curva suave (sin borde marcado). */
  background: linear-gradient(to bottom,
    rgba(255, 253, 249, .85) 0%, rgba(255, 253, 249, .82) 40%, rgba(255, 253, 249, .72) 52%,
    rgba(255, 253, 249, .55) 62%, rgba(255, 253, 249, .36) 72%, rgba(255, 253, 249, .2) 82%,
    rgba(255, 253, 249, .08) 92%, rgba(255, 253, 249, 0) 100%); }
.nav.scrolled::before, .nav.open::before { opacity: 1; }
@media (min-width: 900px) { .nav::before { display: none; } }

/* Compact: barra unos píxeles más baja (64 → 56; cápsula 60 → 52) */
@media (max-width: 599px) {
  html { scroll-padding-top: 60px; }
  .nav { height: 56px; }
  .nav-in { height: 56px; }
  .nav.scrolled .nav-in, .nav.open .nav-in { height: 52px; }
  .nav-logo img { height: 22px; }
  .nav::before { height: 96px; }
}

/* ==========================================================================
   Landing conectada al backend (Jean, 8-oct-2026)
   ========================================================================== */
/* El botón de envío mientras viaja la solicitud: se ve deshabilitado, no sólo deja de responder (§4.7). */
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: progress; box-shadow: none; filter: none; }
/* El error del envío: el texto del servidor, en el formulario, junto al botón. */
.form-error { display: none; background: #FEF2F2; color: #B91C1C; border-radius: var(--r-md); padding: var(--md) var(--lg); font-size: var(--fs-small); font-weight: 500; }
.form-error.on { display: block; }
/* El honeypot: fuera de la vista Y de la tabulación. No es `display:none`, que algunos bots detectan. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Precios de respaldo: se dice que lo que se ve no es el valor vigente. */
.note.stale { color: var(--brand-deep); }

/* ── Páginas legales (mismo tope de texto que la v1: 860) ───────────────── */
.legal-wrap { max-width: 860px; margin: 0 auto; padding: var(--xxxl) var(--lg) var(--massive); }
.legal-kind { font-size: var(--fs-small); font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--lg); }
.legal-band { border-radius: var(--r-md); padding: var(--lg); margin-bottom: var(--xl); font-weight: 600; color: var(--text); }
.legal-band.old { background: var(--brand-soft); font-weight: 500; }
.legal-band a { color: var(--text); font-weight: 700; }
.legal { color: var(--text-2); line-height: 1.7; }
.legal h1 { font-size: var(--fs-h2); color: var(--text); line-height: 1.25; margin-bottom: var(--xl); }
.legal h2 { font-size: var(--fs-h3); color: var(--text); margin: var(--xxxl) 0 var(--md); }
.legal h3 { font-size: var(--fs-title); color: var(--text); margin: var(--xxl) 0 var(--sm); }
.legal p, .legal ul, .legal ol, .legal blockquote, .legal .legal-table { margin-bottom: var(--lg); }
.legal ul, .legal ol { padding-left: var(--xxl); }
.legal li { margin-bottom: 6px; }
.legal blockquote { border-left: 4px solid var(--brand); padding: var(--sm) var(--lg); background: var(--card); border-radius: 0 var(--r-md) var(--r-md) 0; }
.legal blockquote p { margin-bottom: var(--sm); }
.legal blockquote p:last-child { margin-bottom: 0; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: var(--xxxl) 0; }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.legal .ph { background: var(--warning-bg); padding: 0 4px; border-radius: 4px; }
.legal-table { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); background: var(--card); }
.legal th, .legal td { border: 1px solid var(--line); padding: var(--sm) var(--md); text-align: left; vertical-align: top; }
.legal th { color: var(--text); background: var(--surface); }
.legal-page .foot { padding-block: var(--xxl); }
.legal-page .foot-bottom a { color: var(--text-2); }
