/* OnlyIA — estética keynote: negro puro, blanco nieve, tipografía grande.
   El único color es el espectro, y solo marca lo que hace la IA. */
:root {
  --black: #000;
  --white: #fff;
  --snow: #f5f5f7;
  --graphite: #1d1d1f;
  --mute: #86868b;
  --line: rgba(255,255,255,.18);
  --spectrum: linear-gradient(100deg, #3d7bff 0%, #9b5cff 35%, #ff5c8a 68%, #ffb03a 100%);
  --font: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --r-btn: 999px;
  --r-box: 28px;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 8rem;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; color: var(--white); background: var(--black); -webkit-font-smoothing: antialiased; }
body.intro-open { overflow: hidden; }
h1, h2, h3 { line-height: 1.02; margin: 0 0 var(--s2); letter-spacing: -.04em; font-weight: 700; }
h1 { font-size: clamp(3rem, 8.4vw, 7.6rem); max-width: 14ch; }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 18ch; }
h2.display { font-size: clamp(2.6rem, 6.6vw, 6rem); max-width: 16ch; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.025em; }
p { max-width: 60ch; }
a { color: inherit; }
:focus-visible { outline: 2px solid #3d7bff; outline-offset: 3px; border-radius: 6px; }
.lede { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--mute); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.5em; border-radius: var(--r-btn); border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: 1.02rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: #e8e8ed; }
.btn-line { background: transparent; color: var(--white); border-color: var(--line); }
.btn-line:hover { border-color: var(--white); }
.btn-dark { background: var(--graphite); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-line-dark { background: transparent; color: var(--graphite); border-color: rgba(0,0,0,.25); }
.btn-line-dark:hover { border-color: var(--graphite); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .93rem; }

/* Intro: negro, una frase por corte */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--black); color: var(--white); transition: opacity .8s; overflow: hidden; }
.intro.is-done { opacity: 0; pointer-events: none; }
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.intro-line { position: relative; z-index: 2; margin: 0; padding: 0 6vw; text-align: center; font-weight: 700; letter-spacing: -.045em; line-height: 1.02; font-size: clamp(2.4rem, 7vw, 6.8rem); max-width: 18ch; }
.intro.has-video .intro-line { align-self: end; margin-bottom: 14vh; font-size: clamp(1.8rem, 4.6vw, 4.2rem); text-shadow: 0 2px 24px rgba(0,0,0,.7); }
.intro-line.in { animation: cut-in 1.35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cut-in { 0% { opacity: 0; transform: translateY(.18em); } 14%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.intro-line.is-final { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(3.4rem, 12vw, 10rem); }
.intro-line.is-final.in { animation: final-in 1.2s ease both; }
@keyframes final-in { from { opacity: 0; letter-spacing: .02em; } to { opacity: 1; letter-spacing: -.045em; } }
.intro-ticks { position: absolute; z-index: 2; bottom: 6vh; display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.intro-ticks li { width: 22px; height: 2px; background: rgba(255,255,255,.22); transition: background .3s; }
.intro-ticks li.on { background: var(--white); }
.intro-choose { position: absolute; z-index: 3; bottom: 22vh; display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; }
.intro-skip { position: absolute; z-index: 3; top: var(--s3); right: var(--s3); background: none; border: 0; color: var(--white); opacity: .6; font: inherit; cursor: pointer; min-height: 44px; }
.intro-skip:hover { opacity: 1; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s3); padding: .7rem clamp(1rem, 4vw, 3rem); background: rgba(0,0,0,.72); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--spectrum); }
.nav { display: flex; gap: var(--s3); margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; color: #d2d2d7; }
.nav a:hover { color: var(--white); }
#lang { background: transparent; color: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .4rem .6rem; font: inherit; font-size: .9rem; }
#lang option { color: var(--graphite); }

/* Hero */
.hero { display: grid; justify-items: center; text-align: center; padding: var(--s6) clamp(1rem, 5vw, 5rem) var(--s5); }
.hero h1, .hero p { margin-inline: auto; }
.hero-kicker { color: var(--mute); font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; margin-bottom: var(--s2); }
.hero-sub { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: #d2d2d7; margin-bottom: var(--s4); max-width: 46ch; }
.hero-ctas { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: inherit; }
.hero .hero-ctas { justify-content: center; }
.hero-trust { margin-top: var(--s3); color: var(--mute); font-size: .95rem; }

/* Asistente */
.chat { width: min(100%, 720px); margin-top: var(--s5); text-align: left; background: #0c0c0e; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-box); padding: var(--s3) var(--s3) var(--s3); }
.wave { display: block; width: 100%; height: 72px; margin-bottom: var(--s2); }
.chat-title { margin: 0 0 var(--s2); font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.chat-title small { font-weight: 400; color: var(--mute); }
.chat-log { list-style: none; margin: 0 0 var(--s2); padding: 0; max-height: 300px; overflow-y: auto; display: grid; gap: .6rem; }
.chat-log li { padding: .7rem 1rem; border-radius: 18px; max-width: 88%; }
.chat-log .ai { background: #1d1d1f; border-bottom-left-radius: 6px; }
.chat-log .me { background: var(--white); color: var(--black); justify-self: end; border-bottom-right-radius: 6px; }
.chat-log .typing { color: var(--mute); }
.chat-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: var(--s2); }
.chat-actions:empty { display: none; }
.chat-form, .phone-form, .scan-form { display: flex; gap: .5rem; }
.chat-form input, .phone-form input, .lead-form input[type=email] { flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: #000; color: var(--white); font: inherit; }
.chat-mic { min-width: 48px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: var(--white); font-size: 1.2rem; cursor: pointer; }
.chat-mic.on { background: var(--white); color: var(--black); }

/* Bandas */
.band { padding: var(--s6) clamp(1rem, 5vw, 5rem); }
.band-snow { background: var(--snow); color: var(--graphite); }
.band-white { background: var(--white); color: var(--graphite); }
.band-black { background: var(--black); }
.band-snow .lede, .band-white .lede { color: #6e6e73; }
.wrap { max-width: 1180px; margin: 0 auto; }
.narrow { max-width: 780px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; margin-top: var(--s6); }

/* Efectos de IA (uno por servicio) */
.fx { margin-top: var(--s5); }
.fx-recep { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s4); align-items: center; background: var(--black); color: var(--white); border-radius: var(--r-box); padding: var(--s4); min-height: 300px; }
.fx-recep-wave { width: 100%; height: 200px; }
.fx-recep-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.fx-recep-lines li { display: grid; gap: .15rem; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.fx-recep-lines li.on { opacity: 1; transform: none; }
.fx-recep-lines q { quotes: none; font-size: 1.05rem; color: var(--mute); }
.fx-recep-lines b { font-weight: 600; font-size: 1.15rem; }
.fx-recep-lines small { color: var(--mute); font-variant-numeric: tabular-nums; }

.fx-vis { max-width: 880px; background: #0c0c0e; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-box); padding: var(--s4); margin-bottom: var(--s4); }
.fx-vis-q { margin: 0 0 var(--s3) auto; width: fit-content; max-width: 80%; background: var(--white); color: var(--black); padding: .7rem 1.1rem; border-radius: 18px 18px 6px 18px; font-size: 1.15rem; min-height: 1.5em; }
.fx-vis-a { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.4; min-height: 4.2em; color: #d2d2d7; }
.fx-vis-a strong { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.fx-vis-a .caret { display: inline-block; width: .5em; height: 1em; vertical-align: -.12em; background: var(--white); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.fx-scan { position: relative; aspect-ratio: 4 / 3; background: var(--white); border-radius: var(--r-box); border: 1px solid rgba(0,0,0,.08); overflow: hidden; margin-top: 0; }
.fx-scan-page { position: absolute; inset: 9% 10%; display: grid; grid-template-rows: 14% 30% 10% 10% 10% 10%; gap: 4%; }
.fx-scan-page i { display: block; border-radius: 10px; background: #e8e8ed; position: relative; }
.fx-scan-page i:nth-child(2) { background: #d2d2d7; }
.fx-scan-page i:nth-child(n+3) { width: 80%; }
.fx-scan-page i::after { content: ""; position: absolute; right: -12%; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #e8e8ed; transition: background .3s; }
.fx-scan-page i.ok::after { background: #30d158; }
.fx-scan-page i.ko::after { background: #ff453a; }
.fx-scan-beam { position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(180deg, transparent, rgba(61,123,255,.16) 70%, rgba(155,92,255,.55) 100%); border-bottom: 2px solid #9b5cff; animation: beam 3.2s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes beam { 0% { transform: translateY(-100%); } 100% { transform: translateY(460%); } }

/* Demo recepcionista */
.sectors { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--s3) 0 var(--s4); }
.sectors button { min-height: 44px; padding: 0 1.1rem; border-radius: var(--r-btn); border: 1.5px solid rgba(0,0,0,.2); background: transparent; color: var(--graphite); font: inherit; font-weight: 500; cursor: pointer; }
.sectors button[aria-checked=true] { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.phone { background: var(--black); color: var(--white); border-radius: 44px; padding: var(--s4) var(--s3) var(--s3); min-height: 540px; display: flex; flex-direction: column; border: 10px solid #2c2c2e; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); }
.phone-name { text-align: center; font-weight: 600; font-size: 1.15rem; margin: 0 auto var(--s2); }
.phone-log { list-style: none; padding: 0; margin: 0 0 var(--s2); flex: 1; overflow-y: auto; max-height: 340px; display: grid; gap: .5rem; align-content: start; }
.phone-log li { padding: .6rem .9rem; border-radius: 16px; max-width: 90%; }
.phone-log .ai { background: #1d1d1f; }
.phone-log .me { background: var(--white); color: var(--black); justify-self: end; }
.phone-log .booking { background: #30d158; color: #00210c; font-weight: 600; max-width: 100%; }
.phone-note { font-size: .9rem; color: var(--mute); }
.phone-buttons { display: flex; justify-content: center; gap: var(--s3); margin-top: var(--s2); }
.phone-buttons button { width: 72px; height: 72px; border-radius: 50%; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.phone-buttons .call { background: #30d158; color: #00210c; }
.phone-buttons .hang { background: #ff453a; color: #fff; }

.calc { margin-top: var(--s6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s3); align-items: end; background: var(--white); border-radius: var(--r-box); padding: var(--s4); }
.calc h3 { grid-column: 1 / -1; }
.calc label { display: grid; gap: .3rem; font-weight: 500; }
.calc input { min-height: 50px; border-radius: 12px; border: 1.5px solid rgba(0,0,0,.2); padding: 0 1rem; font: inherit; font-size: 1.2rem; }
.calc-out { grid-column: 1 / -1; font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; }
.calc .btn { grid-column: 1 / -1; justify-self: start; }

/* Escáner */
.scan-form { margin: var(--s4) 0 0; }
.scan-form input { flex: 1; min-width: 0; min-height: 58px; padding: 0 1.1rem; border-radius: 14px; border: 1.5px solid rgba(0,0,0,.2); background: var(--white); color: var(--graphite); font: inherit; font-size: 1.1rem; }
.scan-form .btn { min-height: 58px; }
.scan-result { margin-top: var(--s5); }
.gauge { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin: var(--s3) 0; }
.gauge-n { font-size: clamp(4.5rem, 13vw, 9rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gauge p { flex-basis: 100%; margin: 0; color: #6e6e73; }
.scan-top { padding-left: 1.2rem; display: grid; gap: .8rem; }
.scan-top b { display: block; }
.scan-ctas { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); }

/* Precios */
.plans { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: var(--s2); margin-top: var(--s4); align-items: stretch; }
.plan { background: #0c0c0e; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-box); padding: var(--s4) var(--s3); display: flex; flex-direction: column; gap: .3rem; }
.plan p { color: #d2d2d7; }
.plan ul { padding-left: 1.1rem; margin: var(--s2) 0 var(--s3); flex: 1; color: #d2d2d7; }
.plan li { margin: .35rem 0; }
.plan .btn { width: 100%; }
.plan-star { background: var(--white); color: var(--graphite); border-color: var(--white); }
.plan-star p, .plan-star ul { color: #424245; }
.plan-star .btn-primary { background: var(--graphite); color: var(--white); }
.plan-flag { margin: 0; font-weight: 600; }
.plan-star .plan-flag { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price { margin: 0; }
.plan-price b { font-size: 3.4rem; font-weight: 700; letter-spacing: -.05em; color: inherit; }
.plan .plan-price { color: var(--white); }
.plan-star .plan-price { color: var(--graphite); }
.plan-extra { margin: 0; }
.vat { color: var(--mute); margin-top: var(--s3); }

/* Pasos (secuencia real) */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin: var(--s4) 0; }
.steps li { counter-increment: s; font-size: 1.3rem; font-weight: 500; letter-spacing: -.015em; }
.steps li::before { content: counter(s); display: block; font-size: 4.5rem; font-weight: 700; letter-spacing: -.06em; line-height: 1; margin-bottom: var(--s2); color: #d2d2d7; }

/* FAQ */
details { border-bottom: 1px solid rgba(0,0,0,.12); padding: var(--s2) 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.2rem; min-height: 44px; display: flex; align-items: center; }

/* Final + lead */
.final h2 { max-width: 14ch; }
.lead-form { margin-top: var(--s5); display: grid; gap: var(--s2); max-width: 520px; padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.12); }
.lead-form p { margin: 0; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: #d2d2d7; }
.consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: #3d7bff; }
.lead-msg { min-height: 1.5em; }

.foot { display: flex; flex-wrap: wrap; gap: var(--s3); padding: var(--s4) clamp(1rem, 5vw, 5rem) 6rem; background: var(--snow); color: #6e6e73; font-size: .85rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--graphite); }
.foot span { margin-left: auto; }

.sticky-cta { position: fixed; z-index: 30; right: 1rem; bottom: 1rem; display: none; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.sticky-cta.show { display: inline-flex; animation: pop .35s ease; }
@keyframes pop { from { transform: translateY(20px); opacity: 0; } }

@media (max-width: 900px) {
  .two, .plans, .steps, .calc, .fx-recep { grid-template-columns: 1fr; }
  .hero { padding-top: var(--s5); }
  .nav { display: none; }
  .top .btn { display: none; }
  #lang { margin-left: auto; }
  .band { padding: var(--s5) 1.1rem; }
  .two { margin-top: var(--s5); }
  .fx-recep { padding: var(--s3); }
  .fx-recep-wave { height: 120px; }
  .sticky-cta.show { left: 1rem; right: 1rem; }
  .foot span { margin-left: 0; }
}

/* Páginas legales */
.legal { background: var(--white); color: var(--graphite); }
.legal h2 { font-size: 1.35rem; max-width: none; margin-top: var(--s4); letter-spacing: -.02em; }
.legal li { margin: .4rem 0; }
.plan-price span { margin-left: .3em; color: var(--mute); }
.band-snow, .band-white, .legal, .plan-star { --mute: #6e6e73; }

/* Resumen del pedido antes de Stripe */
.order { border: 0; padding: 0; background: transparent; max-width: min(520px, 92vw); width: 100%; color: var(--graphite); }
.order::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.order-box { background: var(--white); border-radius: var(--r-box); padding: var(--s4); display: grid; gap: var(--s2); }
.order-kicker { margin: 0; color: #6e6e73; font-weight: 500; }
.order-name { margin: 0; font-size: 2rem; }
.order-lines { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0; padding: var(--s2) 0; border-block: 1px solid rgba(0,0,0,.1); }
.order-lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 1.15rem; }
.order-total b { font-size: 2.4rem; letter-spacing: -.04em; }
.order-vat, .order-terms { margin: 0; font-size: .85rem; color: #6e6e73; }
.order-secure { margin: 0; background: var(--snow); border-radius: 14px; padding: .8rem 1rem; }
.order-secure small { color: #6e6e73; }
.order-msg { margin: 0; background: #fff4d6; border-radius: 14px; padding: .8rem 1rem; }
.order-msg .btn { margin-top: .5rem; color: var(--graphite); border-color: rgba(0,0,0,.25); }
.order-ctas { display: flex; gap: .5rem; flex-wrap: wrap; }
.order-ctas .btn-primary { background: var(--graphite); color: var(--white); flex: 1; }
.order-ctas .btn-line { color: var(--graphite); border-color: rgba(0,0,0,.2); }
