/* ===== Kirigym · web pública (index.php). Temas copiados de app.css (manual de marca v2.0, 28-10-2026: tres colores de marca) =====
   El tema va en <html data-kt="turquesa | ambar | rojo"> (+ «-noche»). El gimnasio elige el color líder (turquesa, ámbar o rojo)
   y cada persona claro, oscuro o automático (ver layout.php). Todo el CSS usa estos tokens: nada de colores sueltos. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo-latin.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/hanken-grotesk-latin.woff2) format("woff2"); }
:root, [data-kt="turquesa"] {
  /* los tres colores de marca: los mismos en todos los temas (manual 2.0) */
  --turquesa: #3CCFD4; --ambar: #F0A23B; --rojo: #E5484D; --on-marca: #141619;
  --turquesa-ink: #0B7479; --ambar-ink: #9A5B0A; --rojo-ink: #B8282F;
  --bg: #F3F2EE; --surface: #FFFFFF; --surface-2: #E9E7E0; --text: #141619; --muted: #5E646B; --line: #D9D6CC;
  --primary: var(--turquesa); --on-primary: var(--on-marca); --primary-ink: var(--turquesa-ink); --accent: #8FE6DA; --deep: #141619; --on-deep: #F3F2EE;
  --socios: var(--rojo); --clases: var(--ambar); --totem: var(--turquesa); --cobros: #2E8B57; --accesos: #1B5FAA;
  --ok: #2E8B57; --warn: #9A5B0A; --bad: #A61B1B; --info: #1B5FAA;
  color-scheme: light;
}
[data-kt="ambar"] { --bg: #F6F3EC; --surface-2: #EDE7DA; --text: #10151F; --muted: #5B6475; --line: #DDD5C5; --deep: #10151F; --on-deep: #F6F3EC; }
[data-kt="rojo"] { --bg: #F6F2EF; --surface-2: #ECE5E1; --line: #DDD3CE; --on-deep: #F6F2EF; }
[data-kt$="-noche"] {
  --bg: #10151F; --surface: #171E2B; --surface-2: #1E2737; --text: #EEF2F8; --muted: #8A93A6; --line: #2A3346; --deep: #0B0F17; --on-deep: #EEF2F8;
  --on-marca: #10151F; --turquesa-ink: #5ED9DB; --ambar-ink: #F6B65E; --rojo-ink: #FF7A7E;
  --cobros: #3BA66E; --accesos: #3B82F6;
  --ok: #3BA66E; --warn: #F6B65E; --bad: #F28B82; --info: #6AA5F0;
  color-scheme: dark;
}
/* color líder que elige el gimnasio (el mismo para panel, área del socio y tótem) */
[data-kt^="ambar"] { --primary: var(--ambar); --primary-ink: var(--ambar-ink); --accent: #F9D49B; }
[data-kt^="rojo"] { --primary: var(--rojo); --primary-ink: var(--rojo-ink); --accent: #F4B3AE; }
:root {
  /* derivados: valen para los cuatro temas */
  --soft: color-mix(in srgb, var(--surface-2) 40%, var(--surface));
  --line-2: color-mix(in srgb, var(--text) 16%, var(--line));
  --text-2: color-mix(in srgb, var(--text) 80%, var(--surface));
  --ok-bg: color-mix(in srgb, var(--ok) 13%, var(--surface));   --ok-line: color-mix(in srgb, var(--ok) 40%, var(--surface));
  --warn-bg: color-mix(in srgb, var(--warn) 14%, var(--surface)); --warn-line: color-mix(in srgb, var(--warn) 40%, var(--surface));
  --bad-bg: color-mix(in srgb, var(--bad) 12%, var(--surface));  --bad-line: color-mix(in srgb, var(--bad) 38%, var(--surface));
  --info-bg: color-mix(in srgb, var(--info) 12%, var(--surface)); --info-line: color-mix(in srgb, var(--info) 38%, var(--surface));
  /* nombres de antes (siguen usándose en todo el CSS y en algunas páginas) */
  --card: var(--surface); --ink: var(--text); --brand: var(--deep); --gym: var(--primary); --radius: 6px;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 4px;
  --solapa: .5s cubic-bezier(.25,.9,.3,1);
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
}

/* ===== Web pública ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; font-stretch: 118%; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--primary-ink); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* botones: el principal lleva la esquina doblada */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 20px; border-radius: var(--r); border: 1px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-pri { background: var(--primary); color: var(--on-primary); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.btn-pri:hover { background: color-mix(in srgb, var(--primary) 88%, #fff); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-sm { --h: 38px; padding: 0 14px; font-size: .93rem; }

/* logo (en fondo oscuro): se ve el del color del tema */
.k-logo { height: 30px; width: auto; }
.k-logo-ambar, [data-kt^="ambar"] .k-logo-turquesa { display: none; }
[data-kt^="ambar"] .k-logo-ambar { display: block; }

/* cabecera fija */
.site-nav { position: sticky; top: 0; z-index: 20; background: var(--deep); color: var(--on-deep); border-bottom: 1px solid color-mix(in srgb, var(--on-deep) 10%, transparent); }
.site-nav .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.site-nav .brand { display: block; flex: none; }
.site-nav nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav nav a { text-decoration: none; font-weight: 600; font-size: .96rem; opacity: .78; }
.site-nav nav a:hover { opacity: 1; }
.site-nav .acts { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .site-nav nav { display: none; } }
@media (max-width: 480px) { .site-nav .wrap { gap: 10px; } .k-logo { height: 24px; } .site-nav .acts .btn-pri { display: none; } }

/* portada: fondo de la marca, borde inferior en diagonal (una solapa) y la k que se despliega */
.hero { position: relative; background: var(--deep); color: var(--on-deep); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7vw), 0 100%); padding: 56px 0 calc(64px + 7vw); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 46px, color-mix(in srgb, var(--on-deep) 4%, transparent) 46px 47px); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 8px; }
/* el logotipo completo, grande: el lienzo lleva el margen que deja KRev.reveal (10 % a los lados, 20 % arriba y abajo) */
.hero-logo { width: min(820px, 100%); }
.hero-logo canvas { display: block; width: 125%; max-width: none; margin: -6% 0 -6% -12.5%; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-weight: 900; font-stretch: 125%; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: .98; margin: 14px 0 20px; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--primary); }
.hero .lead { color: color-mix(in srgb, var(--on-deep) 78%, var(--deep)); font-size: clamp(1.08rem, 1.6vw, 1.25rem); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .95rem; color: color-mix(in srgb, var(--on-deep) 70%, var(--deep)); }
.hero .ticks li::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--primary); clip-path: polygon(0 0, 100% 0, 0 100%); }
@media (max-width: 860px) { .hero { padding-top: 36px; } }

/* secciones */
.sec { padding: 88px 0; }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.sec-head .lead { font-size: 1.1rem; }

/* módulos = pliegos: filo de color del módulo y esquina doblada */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pliego { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--primary)); border-radius: var(--r); padding: 24px 24px 26px; display: grid; align-content: start; gap: 10px; }
.pliego::after { content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; background: linear-gradient(225deg, var(--bg) 50%, color-mix(in srgb, var(--c, var(--primary)) 45%, var(--surface-2)) 50%); }
.pliego h3 { font-size: 1.45rem; }
.pliego p { color: var(--muted); font-size: 1rem; }
.pliego ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .95rem; }
.pliego li { display: flex; gap: 9px; align-items: baseline; }
.pliego li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--c, var(--primary)); clip-path: polygon(0 0, 100% 0, 0 100%); transform: translateY(-1px); }
/* icono del módulo: el mismo cuadrado con un pliegue distinto */
.ico { width: 44px; height: 44px; background: var(--c); border-radius: 3px; position: relative; overflow: hidden; }
.ico::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, #fff 36%, transparent); }
.ico.f1::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
.ico.f2::before { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }
.ico.f3::before { clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%); }
.ico.f4::before { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.ico.f5::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ico.f6::before { clip-path: polygon(0 0, 50% 0, 0 50%); }
.pliego.totem { grid-column: span 3; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; background: var(--deep); color: var(--on-deep); border-color: var(--deep); border-top-color: var(--primary); }
.pliego.totem::after { background: linear-gradient(225deg, var(--bg) 50%, var(--primary) 50%); }
.pliego.totem p { color: color-mix(in srgb, var(--on-deep) 75%, var(--deep)); }
.pliego .tag { font: 700 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pliego.totem .tag { color: var(--accent); }
@media (max-width: 960px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pliego.totem { grid-column: span 2; } }
@media (max-width: 640px) { .mods { grid-template-columns: 1fr; } .pliego.totem { grid-column: auto; grid-template-columns: 1fr; } }

/* cómo funciona: tres hojas que se van desplegando */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: paso; }
.step { position: relative; padding: 28px 28px 30px; background: var(--surface); border: 1px solid var(--line); counter-increment: paso; display: grid; gap: 10px; align-content: start; }
.step + .step { border-left: 0; }
.step:nth-child(2) { background: var(--soft); }
.step:nth-child(3) { background: var(--surface-2); }
.step::before { content: counter(paso, decimal-leading-zero); font: 800 2.6rem/1 var(--display); font-stretch: 75%; color: var(--primary-ink); }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: 1px solid var(--line); border-top: 0; } }

/* tótem */
.band { background: var(--deep); color: var(--on-deep); clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%); padding: calc(80px + 5vw) 0; }
.band .eyebrow { color: var(--accent); }
.band .lead { color: color-mix(in srgb, var(--on-deep) 75%, var(--deep)); }
.band .wrap { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center; }
.band ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.band li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.band li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; background: var(--primary); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.band li b { display: block; font-weight: 700; }
.band li span { color: color-mix(in srgb, var(--on-deep) 72%, var(--deep)); }
/* maqueta de la pantalla vertical */
.screen { aspect-ratio: 9 / 16; border-radius: 18px; padding: 12px; background: color-mix(in srgb, var(--on-deep) 12%, var(--deep)); box-shadow: 0 30px 60px -20px #000a; }
.screen-in { height: 100%; border-radius: 9px; background: var(--bg); color: var(--text); padding: 16px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; overflow: hidden; }
.screen-top { display: flex; justify-content: space-between; align-items: center; font: 700 .72rem/1 var(--body); color: var(--muted); }
.screen-top i { width: 18px; height: 18px; background: var(--primary); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 0 50%); }
.screen h4 { font-size: 1.15rem; }
.screen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.screen-grid span { aspect-ratio: 4 / 3; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c); display: flex; align-items: end; padding: 6px 8px; font: 600 .72rem/1.1 var(--body); }
.screen-bar { border-radius: var(--r); background: var(--primary); color: var(--on-primary); text-align: center; font: 700 .8rem/1 var(--body); padding: 11px; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; } .screen { max-width: 260px; margin: 0 auto; } }

/* precios */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 14px; align-content: start; position: relative; }
.plan.main { border: 2px solid var(--primary); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--primary); color: var(--on-primary); font: 700 .74rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.plan h3 { font-size: 1.5rem; }
.plan > p { color: var(--muted); }
.plan .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--primary)) 14%, transparent); }
.chip::before { content: ""; width: 7px; height: 7px; background: var(--c, var(--primary)); clip-path: polygon(0 0, 100% 0, 0 100%); }
.plan .btn { margin-top: 6px; justify-self: start; }
.notes { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; color: var(--muted); font-size: .97rem; }
.notes span::before { content: "✓"; color: var(--primary-ink); font-weight: 700; margin-right: 8px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact .lead { margin-top: 12px; }
.contact .aside { display: grid; gap: 14px; }
.form { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--r); padding: 28px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { font: 400 1rem/1.4 var(--body); color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form legend { font-weight: 600; font-size: .93rem; margin-bottom: 8px; padding: 0; }
.form .opt { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.form .opt:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); }
.form .opt input { width: auto; accent-color: var(--primary-ink); }
.form .check { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: auto; margin-top: 4px; accent-color: var(--primary-ink); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.alert { grid-column: 1 / -1; border-radius: var(--r); padding: 12px 14px; border: 1px solid; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok-line); }
.alert-error { background: var(--bad-bg); border-color: var(--bad-line); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; padding: 20px; } }

/* pie */
.foot { background: var(--deep); color: var(--on-deep); padding: 56px 0 36px; margin-top: 40px; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.foot .slogan { font: 900 1.6rem/1.05 var(--display); font-stretch: 125%; margin-top: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.foot nav a { text-decoration: none; opacity: .8; font-weight: 600; font-size: .95rem; }
.foot nav a:hover { opacity: 1; }
.foot small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; grid-column: 1 / -1; color: color-mix(in srgb, var(--on-deep) 60%, var(--deep)); font-size: .86rem; border-top: 1px solid color-mix(in srgb, var(--on-deep) 12%, transparent); padding-top: 18px; }
@media (max-width: 700px) { .foot .wrap { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; } }

.foot .legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot .legal-links a { text-decoration: none; }
.foot .legal-links a:hover { text-decoration: underline; }

/* precio en las tarjetas (solo si SINCO lo publica en Superadmin › Web pública) */
.plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.plan .price b { font: 800 2rem/1 var(--display); font-stretch: 75%; color: var(--text); }
.plan .price span { color: var(--muted); font-size: .9rem; }
.form .check a { color: var(--primary-ink); }

/* textos legales */
.legal { padding-top: 48px; }
.legal .wrap { display: grid; gap: 28px; max-width: 860px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--line); }
.legal .legal-tabs a { text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-bottom: 0; padding: 8px 14px; border-radius: var(--r) var(--r) 0 0; position: relative; top: 2px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.legal .legal-tabs a[aria-current] { background: var(--bg); color: var(--text); box-shadow: inset 0 3px 0 var(--primary); }
.legal article { display: grid; gap: 14px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 18px; }
.legal p, .legal li { color: var(--text-2); }
.legal .upd { color: var(--muted); font-size: .92rem; }
.legal a { color: var(--primary-ink); }
.legal .data { margin: 0; padding: 18px 20px; list-style: none; display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--r); }
.legal .tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.legal .tbl th, .legal .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .tbl th { font-weight: 700; background: var(--surface-2); }
@media (max-width: 600px) { .legal .tbl, .legal .tbl tbody, .legal .tbl tr, .legal .tbl td { display: block; } .legal .tbl thead { display: none; } .legal .tbl td { border: 0; padding: 4px 12px; } .legal .tbl tr { border-bottom: 1px solid var(--line); padding: 8px 0; } }

/* lo nuevo entra abriéndose desde su borde de arriba (solapa) */
.js .unfold > * { opacity: 0; transform: perspective(900px) rotateX(-70deg); transform-origin: 50% 0; transition: opacity .5s, transform var(--solapa); }
.js .unfold.in > * { opacity: 1; transform: none; }
.js .unfold.in > :nth-child(2) { transition-delay: .07s; } .js .unfold.in > :nth-child(3) { transition-delay: .14s; }
.js .unfold.in > :nth-child(4) { transition-delay: .21s; } .js .unfold.in > :nth-child(5) { transition-delay: .28s; }
.js .unfold.in > :nth-child(6) { transition-delay: .35s; } .js .unfold.in > :nth-child(7) { transition-delay: .42s; }
.js .unfold.in > :nth-child(8) { transition-delay: .49s; } .js .unfold.in > :nth-child(9) { transition-delay: .56s; }
.js .unfold.in > :nth-child(10) { transition-delay: .63s; } .js .unfold.in > :nth-child(11) { transition-delay: .7s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .unfold > * { opacity: 1; transform: none; transition: none; } .btn { transition: none; } }

/* ===== Landing ampliada (27-10-2026): todos los módulos, área del socio, para quién, paquetes y preguntas ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

/* tira de módulos bajo la portada: cada uno con su filo de color */
.strip { margin-top: -4vw; position: relative; z-index: 2; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.strip a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 18px -12px color-mix(in srgb, var(--text) 40%, transparent); transition: transform .15s, border-color .15s; }
.strip a::before { content: ""; width: 9px; height: 9px; background: var(--c, var(--primary)); clip-path: polygon(0 0, 100% 0, 0 100%); }
.strip a:hover { transform: translateY(-2px); border-color: var(--c, var(--primary)); }
@media (max-width: 640px) { .strip { margin-top: 18px; } .strip .wrap { justify-content: flex-start; } .strip a { font-size: .84rem; padding: 6px 11px; } }

/* por qué: cifras grandes */
.whys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.why::after { content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; background: linear-gradient(225deg, var(--bg) 50%, color-mix(in srgb, var(--primary) 50%, var(--surface-2)) 50%); }
.why .big { font: 800 3.4rem/.9 var(--display); font-stretch: 75%; color: var(--primary-ink); letter-spacing: -.01em; }
.why .big small { font-size: .45em; font-stretch: 100%; }
.why h3 { font-size: 1.35rem; }
.why p { color: var(--muted); font-size: 1rem; }
.why > small { color: var(--muted); font-size: .84rem; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.why.dark { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.why.dark .big { color: var(--primary); }
.why.dark p { color: color-mix(in srgb, var(--on-deep) 75%, var(--deep)); }
.why.dark::after { background: linear-gradient(225deg, var(--bg) 50%, var(--primary) 50%); }
@media (max-width: 960px) { .whys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .whys { grid-template-columns: 1fr; } }

/* la base de gestión: tarjeta ancha con tres columnas */
.pliego.core { grid-column: 1 / -1; gap: 18px; }
.core-head { display: flex; gap: 16px; align-items: center; }
.core-head .tag { display: block; margin-bottom: 6px; }
.core-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.core-cols h4 { font-size: 1.1rem; margin-bottom: 8px; }
@media (max-width: 760px) { .core-cols { grid-template-columns: 1fr; gap: 14px; } }

/* área del socio: maqueta de móvil + lista */
.sec.soft { background: var(--surface-2); clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); padding-top: calc(88px + 3vw); }
.duo { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.feat { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.feat li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.feat li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; background: var(--socios); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.feat li b { display: block; font-weight: 700; }
.feat li span { color: var(--muted); }
.phone { aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 10px; background: var(--deep); box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--text) 60%, transparent); }
.phone-in { height: 100%; border-radius: 26px; background: var(--bg); color: var(--text); padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font: 700 .7rem/1 var(--body); color: var(--muted); }
.phone-top i { width: 18px; height: 18px; background: var(--primary); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 0 50%); }
.phone-hi { font: 800 1.3rem/1 var(--display); font-stretch: 118%; }
.phone-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.phone-days span { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: .66rem; color: var(--muted); }
.phone-days b { font: 800 1rem/1 var(--display); color: var(--text); }
.phone-days .on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.phone-days .on b { color: var(--on-primary); }
.phone-cls { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 6px; padding: 9px 10px; }
.phone-cls b { font-size: .78rem; }
.phone-cls span { grid-column: 1; font-size: .68rem; color: var(--muted); }
.phone-cls em { grid-column: 2; grid-row: 1 / 3; font: 700 .68rem/1 var(--body); font-style: normal; background: var(--primary); color: var(--on-primary); padding: 7px 9px; border-radius: 4px; }
.phone-cls em.line { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.phone-cls em.ok { background: var(--ok-bg); color: var(--ok); }
.phone-bar { margin-top: auto; border-radius: 6px; background: var(--deep); color: var(--on-deep); text-align: center; font: 700 .74rem/1 var(--body); padding: 12px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; gap: 36px; } .duo .phone { max-width: 250px; margin: 0 auto; order: 2; } }

.band-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--on-deep) 16%, transparent); color: var(--accent); font-weight: 600; }

/* para cada persona */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.role { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; }
.role h3 { font-size: 1.25rem; }
.role p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }

.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps.four .step:nth-child(4) { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); }
@media (max-width: 960px) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps.four .step:nth-child(3) { border-left: 1px solid var(--line); border-top: 0; } .steps.four .step:nth-child(4) { border-top: 0; } }
@media (max-width: 560px) { .steps.four { grid-template-columns: 1fr; } .steps.four .step + .step { border-left: 1px solid var(--line); border-top: 0; } }

/* qué lleva cada paquete */
.packs { margin-top: 40px; display: grid; gap: 14px; }
.packs h3 { font-size: 1.4rem; }
.packs-scroll { overflow-x: auto; border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--r); background: var(--surface); }
.packs table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .97rem; }
.packs th, .packs td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.packs thead th { font: 800 1.1rem/1.1 var(--display); font-stretch: 118%; background: var(--soft); }
.packs tbody th { text-align: left; font-weight: 600; }
.packs tbody tr:last-child > * { border-bottom: 0; }
.packs .yes { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ok); }
.packs .yes::before { content: ""; width: 10px; height: 10px; background: currentColor; clip-path: polygon(0 0, 100% 0, 0 100%); }
.packs .add { color: var(--muted); font-size: .9rem; }
.packs-foot { color: var(--muted); font-size: .97rem; max-width: 80ch; }
@media (max-width: 560px) { .packs table { min-width: 0; font-size: .82rem; } .packs th, .packs td { padding: 9px 6px; } .packs thead th { font-size: .78rem; font-stretch: 100%; } .packs .yes { font-size: 0; } .packs .yes::before { width: 12px; height: 12px; } .packs .add { font-size: .78rem; } }

/* preguntas: hojas que se despliegan */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--primary-ink); clip-path: polygon(0 0, 100% 0, 0 100%); transition: transform var(--solapa); }
.faq details[open] summary::after { transform: rotate(-90deg); }
.faq details[open] { border-left: 4px solid var(--primary); }
.faq details p { padding: 0 18px 18px; color: var(--muted); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } }

/* pago anual: se promociona (SARA 27-10) */
.hero .ticks li.gift { color: var(--ambar); font-weight: 700; }
/* manual 2.0: los tres colores de marca en la portada */
.hero .ticks li:nth-child(3n+2)::before { background: var(--ambar); }
.hero .ticks li:nth-child(3n)::before { background: var(--rojo); }
.hero .ticks li.gift::before { background: var(--ambar); }
/* banda de tres (5:3:2) siguiendo la diagonal de la cabecera */
.hero-banda { position: relative; z-index: 1; height: calc(7vw + 8px); margin-top: -7vw; background: linear-gradient(90deg, var(--turquesa) 0 50%, var(--ambar) 50% 80%, var(--rojo) 80%); clip-path: polygon(0 7vw, 100% 0, 100% 8px, 0 calc(7vw + 8px)); pointer-events: none; }
.annual { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-bottom: 32px; padding: 26px 30px; background: var(--deep); color: var(--on-deep); border-radius: var(--r); border-left: 6px solid var(--primary); overflow: hidden; }
.annual::after { content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px; background: linear-gradient(225deg, var(--bg) 50%, var(--primary) 50%); }
.annual-big { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.annual-big b { font: 800 5.2rem/.85 var(--display); font-stretch: 75%; }
.annual-big span { font: 800 1.15rem/1.05 var(--display); font-stretch: 118%; text-transform: uppercase; }
.annual-txt { display: grid; gap: 8px; }
.annual .eyebrow { color: var(--accent); }
.annual h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.annual p { color: color-mix(in srgb, var(--on-deep) 78%, var(--deep)); }
.plan-gift { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-weight: 700; font-size: .9rem; color: var(--primary-ink); background: color-mix(in srgb, var(--primary) 14%, transparent); padding: 6px 10px; border-radius: var(--r); }
.plan-gift::before { content: ""; width: 9px; height: 9px; background: currentColor; clip-path: polygon(0 0, 100% 0, 0 100%); }
@media (max-width: 860px) { .annual { grid-template-columns: auto 1fr; } .annual .btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 520px) { .annual { grid-template-columns: 1fr; gap: 16px; padding: 22px; } .annual-big b { font-size: 4rem; } }
