/* ScalaPro — sitio público (scalapro.cl). Diseño: Martín Ramírez. Marca: Negro Órbita #0A0A14,
   Lima Neón #C8FF2E (CTA), Violeta #7C3AFF, Magenta #FF2D87, Cian #22D3EE, Blanco Nube #F7F7FB.
   Títulos Space Grotesk 700, texto Inter 400/600. Mobile first; sin dependencias. */

@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-700-normal.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --bg: #0A0A14; --surface: #14142A; --surface-2: #12122A; --surface-3: #191934; --surface-g: #1C1438;
  --text: #F7F7FB; --text-2: #C9C9D8; --muted: #A3A3B8; --muted-2: #8A8AA3;
  --lime: #C8FF2E; --lime-hover: #B5EB1A; --lime-soft: #E4FF8A;
  --violet: #7C3AFF; --violet-text: #A98BFF; --magenta: #FF2D87; --magenta-text: #FF5FA2; --cyan: #22D3EE;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.1); --line-input: rgba(255,255,255,.2); --line-ghost: rgba(255,255,255,.25);
  --error: #FF8FBF;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 24px;
  --header-h: 68px;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.25 var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.site { min-height: 100vh; display: flex; flex-direction: column; }
main { display: block; outline: none; flex: 1 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: var(--lime); }
a:hover { color: var(--lime-soft); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
::selection { background: var(--lime); color: var(--bg); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.t-lime { color: var(--lime); } .t-violet { color: var(--violet-text); } .t-magenta { color: var(--magenta-text); } .t-cyan { color: var(--cyan); }
.ic { flex: none; display: block; }
.nowrap { white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--lime); color: var(--bg); font-weight: 700; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--bg); }

.kicker { font: 700 13px/1.3 var(--font-head); letter-spacing: 3px; text-transform: uppercase; color: var(--lime); margin: 0 0 14px; }
.section { padding: 56px 0; }
.section h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 28px; }

/* ---------------------------------------------------------------- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; padding: 17px 25px; font: 700 17px/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; -webkit-tap-highlight-color: transparent; }
.btn-lime { background: var(--lime); color: var(--bg); font-weight: 800; }
.btn-lime:hover, .btn-lime:focus-visible { background: var(--lime-hover); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-ghost); font-weight: 600; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--text); }
.btn-sm { font-size: 15px; padding: 11px 17px; gap: 8px; }
.btn-xl { font-size: 18px; padding: 17px; }
.btn-block { display: flex; width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: progress; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-ghost); background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }

/* ---------------------------------------------------------------- cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,10,20,.86); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); padding-top: 12px; padding-bottom: 12px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand .logo-mark { width: 34px; height: 34px; flex: none; }
.wordmark { font: 700 26px/1 var(--font-head); letter-spacing: -1px; color: var(--text); white-space: nowrap; }
.wordmark b { color: var(--lime); font-weight: 700; }
.nav { display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-link { color: var(--text); text-decoration: none; font-size: 15px; padding: 12px 14px; border-radius: 10px; }
.nav-link:hover { background: rgba(255,255,255,.08); color: var(--text); }
.nav-mobile { display: flex; align-items: center; gap: 8px; }
.wa-pill { padding: 10px 14px; gap: 6px; font-size: 14px; }
.menu { position: static; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .when-open { display: none; }
.menu[open] .when-open { display: block; }
.menu[open] .when-closed { display: none; }
.menu-panel { position: absolute; top: calc(100% - 4px); left: var(--gutter); right: var(--gutter); display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.menu-panel a:not(.btn) { color: var(--text); text-decoration: none; font-size: 16px; padding: 13px 14px; border-radius: 12px; }
.menu-panel a:not(.btn):hover { background: rgba(255,255,255,.07); color: var(--text); }
.menu-panel .btn { margin-top: 8px; font-size: 16px; padding: 14px 18px; }

@media (min-width: 860px) {
  :root { --header-h: 94px; }
  html { scroll-padding-top: 16px; }
  .site-header { position: relative; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
  .header-in { padding-top: 24px; padding-bottom: 24px; min-height: 0; }
  .nav { display: flex; }
  .nav-mobile { display: none; }
}

/* ---------------------------------------------------------------- héroe */
.hero { padding: 36px 0 64px; }
.hero-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero .kicker { margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); line-height: .98; letter-spacing: -3px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--text-2); margin-top: 24px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { display: flex; flex-wrap: wrap; gap: 20px 28px; margin: 36px 0 0; }
.stats dt { font: 700 30px/1.25 var(--font-head); }
.stats dd { margin: 0; font-size: 14px; color: var(--muted); }

.panel { flex: 1 1 478px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--line-2); }
.panel-head { display: flex; align-items: center; gap: 14px; }
.panel-head .scali { flex: none; width: 56px; height: 56px; }
.panel-title { font: 700 20px/1.25 var(--font-head); }
.panel-sub { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200,255,46,.55); }
.panel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; min-width: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px; }
.kpi-label { font-size: 13px; line-height: 1.2; color: var(--muted); }
.kpi-value { font: 700 22px/1.28 var(--font-head); }
.kpi-sub { font-size: 12px; line-height: 1.2; color: var(--muted); }
.kpi-lime { border-color: rgba(200,255,46,.333); } .kpi-lime .kpi-value { color: var(--lime); }
.kpi-magenta { border-color: rgba(255,45,135,.333); } .kpi-magenta .kpi-value { color: var(--magenta-text); }
.kpi-cyan { border-color: rgba(34,211,238,.333); } .kpi-cyan .kpi-value { color: var(--cyan); }
.kpi-violet { border-color: rgba(169,139,255,.333); } .kpi-violet .kpi-value { color: var(--violet-text); }
.panel-note { font-size: 12px; color: var(--muted-2); }
@media (min-width: 480px) {
  .panel { padding: 28px; border-radius: 28px; }
  .panel-head .scali { width: 64px; height: 64px; }
  .panel-grid { gap: 12px; }
  .kpi { padding: 16px; }
  .kpi-value { font-size: 28px; }
}
@media (min-width: 860px) { .hero { padding: 48px 0 72px; } }

/* ---------------------------------------------------------------- dolores (checklist) */
.pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.pain { position: relative; display: flex; align-items: flex-start; gap: 12px; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 16px; line-height: 1.22; color: var(--text); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; -webkit-tap-highlight-color: transparent; }
.pain:hover { border-color: rgba(255,255,255,.2); }
.pain input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pain-box { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: -1px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.32); color: transparent; transition: background-color .15s ease, border-color .15s ease; }
.pain input:checked + .pain-box { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.pain input:focus-visible + .pain-box { outline: 2px solid var(--lime); outline-offset: 2px; }
.pain:has(input:checked), .pain.is-checked { border-color: rgba(200,255,46,.55); background: var(--surface-3); }
.pains-cta { font-size: 18px; margin-top: 24px; line-height: 1.3; }
.pains-cta a { font-weight: 700; text-underline-offset: 3px; }
.pains-count { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--bg); background: var(--lime); border-radius: 999px; padding: 2px 10px; }
.pains-count:empty { display: none; }

/* ---------------------------------------------------------------- equipo IA */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.team-card { background: var(--surface); border-top: 3px solid var(--accent, var(--lime)); border-radius: 16px; padding: 22px; }
.team-card h3 { font-size: 21px; line-height: 1.25; margin: 0 0 8px; }
.team-card p { color: var(--text-2); line-height: 1.5; }

/* ---------------------------------------------------------------- planes */
/* Moneda de los precios: <html data-currency="clp|usd"> muestra una sola versión de cada monto
   (.cur-clp: UF + pesos + IVA · .cur-usd: dólares, sin IVA). Sin atributo: Chile. */
html:not([data-currency="usd"]) .cur-usd, html[data-currency="usd"] .cur-clp { display: none !important; }
.cur-bar { display: flex; justify-content: flex-end; margin: -14px 0 14px; }
.cur-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.cur-opt { font: 600 12px/1 var(--font-body); letter-spacing: .06em; padding: 7px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.cur-opt:hover { color: var(--text); }
.cur-opt[aria-current="true"] { background: var(--lime); color: var(--bg); }
.cur-opt[aria-current="true"]:hover { color: var(--bg); }
.price .per { white-space: nowrap; }
@media (max-width: 420px) { .price.cur-usd { font-size: 44px; letter-spacing: -1.5px; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.plan { display: flex; flex-direction: column; gap: 14px; border-radius: 24px; padding: 30px; min-width: 0; }
.plan-depto { background: var(--surface); border: 1px solid var(--violet); }
/* Degradado violeta → magenta un poco más profundo al final: el texto blanco mantiene contraste AA. */
.plan-360 { background: linear-gradient(150deg, #7C3AFF 0%, #B42ED2 52%, #EC1F80 100%); color: #fff; }
.badge { align-self: flex-start; font: 700 12px/1.3 var(--font-head); letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.badge-violet { background: var(--violet); color: #fff; }
.badge-lime { background: var(--lime); color: var(--bg); }
.plan h3 { font-size: 28px; line-height: 1.2; }
.price { font: 700 54px/1 var(--font-head); letter-spacing: -2px; }
.price .per { font-size: 18px; letter-spacing: 0; color: var(--muted); }
.plan-360 .price .per { color: #fff; }
.plan-clp { font-size: 14px; color: var(--muted); margin-top: -6px; }
.plan-360 .plan-clp { color: #fff; }
.plan-terms { color: var(--text-2); }
.plan-360 .plan-terms, .plan-360 .plan-list { color: #fff; }
.plan-list { margin: 0; padding-left: 20px; color: var(--text-2); line-height: 1.8; }
.plan-cta { margin-top: auto; padding: 15px; font-size: 16px; }
.plan-depto .plan-cta { font-weight: 700; }
.strip { border-radius: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.strip p { font-size: 16px; }
.strip-info { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); padding: 18px 22px; }
.strip-note { font-size: 14px !important; color: var(--muted); }
.strip-founder { margin-top: 12px; border: 1px dashed var(--lime); padding: 16px 22px; justify-content: space-between; }
.strip-founder b { color: var(--lime); }
.strip-founder > p:first-child { flex: 1 1 420px; }
.founder-left { display: inline-flex; align-items: center; gap: 8px; font-size: 13px !important; font-weight: 600; color: var(--lime); border: 1px solid rgba(200,255,46,.4); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* ---------------------------------------------------------------- pasos y garantía */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.step-n { display: block; font: 700 48px/1.25 var(--font-head); }
.step h3 { font-size: 21px; line-height: 1.25; margin: 8px 0; }
.step p { color: var(--text-2); line-height: 1.5; }
.guarantee { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: var(--surface-g); border: 1px solid rgba(255,45,135,.533); border-radius: 20px; padding: 24px; }
.guarantee-ic { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--lime); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.guarantee > div { flex: 1 1 300px; }
.guarantee h3 { font-size: 22px; line-height: 1.25; margin: 0 0 4px; }

/* ---------------------------------------------------------------- preguntas */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 700 18px/1.35 var(--font-head); border-radius: 8px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--muted); transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--lime); }
.faq-item p { margin-top: 10px; color: var(--text-2); line-height: 1.5; }
.faq-item:hover { border-color: rgba(255,255,255,.16); }

/* ---------------------------------------------------------------- agenda (formulario) */
.section-booking { padding-bottom: 80px; }
.booking { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "form" "points"; gap: 36px; background: var(--surface-2); border: 1px solid rgba(200,255,46,.4); border-radius: 28px; padding: clamp(24px, 4vw, 48px); }
.booking-copy { grid-area: copy; min-width: 0; }
.booking-form { grid-area: form; min-width: 0; }
.booking-points { grid-area: points; list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.booking-points-title { font: 700 13px/1.3 var(--font-head); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.booking-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.booking-points .ic { color: var(--lime); margin-top: 2px; }
@media (min-width: 900px) {
  .booking { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "copy form" "points form"; column-gap: 40px; row-gap: 32px; }
  .booking-points { align-self: end; }
}
.section .booking h2 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1; letter-spacing: -2px; margin: 0; }
.booking-lede { font-size: 18px; line-height: 1.55; color: var(--text-2); margin-top: 18px; }
.person { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.person-avatar { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--lime); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font: 700 20px var(--font-head); }
.person-name { font: 700 18px/1.3 var(--font-head); }
.person-role { font-size: 14px; font-weight: 600; color: var(--violet-text); }
.booking-link { display: inline-block; margin-top: 24px; font-weight: 700; font-size: 16px; text-underline-offset: 3px; }

.lead-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .chips-field legend { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-input); border-radius: 12px; padding: 14px 16px; font-size: 16px; line-height: 1.3; font-family: var(--font-body); }
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A3A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lime); outline-offset: 2px; border-color: transparent; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--magenta-text); }
.field-error { font-size: 13px; color: var(--error); }
.field-error[hidden] { display: none; }
.field-hint { font-size: 13px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; gap: 12px; } }
.chips-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips-field legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-ghost); font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--text); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; -webkit-tap-highlight-color: transparent; }
.chip span:hover { background: rgba(255,255,255,.06); }
.chip input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--bg); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.lead-form [data-submit] { margin-top: 8px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-legal { font-size: 12px; color: var(--muted-2); text-align: center; margin-top: -8px; }
.form-legal a { color: var(--muted); }
.form-legal a:hover { color: var(--text); }
.form-status:empty { display: none; }
.form-alert { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; background: rgba(255,45,135,.12); border: 1px solid rgba(255,45,135,.5); border-radius: 12px; padding: 12px 14px; }
.form-alert .ic { color: var(--magenta-text); margin-top: 1px; }
.form-ok { display: flex; flex-direction: column; gap: 10px; background: rgba(200,255,46,.08); border: 1px solid rgba(200,255,46,.45); border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.5; }
.form-ok b { color: var(--lime); }
.form-ok .btn { align-self: flex-start; font-size: 15px; padding: 12px 18px; }
.pains-summary { font-size: 14px; line-height: 1.5; color: var(--text-2); border: 1px dashed rgba(200,255,46,.4); border-radius: 12px; padding: 12px 14px; }
.pains-summary b { color: var(--text); }
.pains-summary a { font-weight: 600; margin-left: 4px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- pie */
.site-footer { border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 16px; }
.footer-brand .wordmark { font-size: 20px; letter-spacing: -.5px; }
.footer-tag { font-size: 14px; color: var(--muted); }
.footer-contact { font-size: 14px; color: var(--muted); }
.footer-contact a { color: var(--muted); text-decoration: none; }
.footer-contact a:hover { color: var(--lime); text-decoration: underline; }
.footer-sub { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-bottom: 28px; font-size: 13px; color: var(--muted-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--lime); text-decoration: underline; }

/* ---------------------------------------------------------------- páginas interiores */
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
body.page-plain, body.page-rdv, body.page-calc { background: radial-gradient(1000px 520px at 88% -160px, rgba(124,58,255,.18), transparent 70%) no-repeat, var(--bg); }
.card-big { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 28px; padding: clamp(24px, 5vw, 48px); }
.card-big h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -1.5px; }
.big-text { font-size: 18px; line-height: 1.55; color: var(--text-2); margin-top: 16px; max-width: 620px; }
.card-big > .btn { margin-top: 26px; }
.muted-line { margin-top: 22px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.msg-preview { margin-top: 22px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; }
.msg-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 8px; }
.msg-text { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.booking-title { font-size: clamp(36px, 4.5vw, 56px); line-height: 1; letter-spacing: -2px; }

/* 404 y avisos */
.page-404 { padding: 40px 0 80px; }
.nf { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; }
.nf-art { flex: 0 0 auto; margin: 0 auto; }
.nf-art .scali-full { display: block; width: 170px; height: auto; }
.nf-copy { flex: 1 1 420px; min-width: 0; }
.nf-copy h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -2px; }
.nf-text { font-size: 18px; line-height: 1.55; color: var(--text-2); margin-top: 18px; max-width: 560px; }
.nf-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nf-cta .btn { font-size: 16px; padding: 15px 22px; }
.nf-links { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.nf-links a { font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 720px) { .nf-art .scali-full { width: 220px; } .nf-art { margin: 0; } }

/* agenda en línea (/rdv) */
.rdv { padding-top: 32px; }
.rdv-head { max-width: 760px; }
.rdv-head h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -2px; }
.rdv-head .lede { max-width: 640px; font-size: 18px; }
.rdv-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--text-2); }
.rdv-points li { display: inline-flex; align-items: center; gap: 8px; }
.rdv-points .ic { color: var(--lime); }
.rdv-alert { margin-top: 28px; }
.rdv-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 32px; align-items: start; }
.rdv-slots, .rdv-form { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 24px; padding: 22px; min-width: 0; margin: 0; }
.rdv-form { display: flex; flex-direction: column; gap: 16px; }
.rdv-step, .section .rdv-step { display: flex; align-items: center; gap: 10px; font: 700 20px/1.2 var(--font-head); letter-spacing: 0; padding: 0; margin: 0 0 4px; }
.rdv-step span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--bg); font-size: 15px; }
.rdv-slots .rdv-step { margin-bottom: 8px; float: left; width: 100%; }
.rdv-slots .rdv-step + * { clear: both; }
.tz-note { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.tz-note b { color: var(--text-2); font-weight: 600; }
.rdv-slots .field-error { margin: -4px 0 12px; }
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 12px; margin: 0 -2px 6px; scrollbar-width: thin; }
.day-tab { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 62px; padding: 9px 8px; border-radius: 14px; border: 1px solid var(--line-ghost); background: transparent; color: var(--text); cursor: pointer; font-family: var(--font-body); }
.day-tab:hover { background: rgba(255,255,255,.06); }
.day-tab .dw { font-size: 12px; text-transform: capitalize; color: var(--muted); }
.day-tab .dn { font: 700 21px/1.15 var(--font-head); }
.day-tab .dm { font-size: 12px; text-transform: capitalize; color: var(--muted); }
.day-tab[aria-selected="true"] { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.day-tab[aria-selected="true"] .dw, .day-tab[aria-selected="true"] .dm { color: var(--bg); }
.day-tab.has-pick:not([aria-selected="true"]) { border-color: rgba(200,255,46,.7); }
.day + .day { margin-top: 20px; }
.day-title { font: 700 17px/1.3 var(--font-head); margin-bottom: 10px; }
.day-list.is-tabs .day { display: none; margin-top: 0; }
.day-list.is-tabs .day.is-active { display: block; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.time { position: relative; display: flex; }
.time input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.time span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-ghost); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; -webkit-tap-highlight-color: transparent; }
.time b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.time-local { font-style: normal; font-size: 12px; color: var(--muted); }
.time span:hover { background: rgba(255,255,255,.06); }
.time input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.time input:checked + span .time-local { color: rgba(10,10,20,.75); }
.time input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.picked { font-size: 15px; line-height: 1.45; color: var(--muted); min-height: 1.45em; }
.picked b { color: var(--lime); font-weight: 600; }
.chips-sm .chip span { min-height: 40px; padding: 9px 13px; font-size: 14px; }
.chips-field legend .opt { font-weight: 400; }
.section .rdv-empty h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -1px; margin: 0; }
.rdv-empty { margin-top: 32px; }
@media (min-width: 960px) {
  .rdv-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; }
  .rdv-slots, .rdv-form { padding: 30px; }
  .rdv-slots { position: sticky; top: 24px; }
}

/* confirmación */
.page-confirm { padding-top: 36px; }
.confirm-ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; background: var(--lime); color: var(--bg); margin-bottom: 20px; }
.confirm-dl { margin: 26px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.confirm-dl > div { display: grid; grid-template-columns: 1fr; gap: 4px; background: var(--bg); padding: 14px 18px; }
.confirm-dl dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.confirm-dl dt .ic { color: var(--lime); }
.confirm-dl dd { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.confirm-dl dd a { font-weight: 600; }
.dd-sub { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.confirm-actions .btn { font-size: 16px; padding: 14px 20px; }
.prep-title, .section .prep-title { font-size: 22px; line-height: 1.25; letter-spacing: -.3px; margin: 36px 0 0; }
.prep { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.prep li { display: flex; gap: 14px; align-items: flex-start; }
.prep-n { flex: none; width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font: 700 15px var(--font-head); color: var(--lime); border: 1px solid rgba(200,255,46,.45); }
.prep b { font-weight: 600; font-size: 16px; line-height: 1.4; }
.prep p { font-size: 15px; line-height: 1.5; color: var(--text-2); margin-top: 2px; }
@media (min-width: 640px) { .confirm-dl > div { grid-template-columns: 150px 1fr; align-items: baseline; } }

/* calculadora */
.calc { padding-top: 32px; }
.calc-head { max-width: 780px; }
.calc-head h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -2px; }
.calc-head .lede { max-width: 680px; font-size: 18px; }
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 32px; align-items: start; }
.calc-form, .calc-result, .calc-capture { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 24px; padding: 22px; min-width: 0; }
.calc-form { display: flex; flex-direction: column; gap: 16px; }
.calc-example { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.calc-example .ic { color: var(--lime); }
.affix { display: flex; align-items: stretch; }
.affix > span { display: inline-flex; align-items: center; padding: 0 12px 0 14px; border: 1px solid var(--line-input); border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface); color: var(--muted); font-weight: 600; }
.affix input { border-radius: 0 12px 12px 0 !important; }
.calc-sub, .section .calc-sub { font-size: 18px; line-height: 1.3; letter-spacing: 0; margin: 8px 0 0; }
.block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
@media (min-width: 520px) { .block { grid-template-columns: minmax(0, 1fr) auto; } }
.block-text label { font-weight: 600; font-size: 15px; line-height: 1.35; }
.block-text .field-hint { margin-top: 4px; line-height: 1.45; }
.block-area { display: inline-block; color: var(--violet-text); font-weight: 600; }
.block-input { display: flex; align-items: center; gap: 8px; }
.block-input input { width: 92px; background: var(--bg); color: var(--text); border: 1px solid var(--line-input); border-radius: 12px; padding: 12px 12px; font-size: 17px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.block-input input:focus { outline: 2px solid var(--lime); outline-offset: 2px; border-color: transparent; }
.block-input span { font-size: 13px; color: var(--muted); width: 42px; }
.calc-submit { align-self: flex-start; }
.calc-side { display: grid; gap: 18px; min-width: 0; }
.calc-result { border-color: rgba(200,255,46,.4); display: flex; flex-direction: column; gap: 14px; }
.calc-result .kicker { margin: 0; }
.res-big { font: 700 64px/1 var(--font-head); letter-spacing: -2.5px; color: var(--lime); }
.res-unit { font-size: 22px; letter-spacing: 0; color: var(--text); }
.res-sub { font-size: 16px; line-height: 1.5; color: var(--text-2); }
.res-sub b { color: var(--text); }
.res-money { background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; }
.res-clp { font: 700 32px/1.1 var(--font-head); letter-spacing: -1px; }
.res-clp-sub { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.res-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.res-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.bar-label { color: var(--text-2); }
.bar-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7C3AFF, #FF2D87 60%, #C8FF2E); transition: width .25s ease; }
.res-plan { border-top: 1px solid var(--line); padding-top: 14px; }
.res-plan-k { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.res-plan-t { font: 700 22px/1.25 var(--font-head); margin-top: 4px; }
.res-plan-p { font-size: 15px; color: var(--lime); font-weight: 600; margin-top: 2px; }
.res-plan-n { font-size: 14px; line-height: 1.5; color: var(--text-2); margin-top: 6px; }
.calc-result .btn { font-size: 16px; padding: 15px 20px; }
.res-note { font-size: 12.5px; line-height: 1.5; color: var(--muted-2); }
.section .calc-capture h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.5px; margin: 0; }
.cap-text { font-size: 15px; line-height: 1.5; color: var(--text-2); margin: 8px 0 16px; }
.calc-capture .form-ok { margin-bottom: 16px; }
.calc-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--lime); color: var(--bg); text-decoration: none; font-weight: 600; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.calc-bar:hover { color: var(--bg); }
.calc-bar[hidden] { display: none; }
@media (min-width: 640px) { .calc-form, .calc-result, .calc-capture { padding: 28px; } }
@media (min-width: 980px) {
  .calc-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; }
  .calc-bar { display: none !important; }
}

/* legales */
.legal { padding-top: 40px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -2px; }
.legal-meta { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.legal-meta a { color: var(--muted); }
.legal-intro { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.legal-toc { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.legal-toc p { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2 240px; column-gap: 28px; font-size: 15px; line-height: 1.8; }
.legal-toc a { color: var(--text-2); text-decoration: none; }
.legal-toc a:hover { color: var(--lime); text-decoration: underline; }
.legal-sec { margin-top: 36px; scroll-margin-top: calc(var(--header-h) + 12px); }
.section .legal-sec h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.5px; margin: 0 0 12px; }
.legal-sec p, .legal-sec li { font-size: 16px; line-height: 1.65; color: var(--text-2); }
.legal-sec p + p, .legal-sec ul + p, .legal-sec p + ul { margin-top: 12px; }
.legal-sec ul { margin: 0; padding-left: 22px; }
.legal-sec li + li { margin-top: 6px; }
.legal-sec b { color: var(--text); font-weight: 600; }
.legal-sec code { font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); }

/* ---------------------------------------------------------------- movimiento */
@media (prefers-reduced-motion: no-preference) {
  .live-dot, .pulse { animation: sp-pulse 2.4s ease-out infinite; }
  @keyframes sp-pulse { 0% { box-shadow: 0 0 0 0 rgba(200,255,46,.55); } 70% { box-shadow: 0 0 0 7px rgba(200,255,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,255,46,0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .wordmark { font-size: 23px; }
  .btn { padding-left: 20px; padding-right: 20px; }
  .btn-xl { font-size: 17px; padding: 16px 14px; gap: 8px; }
  .booking { padding: 20px; }
}
