/* Layout: bandas de color con la forma líquida de la marca; el producto (el chat) es la imagen principal. */
:root {
  --blue: #0250BD;
  --blue-deep: #03306F;
  --ink: #0B2354;
  --ink-soft: #46597F;
  --lime: #D0FF41;
  --silver: #C6D0DD;
  --cream: #F6F2EC;
  --paper: #FFFDF9;
  --chat: #EFEADF;
  --bubble-in: #FFFFFF;
  --bubble-out: #DCEBFF;
  --line: #DDD7CC;
  --line-blue: rgba(255, 255, 255, .22);
  --urgent: #B3261E;
  --font: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--cream); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.03em; line-height: 1.08; }
h1 { font-size: clamp(2.9rem, 6.6vw, 5.3rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-blue :focus-visible { outline-color: var(--lime); }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34em; color: var(--ink-soft); }
.on-blue { background: var(--blue); color: #fff; }
.on-blue .lede { color: #DCE8FB; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 14px; border: 2px solid var(--ink); background: transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* Navegación */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--cream); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); text-decoration: none; }
.logo .iso { height: 34px; width: 24px; }
.logo .word { height: 22px; width: 63px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .94rem; font-weight: 500; }
.nav-links a:not(.btn) { text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--blue); }
.nav-links .btn { min-height: 44px; padding: 8px 18px; font-size: .9rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 88px); }
.hero-blob { position: absolute; top: -8%; right: -6%; width: min(50vw, 720px); height: 122%; color: var(--blue); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; padding-right: 24px; }
.hero-copy h1 { color: var(--blue); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: .9rem; color: var(--ink-soft); }

.phone { background: var(--ink); border-radius: 36px; padding: 10px; box-shadow: 0 24px 60px rgba(3, 48, 111, .32); }
.phone-screen { border-radius: 27px; overflow: hidden; background: var(--chat); display: flex; flex-direction: column; min-height: 0; height: 100%; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: #fff; }
.chat-head .avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--lime); color: var(--blue); }
.chat-head .avatar .iso { width: 18px; height: 26px; }
.chat-head strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.25; }
.chat-head span { display: block; font-size: .75rem; color: var(--silver); }
.msgs { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; font-size: .9rem; line-height: 1.42; }
.msg { max-width: 84%; padding: 8px 12px; border-radius: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.msg small { display: block; margin-top: 2px; text-align: right; font-size: .66rem; color: var(--ink-soft); }
.msg.in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 4px; }
.day-tag { align-self: center; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, .75); font-size: .72rem; font-weight: 500; color: var(--ink-soft); }

.hero-phone { position: relative; width: min(100%, 370px); margin-inline: auto; margin-bottom: 22px; }
.booked-note { position: absolute; left: -36px; bottom: -22px; display: grid; gap: 1px; padding: 12px 16px; border-radius: 14px; background: var(--lime); color: var(--ink); font-size: .82rem; box-shadow: 0 10px 28px rgba(3, 48, 111, .28); }
.booked-note strong { font-weight: 600; font-size: .92rem; }

/* Hoy / con tuut */
.day-head { display: grid; gap: 16px; margin-bottom: 40px; }
.compare { display: grid; }
.compare-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-block: 20px; border-top: 1px solid var(--line); align-items: baseline; }
.compare-row.labels { border-top: 0; padding-block: 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.compare-row.labels .with { color: var(--blue); }
.compare-row time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue); }
.compare-row .with { font-weight: 500; }

/* Demo */
.demo { overflow: hidden; }
.demo-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.demo-head > div:first-child { display: grid; gap: 14px; min-width: 0; }
.profile-switch { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--blue-deep); }
.profile-switch button { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 11px; background: transparent; color: #fff; font-weight: 500; cursor: pointer; }
.profile-switch button[aria-pressed="true"] { background: var(--lime); color: var(--ink); font-weight: 600; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.demo-phone { height: 660px; box-shadow: 0 24px 60px rgba(3, 30, 80, .4); }
.demo-phone .msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.demo-phone .msg { color: var(--ink); }
.typing { display: inline-flex; gap: 4px; padding-block: 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.chips:empty { display: none; }
.chips button { min-height: 36px; padding: 5px 12px; border: 1.5px solid var(--blue); border-radius: 999px; background: var(--paper); color: var(--blue); font-size: .8rem; font-weight: 500; cursor: pointer; }
.chips button:hover { background: var(--blue); color: #fff; }
.composer { display: flex; gap: 8px; padding: 10px; background: var(--paper); }
.composer input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--silver); border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; }
.composer button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.composer button:disabled { opacity: .45; cursor: default; }

.board { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 14px; min-width: 0; color: var(--ink); }
.pane { background: var(--paper); border-radius: 18px; padding: 18px; min-width: 0; }
.pane-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
.legend { display: flex; gap: 12px; font-size: .7rem; font-weight: 400; color: var(--ink-soft); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 3px; vertical-align: -1px; }
.agenda { display: grid; grid-template-columns: 42px repeat(6, minmax(0, 1fr)); gap: 3px; font-size: .68rem; font-variant-numeric: tabular-nums; }
.agenda .d { padding-bottom: 3px; text-align: center; font-weight: 600; line-height: 1.2; }
.agenda .h { display: flex; align-items: center; color: var(--ink-soft); }
.agenda .c { height: 18px; border-radius: 4px; background: #EEF2F8; transition: background-color .25s ease; }
.agenda .c.busy { background: var(--silver); }
.agenda .c.off { background: transparent; }
.agenda .c.mine { background: var(--lime); box-shadow: inset 0 0 0 2px var(--blue); }
.board-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; min-height: 0; }
.ficha { margin: 0; display: grid; gap: 8px; font-size: .84rem; }
.ficha div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
.ficha dt { color: var(--ink-soft); }
.ficha dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.empty { color: var(--ink-soft); font-size: .84rem; }
.alert { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #FBE9E7; color: var(--urgent); font-size: .8rem; font-weight: 600; }
.log { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; max-height: 196px; overflow-y: auto; font-size: .8rem; line-height: 1.35; }
.log li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px; }
.log:empty::before { content: "Aquí aparece cada acción."; color: var(--ink-soft); font-size: .84rem; }
.log time { white-space: nowrap; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: .84rem; color: #DCE8FB; }
.link-btn { padding: 6px 2px; border: 0; background: none; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; margin-top: 48px; }
.feature { display: grid; gap: 8px; align-content: start; }
.feature svg { width: 34px; height: 34px; color: var(--blue); margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .95rem; }
.integrations { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .86rem; }
.integrations strong { font-weight: 600; margin-right: 6px; }
.integrations span { padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }

/* Pasos */
.steps-band { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--lime); color: var(--blue); font-weight: 700; font-size: 1.15rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; }

/* Preguntas */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.faq details { border-top: 1px solid var(--line); padding-block: 16px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Contacto */
.contact { position: relative; overflow: hidden; background: var(--lime); }
.contact-blob { position: absolute; right: -4%; bottom: -14%; width: min(66vw, 760px); height: 74%; color: var(--blue); }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: center; }
.contact-copy { display: grid; gap: 18px; align-content: start; }
.contact-copy h2 { color: var(--blue); }
.contact-copy .lede { color: var(--ink); }
.lead-form { display: grid; gap: 14px; padding: 26px; border-radius: 22px; background: var(--paper); box-shadow: 0 18px 44px rgba(3, 48, 111, .22); }
.lead-form label { display: grid; gap: 5px; font-size: .86rem; font-weight: 500; }
.lead-form input, .lead-form select { width: 100%; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--silver); border-radius: 11px; background: #fff; color: var(--ink); font-size: 16px; }
.form-result { font-size: .9rem; }
.form-result a { font-weight: 600; color: var(--blue); }

footer { background: var(--blue-deep); color: #DCE8FB; font-size: .86rem; padding-block: 28px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
footer .logo { color: #fff; }

@media (max-width: 960px) {
  .hero-grid, .demo-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-blob { top: auto; bottom: 0; right: -30%; width: 150vw; height: 400px; }
  .booked-note { left: 0; bottom: -18px; }
  .demo-grid { justify-items: stretch; }
  .demo-phone { width: min(100%, 420px); margin-inline: auto; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-blob { height: 34%; bottom: -6%; width: 130vw; right: -24%; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .compare-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .compare-row.labels { display: none; }
  .compare-row .today::before { content: "Hoy: "; font-weight: 600; }
  .compare-row .with::before { content: "Con tuut: "; font-weight: 600; color: var(--blue); }
  .board-row, .features, .steps { grid-template-columns: minmax(0, 1fr); }
  .demo-phone { height: 600px; }
  .lead-form { padding: 20px; }
  .legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .agenda .c { transition: none; }
  .btn:hover { transform: none; }
  .typing i { animation: none; opacity: .7; }
}
