/* =========================================================
   AUTOSYNC — sistema visual
   Paleta: negro azulado + azul zafiro. Tipografía: Geist + Instrument Serif.
   ========================================================= */
:root {
  --bg: #05070c;
  --bg-alt: #080b12;
  --panel: rgba(14, 18, 28, .72);
  --panel-solid: #0d111a;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #eef1f8;
  --muted: #8a93a8;
  --faint: #59617a;
  --accent: #5b7cff;
  --accent-hi: #a9bbff;
  --accent-ink: #ffffff;
  --accent-rgb: 91, 124, 255;
  --good: #3ddc97;
  --red: #ff6b6b;
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-head: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h2 em, h3 em, .final-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent-hi); }
p { text-wrap: pretty; }

/* Fondo animado (canvas) + grano */
#bg { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* BOTONES */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 500 .97rem var(--font-head); letter-spacing: -.01em; border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background-color .2s, border-color .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { background: #6d8bff; box-shadow: 0 16px 44px -12px rgba(var(--accent-rgb), .85), inset 0 1px 0 rgba(255, 255, 255, .25); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(5, 7, 12, .6); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font: 600 1.18rem var(--font-head); letter-spacing: -.035em; }
.logo-word span { font-weight: 400; color: var(--muted); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-mark .lp { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.4s var(--ease) .2s forwards; }
.logo-mark .lp + .lp { animation-delay: .5s; }
.logo-mark .ln { opacity: 0; animation: pop .5s var(--ease) 1.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.logo-mark .ln { transform-box: fill-box; transform-origin: center; }
.logo.small .logo-mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .9rem; padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }

/* COMUNES */
.contact-grid > *, .calc > *, .tabs > * { min-width: 0; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }

/* MARQUESINA */
.marquee { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: rgba(8, 11, 18, .6); backdrop-filter: blur(6px); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track span { font: 400 1.35rem var(--serif); font-style: italic; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 44px; }
.marquee-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECCIONES */
.section { padding: clamp(88px, 11vw, 136px) 0; position: relative; scroll-margin-top: 40px; }
.section-alt { background: linear-gradient(180deg, rgba(8, 11, 18, .75), rgba(8, 11, 18, .55)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 52px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-hi); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.kicker::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.section-head h2, .final-title { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: 16px; }
.sub { color: var(--muted); font-size: 1.08rem; line-height: 1.65; max-width: 56ch; }

.glass { background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* MODO MANUAL / AUTO */
.mode { border: 1px solid var(--line-2); border-radius: 24px; padding: clamp(22px, 3vw, 36px); background: var(--panel); backdrop-filter: blur(12px); transition: border-color .5s, box-shadow .5s; }
.mode[data-mode="auto"] { border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 0 90px -20px rgba(var(--accent-rgb), .35); }
.mode-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); margin-bottom: 28px; }
.mode-btn { position: relative; z-index: 1; padding: 10px 22px; border: 0; background: none; color: var(--muted); font: 500 .92rem var(--font-head); cursor: pointer; transition: color .3s; border-radius: 999px; }
.mode-btn.active { color: #fff; }
.mode-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #c2414b; transition: transform .5s var(--ease), background .5s; }
.mode[data-mode="auto"] .mode-thumb { transform: translateX(100%); background: var(--accent); }
.day { display: grid; gap: 10px; }
.day-row { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; }
.time { color: var(--faint); }
.task { position: relative; padding: 15px 20px 15px 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), border-color .5s, background .5s; }
.task::before { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-weight: 600; }
.mode[data-mode="manual"] .task::before { content: "!"; color: var(--red); }
.mode[data-mode="auto"] .task::before { content: "✓"; color: var(--accent-hi); }
.mode[data-mode="manual"] .day-row:nth-child(odd) .task { transform: rotate(-.5deg) translateX(-4px); }
.mode[data-mode="manual"] .day-row:nth-child(even) .task { transform: rotate(.4deg) translateX(6px); }
.mode[data-mode="manual"] .task { border-color: rgba(255, 107, 107, .18); }
.mode[data-mode="auto"] .task { border-color: rgba(var(--accent-rgb), .22); background: rgba(var(--accent-rgb), .05); }
.mode[data-mode="manual"] .a, .mode[data-mode="auto"] .m { display: none; }
.mode .a, .mode .m { animation: fadeIn .4s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }
.mode-result { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-2); font: 500 1.1rem var(--font-head); }
.mode-result b { color: var(--red); font-weight: 600; }
.mode[data-mode="auto"] .mode-result { color: var(--accent-hi); }

/* MÓDULOS */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.module { position: relative; padding: clamp(26px, 3vw, 36px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.module::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .12), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.module:hover { border-color: var(--line-2); transform: translateY(-3px); }
.module:hover::before { opacity: 1; }
.tag { color: var(--accent-hi); letter-spacing: .1em; }
.module h3 { font-size: 1.55rem; margin: 14px 0 10px; }
.module p { color: var(--muted); margin-bottom: 22px; }
.spec { list-style: none; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 7px; color: var(--text); }
.spec span { display: inline-block; width: 92px; color: var(--faint); }

/* CALCULADORA */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; background: var(--panel); backdrop-filter: blur(12px); }
.calc-inputs { padding: clamp(26px, 3.5vw, 44px); display: grid; gap: 30px; align-content: start; }
.calc-label { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; margin-bottom: 14px; }
.calc-label output { font: 500 1.05rem var(--font-mono); color: var(--accent-hi); white-space: nowrap; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p, 30%), rgba(255, 255, 255, .1) var(--p, 30%)); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .3), 0 4px 14px rgba(0, 0, 0, .5); transition: box-shadow .2s; }
input[type=range]:active::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .35), 0 4px 14px rgba(0, 0, 0, .5); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .3); }
.calc-note { font-size: .86rem; color: var(--muted); }
.calc-out { padding: clamp(26px, 3.5vw, 44px); background: linear-gradient(160deg, rgba(var(--accent-rgb), .12), rgba(0, 0, 0, .2) 60%); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; justify-content: center; }
.big span { display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.big strong { font: 600 clamp(2.5rem, 4.6vw, 3.6rem)/1 var(--font-head); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.big.accent strong { color: var(--accent-hi); }
.equiv { color: var(--muted); font-size: .95rem; min-height: 1.5em; }

/* SECTORES */
.tabs { display: grid; grid-template-columns: 250px 1fr; gap: 22px; }
.tab-list { display: grid; gap: 6px; align-content: start; }
.tab-btn { text-align: left; padding: 14px 18px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 500 1rem var(--font-head); cursor: pointer; display: flex; justify-content: space-between; transition: all .25s; }
.tab-btn:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.tab-btn.active { background: rgba(var(--accent-rgb), .14); color: #fff; border-color: rgba(var(--accent-rgb), .4); }
.tab-btn span { opacity: 0; transition: opacity .2s, transform .2s; }
.tab-btn.active span { opacity: 1; color: var(--accent-hi); }
.tab-panel { border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel); backdrop-filter: blur(12px); padding: clamp(24px, 3vw, 36px); min-height: 340px; }
.tab-panel h3 { font-size: 1.75rem; margin-bottom: 8px; }
.tab-panel > p { color: var(--muted); margin-bottom: 26px; }
.recipes { list-style: none; display: grid; gap: 10px; }
.recipe { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .22); animation: logIn .4s ease-out backwards; }
.recipe:nth-child(2) { animation-delay: .07s; }
.recipe:nth-child(3) { animation-delay: .14s; }
.recipe .n { font: 500 .78rem var(--font-mono); color: var(--accent-hi); padding-top: 3px; }
.recipe b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.recipe small { color: var(--muted); font-size: .92rem; }

/* MÉTODO */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 32px 28px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .18); }
.timeline .step { color: var(--accent-hi); }
.timeline h3 { font-size: 1.35rem; margin: 10px 0; }
.timeline p { color: var(--muted); font-size: .97rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font: 500 1.15rem var(--font-head); letter-spacing: -.02em; position: relative; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); background: linear-gradient(var(--accent-hi), var(--accent-hi)) center/12px 1.5px no-repeat, linear-gradient(var(--accent-hi), var(--accent-hi)) center/1.5px 12px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent-hi); }
.faq details p { color: var(--muted); padding: 0 44px 24px 0; }

/* FINAL / CONTACTO */
.contact-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.sub.left { margin-bottom: 28px; }
.contact-options { list-style: none; display: grid; gap: 10px; }
.contact-opt { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-align: left; cursor: pointer; font: inherit; backdrop-filter: blur(12px); transition: border-color .25s, transform .3s var(--ease); }
.contact-opt:hover { border-color: rgba(var(--accent-rgb), .5); transform: translateX(4px); }
.contact-opt .ci { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--accent-rgb), .14); color: var(--accent-hi); }
.contact-opt .ci svg { width: 20px; height: 20px; }
.contact-opt b { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.contact-opt small { display: block; color: var(--muted); font-size: .86rem; }
.contact-opt .go { margin-left: auto; color: var(--accent-hi); }
.form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 34px); border-radius: 22px; background: var(--panel); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.form h3 { font-size: 1.4rem; margin-bottom: 2px; }
.form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 500; color: var(--muted); }
.form input, .form textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); color: var(--text); font: inherit; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.form input::placeholder, .form textarea::placeholder { color: var(--faint); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.form .invalid { border-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.ts:empty { display: none; }
#tsChat { padding: 0 16px 10px; }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text); font-size: .88rem; cursor: pointer; }
.form label.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--accent); padding: 0; }
.form label.check a, .rgpd a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 2px; }
.form label.check.invalid span { color: var(--red); }
.rgpd { font-size: .74rem; line-height: 1.55; color: var(--faint); }
.rgpd b { color: var(--muted); font-weight: 500; }
.ph { background: rgba(255, 196, 0, .15); color: #ffd666; padding: 0 4px; border-radius: 4px; }
.form-status { min-height: 1.4em; font-size: .92rem; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--red); }

.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .88rem; background: rgba(5, 7, 12, .7); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a, .footer-links button { color: var(--muted); font: inherit; font-size: .86rem; background: none; border: 0; cursor: pointer; padding: 0; }
.footer-links a:hover, .footer-links button:hover { color: var(--text); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* WHATSAPP + CHAT */
.wa-float { position: fixed; left: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); z-index: 60; }
.wa-float svg { width: 26px; height: 26px; }
.chat-launcher { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); cursor: pointer; background: var(--accent); color: #fff; box-shadow: 0 12px 36px -8px rgba(var(--accent-rgb), .7); z-index: 60; display: grid; place-items: center; transition: transform .3s var(--ease); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher:hover { transform: scale(1.07); }
.chat-launcher .badge { position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--good); border: 2px solid var(--bg); }
.chat { position: fixed; right: 20px; bottom: 92px; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 120px); background: rgba(10, 13, 20, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); display: flex; flex-direction: column; overflow: hidden; z-index: 70; animation: chatIn .35s var(--ease); }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head .av { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.chat-head b { font-family: var(--font-head); font-weight: 600; display: block; line-height: 1.2; }
.chat-head small { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .78rem; }
.chat-head .actions { margin-left: auto; display: flex; gap: 2px; }
.chat-head .actions button { background: none; border: 0; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.chat-head .actions button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.chat-head .actions svg { width: 16px; height: 16px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; white-space: pre-line; animation: logIn .25s ease-out; }
.msg.bot { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.msg.bot a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 2px; }
.msg.summary { border-color: rgba(var(--accent-rgb), .4); background: rgba(var(--accent-rgb), .08); }
.msg.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin-top: 6px; white-space: normal; }
.msg.summary dt { color: var(--muted); }
.msg.summary dd { font-weight: 500; word-break: break-word; }
.msg.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: tdot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-quick button { background: transparent; border: 1px solid var(--line-2); color: var(--text); padding: 7px 13px; border-radius: 999px; font: inherit; font-size: .82rem; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.chat-quick button:hover { border-color: rgba(var(--accent-rgb), .6); color: var(--accent-hi); background: rgba(var(--accent-rgb), .08); }
.chat-progress { height: 2px; background: var(--line); }
.chat-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s var(--ease); }
.chat-input { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .95rem; }
.chat-input input:focus { outline: none; }
.chat-input button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.chat-input button svg { width: 18px; height: 18px; }
.chat-hint { font-size: .72rem; color: var(--faint); padding: 0 16px 10px; }

/* RESERVAS */
.booking { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(3, 5, 10, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .3s ease-out; }
.booking-box { width: min(980px, 100%); height: min(760px, calc(100vh - 40px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); animation: chatIn .4s var(--ease); }
.booking-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px 16px 22px; border-bottom: 1px solid var(--line); }
.booking-head b { display: block; font: 600 1.05rem var(--font-head); letter-spacing: -.02em; }
.booking-head small { color: var(--muted); font-size: .85rem; }
.booking-link { margin-left: auto; color: var(--accent-hi); font-size: .85rem; white-space: nowrap; }
.booking-head button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--text); cursor: pointer; display: grid; place-items: center; flex: none; }
.booking-head button svg { width: 18px; height: 18px; }
.booking iframe { flex: 1; width: 100%; border: 0; background: #fff; }
@media (max-width: 640px) {
  .booking { padding: 0; }
  .booking-box { height: 100%; border-radius: 0; }
  .booking-link { display: none; }
  .booking-head button { margin-left: auto; }
}

/* CURSOR PERSONALIZADO (solo ratón) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 200; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(255, 255, 255, .35); transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .3s, border-color .3s; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .7); }
.cursor-ring.text { width: 4px; height: 26px; margin: -13px 0 0 -2px; border-radius: 2px; background: var(--accent-hi); border-color: transparent; }
.cursor-ring.down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-ripple { position: fixed; pointer-events: none; z-index: 199; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1.5px solid var(--accent-hi); animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(7); opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor input[type=range], .has-cursor label { cursor: none; }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .contact-grid, .calc { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(5, 7, 12, .97); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 24px; border-radius: 0; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav .btn-sm { margin-left: auto; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .modules, .timeline { grid-template-columns: 1fr; }
  .nav .btn-sm { display: none; }
  .day-row { grid-template-columns: 1fr; gap: 4px; }
  .mode-btn { padding: 9px 14px; font-size: .85rem; }
  .marquee-track span { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .logo-mark .lp { stroke-dashoffset: 0; }
  .logo-mark .ln { opacity: 1; }
}
