/* IALamp — noche de lapislázuli y luz de lámpara. Lo memorable: el genio. */
:root {
  --night: #12133a;
  --night-2: #1d1f55;
  --brass: #e8b04b;
  --brass-hi: #ffd68c;
  --smoke: #b9a8ff;
  --mist: #ece8fa;
  --ink: #17183f;
  --paper: #f7f5ff;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --r-btn: 999px;
  --r-box: 22px;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 7rem;
}
* { 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.55; color: var(--paper); background: var(--night); -webkit-font-smoothing: antialiased; }
body.intro-open { overflow: hidden; }
h1, h2, h3 { font-variation-settings: "opsz" 96; line-height: 1.04; margin: 0 0 var(--s2); letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 760; font-stretch: 80%; max-width: 13ch; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 720; font-stretch: 85%; max-width: 18ch; }
h3 { font-size: 1.5rem; font-weight: 650; }
p { max-width: 62ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 1.6em; border-radius: var(--r-btn); border: 2px solid transparent; font: inherit; font-weight: 650; font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-brass { background: var(--brass); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.btn-brass:hover { background: var(--brass-hi); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--night-2); }
.btn-sm { min-height: 42px; padding: 0 1.1em; font-size: .95rem; }

/* Intro */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 70%, #0d0e2c, #05061a 70%); color: var(--paper); transition: opacity .7s; }
.intro.is-done { opacity: 0; pointer-events: none; }
.intro-orb { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s; }
.intro.is-lit .intro-orb { opacity: 1; }
.intro-lamp { position: absolute; bottom: 6vh; width: min(260px, 50vw); color: var(--brass); filter: drop-shadow(0 0 0 transparent); transition: filter 1.2s; }
.intro.is-lit .intro-lamp { filter: drop-shadow(0 0 28px rgba(255,214,140,.8)); }
.intro-line { position: absolute; top: 52vh; z-index: 2; margin: 0; padding: 0 6vw; text-align: center; font-size: clamp(2rem, 6.4vw, 5.6rem); font-weight: 760; font-stretch: 78%; line-height: 1.05; max-width: 22ch; font-size: clamp(2rem, 5.2vw, 4.6rem); text-shadow: 0 2px 30px rgba(5,6,26,1), 0 0 60px rgba(5,6,26,.9); }
.intro-line.in { animation: line-in 1.6s ease both; }
.intro-line.is-final { color: var(--brass-hi); }
@keyframes line-in { 0% { opacity: 0; filter: blur(14px); transform: scale(1.06); letter-spacing: .04em; } 18%, 80% { opacity: 1; filter: blur(0); transform: none; letter-spacing: -.02em; } 100% { opacity: 0; filter: blur(8px); } }
.intro-line.is-final.in { animation: line-final 1.4s ease both; }
@keyframes line-final { from { opacity: 0; filter: blur(14px); } to { opacity: 1; filter: blur(0); } }
.intro-choose { position: absolute; z-index: 3; bottom: 30vh; 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(--paper); opacity: .7; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; 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: .8rem clamp(1rem, 4vw, 3rem); background: rgba(18,19,58,.82); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: .5rem; color: var(--brass); text-decoration: none; font-weight: 780; font-size: 1.35rem; font-stretch: 80%; letter-spacing: -.01em; }
.nav { display: flex; gap: var(--s3); margin-left: auto; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--brass-hi); }
#lang { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,.3); border-radius: 10px; padding: .45rem .6rem; font: inherit; font-size: .9rem; }
#lang option { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s4); align-items: center; min-height: calc(100vh - 70px); padding: var(--s4) clamp(1rem, 5vw, 5rem) var(--s5); background: radial-gradient(ellipse at 75% 40%, var(--night-2), var(--night) 65%); }
.hero-kicker { color: var(--smoke); font-weight: 600; font-size: 1.15rem; margin: 0 0 var(--s2); }
.hero-sub { font-size: 1.2rem; opacity: .9; margin: 0 0 var(--s4); }
.hero-ctas { display: flex; gap: var(--s2); flex-wrap: wrap; }
.hero-trust { margin-top: var(--s3); opacity: .7; font-size: .95rem; }
.hero-genie { position: relative; display: grid; justify-items: center; }
.genie-canvas { width: 100%; max-width: 560px; aspect-ratio: 1 / .78; }
.genie-lamp { width: 180px; margin-top: -70px; color: var(--brass); filter: drop-shadow(0 0 22px rgba(255,214,140,.55)); }

/* Chat del genio */
.chat { width: min(100%, 520px); margin-top: var(--s3); background: rgba(247,245,255,.06); border: 1px solid rgba(185,168,255,.35); border-radius: var(--r-box); padding: var(--s3); backdrop-filter: blur(8px); }
.chat-title { margin: 0 0 var(--s2); font-weight: 650; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.chat-title small { font-weight: 400; opacity: .6; }
.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: 16px; max-width: 88%; }
.chat-log .ai { background: rgba(232,176,75,.14); border-bottom-left-radius: 4px; }
.chat-log .me { background: var(--smoke); color: var(--ink); justify-self: end; border-bottom-right-radius: 4px; }
.chat-log .typing { opacity: .7; font-style: italic; }
.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, .scan-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(185,168,255,.45); background: rgba(5,6,26,.35); color: var(--paper); font: inherit; }
.chat-mic { min-width: 48px; border-radius: 14px; border: 1px solid rgba(185,168,255,.45); background: transparent; color: var(--paper); font-size: 1.2rem; cursor: pointer; }
.chat-mic.on { background: var(--brass); color: var(--ink); }

/* Bandas */
.band { padding: var(--s6) clamp(1rem, 5vw, 5rem); }
.band-light { background: var(--mist); color: var(--ink); }
.band-night { background: var(--night); }
.wrap { max-width: 1160px; margin: 0 auto; }
.narrow { max-width: 760px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }

/* Demo */
.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: 2px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.sectors button[aria-checked=true] { background: var(--ink); color: var(--paper); }
.phone { background: var(--night); color: var(--paper); border-radius: 38px; padding: var(--s4) var(--s3) var(--s3); min-height: 520px; display: flex; flex-direction: column; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); border: 10px solid #23255f; }
.phone-name { text-align: center; font-weight: 700; font-size: 1.2rem; 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: 14px; max-width: 90%; }
.phone-log .ai { background: rgba(232,176,75,.16); }
.phone-log .me { background: var(--smoke); color: var(--ink); justify-self: end; }
.phone-log .booking { background: var(--brass); color: var(--ink); font-weight: 650; max-width: 100%; }
.phone-note { font-size: .9rem; opacity: .75; }
.phone-buttons { display: flex; justify-content: center; gap: var(--s3); margin-top: var(--s2); }
.phone-buttons button { width: 74px; height: 74px; border-radius: 50%; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.phone-buttons .call { background: #3ecf8e; color: #04291a; }
.phone-buttons .hang { background: #ff5a5f; color: #fff; }

.calc { margin-top: var(--s5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s3); align-items: end; background: var(--paper); border-radius: var(--r-box); padding: var(--s4); }
.calc h3 { grid-column: 1 / -1; }
.calc label { display: grid; gap: .3rem; font-weight: 600; }
.calc input { min-height: 48px; border-radius: 12px; border: 2px solid var(--ink); padding: 0 1rem; font: inherit; font-size: 1.2rem; }
.calc-out { grid-column: 1 / -1; font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 760; font-stretch: 82%; }
.calc .btn { grid-column: 1 / -1; justify-self: start; }

/* Escáner */
.scan-form { margin: var(--s4) 0; }
.scan-form input { min-height: 60px; font-size: 1.15rem; }
.scan-form .btn { min-height: 60px; }
.gauge { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin: var(--s3) 0; }
.gauge-n { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; font-stretch: 75%; line-height: 1; color: var(--brass-hi); }
.gauge p { flex-basis: 100%; margin: 0; opacity: .8; }
.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(--s3); margin-top: var(--s4); align-items: stretch; }
.plan { background: var(--paper); border-radius: var(--r-box); padding: var(--s4) var(--s3); display: flex; flex-direction: column; gap: .3rem; border: 2px solid transparent; }
.plan ul { padding-left: 1.1rem; margin: var(--s2) 0 var(--s3); flex: 1; }
.plan li { margin: .35rem 0; }
.plan .btn { width: 100%; }
.plan-star { background: var(--night); color: var(--paper); border-color: var(--brass); box-shadow: 0 20px 40px -24px rgba(0,0,0,.45); }
.plan-flag { margin: 0; color: var(--brass-hi); font-weight: 650; }
.plan-price { margin: 0; }
.plan-price b { font-size: 3.2rem; font-weight: 800; font-stretch: 78%; }
.plan-extra { margin: 0; opacity: .75; }
.vat { opacity: .7; 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(--s3); margin: var(--s4) 0; }
.steps li { counter-increment: s; font-size: 1.25rem; font-weight: 550; padding-top: var(--s2); border-top: 2px solid var(--brass); }
.steps li::before { content: counter(s); display: block; font-size: 3rem; font-weight: 800; color: var(--brass); font-stretch: 75%; }

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

/* Final + lead */
.final { text-align: left; background: radial-gradient(ellipse at 20% 0%, var(--night-2), var(--night) 70%); }
.lead-form { margin-top: var(--s5); display: grid; gap: var(--s2); max-width: 520px; padding-top: var(--s4); border-top: 1px solid rgba(185,168,255,.3); }
.lead-form p { margin: 0; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; opacity: .9; }
.consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--brass); }
.lead-msg { min-height: 1.5em; color: var(--brass-hi); }

.foot { display: flex; flex-wrap: wrap; gap: var(--s3); padding: var(--s4) clamp(1rem, 5vw, 5rem) 6rem; background: #0b0c27; font-size: .9rem; opacity: .9; }
.foot span { margin-left: auto; }

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

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

/* Legales */
.legal h2 { font-size: 1.35rem; max-width: none; margin-top: var(--s4); }
.legal li { margin: .4rem 0; }
