:root {
  --ink: #0e0e10;
  --cream: #fbf4e4;
  --soft: rgba(251, 244, 228, .66);
  --line: rgba(251, 244, 228, .14);
  --glass: rgba(251, 244, 228, .055);
  --warm: #d8b684;
  --head: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* luz cálida detrás del cristal: sin esto el desenfoque no se nota */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 82% 8%, rgba(216, 182, 132, .22), transparent 70%),
    radial-gradient(36vw 36vw at 6% 62%, rgba(251, 244, 228, .09), transparent 70%);
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.lead { font-size: 1.2rem; color: var(--soft); max-width: 34em; }
.soft { color: var(--soft); }
section { padding: clamp(64px, 10vw, 128px) 0; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; border-radius: 6px; }

.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: 24px;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(251, 244, 228, .12), 0 24px 60px rgba(0, 0, 0, .35);
}

/* navegación */
.nav { position: sticky; top: 14px; z-index: 10; margin-top: 14px; }
.nav .glass { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; padding: 10px 12px 10px 18px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.25rem var(--head); text-decoration: none; margin-right: auto; }
.brand img { width: 22px; height: 26px; }
.nav a.link { text-decoration: none; color: var(--soft); font-size: .95rem; padding: 6px 2px; }
.nav a.link:hover, .nav a.link[aria-current] { color: var(--cream); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; background: var(--cream); color: var(--ink);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: #fff; }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--glass); }
.btn.small { padding: 9px 16px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* portada */
.hero { padding-top: clamp(48px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .note { margin-top: 18px; font-size: .92rem; color: var(--soft); }

.scene { perspective: 1400px; display: grid; place-items: center; padding: 30px 0; }
.float { animation: float 7s ease-in-out infinite; transform-style: preserve-3d; }
.phone {
  position: relative; width: min(290px, 68vw); aspect-ratio: 9 / 16; padding: 9px; border-radius: 40px;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -16deg)) rotateX(var(--rx, 6deg));
  transition: transform .25s ease-out;
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; background: #000; }
.chip {
  position: absolute; white-space: nowrap; padding: 9px 14px; border-radius: 14px; font-size: .85rem;
  transform: translateZ(70px);
}
.chip b { font-weight: 600; }
/* las etiquetas van arriba y abajo del teléfono: así no tapan el video ni el texto */
.scene { padding: 72px 0; }
.chip.c1 { top: -54px; left: -12%; }
.chip.c2 { bottom: -54px; right: -12%; transform: translateZ(110px); }
.chip.c3 { bottom: -54px; left: -12%; transform: translateZ(50px); }
@keyframes float { 50% { transform: translateY(-12px); } }

/* un día con el asistente */
.day .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.day .stick { position: sticky; top: 110px; align-self: start; }
.day .stick p { margin-top: 18px; }
.clock { margin-top: 32px; padding: 22px 26px; border-radius: 22px; display: grid; gap: 6px; width: fit-content; min-width: 260px; }
.clock-time { white-space: nowrap; font: 600 2.6rem/1 var(--head); letter-spacing: -.03em; color: var(--warm); font-variant-numeric: tabular-nums; }
.clock-label { color: var(--soft); font-size: .95rem; }
.timeline { --p: 1; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
/* línea base y línea cálida que se llena al bajar */
.timeline::before, .timeline::after { content: ""; position: absolute; left: 7px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(var(--warm), rgba(216, 182, 132, .35)); transform-origin: top; transform: scaleY(var(--p)); }
.timeline li { position: relative; padding: 20px 24px 22px 52px; border-radius: 20px; border: 1px solid transparent; transition: background .4s ease, border-color .4s ease, opacity .4s ease; }
.timeline li::before { content: ""; position: absolute; z-index: 1; left: 1px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--warm); box-shadow: 0 0 0 6px rgba(216, 182, 132, .12), 0 0 18px rgba(216, 182, 132, .45); transition: background .4s ease, box-shadow .4s ease; }
.timeline time { display: inline-block; font: 500 .85rem var(--head); color: var(--warm); padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(216, 182, 132, .3); background: rgba(216, 182, 132, .08); }
.timeline h3 { margin: 10px 0 6px; }
.timeline p { color: var(--soft); max-width: 32em; }
.timeline li.on { background: var(--glass); border-color: var(--line); }
.timeline li.on::before { background: var(--warm); }
.timeline.js li:not(.on) { opacity: .45; }
.timeline.js li:not(.on)::before { border-color: rgba(216, 182, 132, .45); box-shadow: none; }

/* precio desde */
.from { padding-bottom: 0; }
.from .amount { font: 500 clamp(2rem, 5.5vw, 4rem)/1.1 var(--head); letter-spacing: -.03em; margin: 10px 0 14px; }
.from .amount strong { font-weight: 600; color: var(--warm); }

/* prueba gratis */
.trial .glass { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); }
.trial ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.trial li { padding-left: 26px; position: relative; color: var(--soft); }
.trial li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; background: var(--warm); }
.trial li b { color: var(--cream); font-weight: 600; }
.mark3d { width: 170px; height: 200px; perspective: 900px; }
.mark3d div { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: sway 9s ease-in-out infinite alternate; }
.mark3d img { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes sway { from { transform: rotateY(-38deg) rotateX(8deg); } to { transform: rotateY(38deg) rotateX(-4deg); } }

/* página del asistente */
.pagehead { padding-bottom: 0; }
.pagehead h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 14em; margin-bottom: 20px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .chat { order: -1; }
.feature p { color: var(--soft); margin-top: 12px; max-width: 30em; }
.chat { padding: 20px; display: grid; gap: 10px; font-size: .95rem; }
.chat small { color: var(--soft); }
.chat p { margin: 0; padding: 10px 14px; border-radius: 16px; max-width: 85%; color: var(--cream); }
.chat .in { background: rgba(251, 244, 228, .1); border-bottom-left-radius: 4px; }
.chat .out { background: var(--cream); color: var(--ink); justify-self: end; border-bottom-right-radius: 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.plain { margin: 20px 0 0; padding-left: 20px; color: var(--soft); display: grid; gap: 8px; }
.steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; color: var(--soft); }
.steps li::before { content: counter(s); font: 600 1.6rem/1.1 var(--head); color: var(--warm); }
.steps b { color: var(--cream); font-weight: 600; display: block; }
.demo { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.demo video { width: min(300px, 78vw); border-radius: 28px; border: 1px solid var(--line); }

/* precio y preguntas */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 36px; overflow: hidden; }
.price > div { padding: clamp(24px, 4vw, 40px); }
.price > div + div { border-left: 1px solid var(--line); }
.price strong { display: block; font: 600 clamp(2.2rem, 5vw, 3.4rem)/1 var(--head); letter-spacing: -.03em; margin: 8px 0; }
.faq { max-width: 760px; margin-top: 28px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 1.1rem var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--warm); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--soft); margin-top: 10px; max-width: 40em; }
.contact .glass { padding: clamp(28px, 5vw, 56px); text-align: center; }
.contact p { margin: 16px auto 0; }
.contact .actions { justify-content: center; }

/* privacidad */
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--soft); margin-top: 12px; }
.legal p strong, .legal p a { color: var(--cream); }
.legal mark { background: rgba(216, 182, 132, .25); color: var(--cream); padding: 0 4px; border-radius: 4px; }
section.legal + section.legal { padding-top: 48px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--soft); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer a { text-decoration: none; }
footer .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px 32px; }
footer .wrap > :nth-child(1) { grid-area: 1 / 1; color: var(--cream); font-weight: 500; }
footer .wrap > :nth-child(3) { grid-area: 2 / 1; font-size: .85rem; }
footer .wrap > :nth-child(4) { grid-area: 1 / 2 / 3 / 3; }
footer .wrap > :nth-child(2) { grid-area: 1 / 3 / 3 / 4; justify-self: end; }
@media (max-width: 860px) {
  footer .wrap { grid-template-columns: 1fr; gap: 14px; }
  footer .wrap > * { grid-area: auto !important; justify-self: start !important; }
  footer .wrap > :nth-child(2) { order: 5; }
}
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); transition: background .2s ease, color .2s ease, transform .2s ease; }
.social a:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.social svg .fill { fill: currentColor; stroke: none; }
.social a[hidden] { display: none; }
footer a:hover { color: var(--cream); }

@media (max-width: 860px) {
  .hero .wrap, .day .wrap, .trial .glass, .feature, .split, .demo, .price { grid-template-columns: 1fr; }
  .day .stick { position: static; }
  .clock { display: none; }
  .timeline li { padding: 18px 16px 20px 46px; }
  .feature:nth-of-type(even) .chat { order: 0; }
  .price > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .mark3d { margin: 0 auto; }
  .demo video { margin: 0 auto; }
  .nav { position: static; }
  .nav .glass { border-radius: 26px; }
  .nav .glass { gap: 4px 16px; }
  .nav a.link { order: 2; font-size: .85rem; }
  .nav a.link[href="index.html"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .mark3d div { animation: none; }
  .phone, .btn { transition: none; }
}
