/* ============================================================
   ASTORIA AI — Landing · Design System v2 (paleta del logo)
   Degradé de marca: #b9b2ee → #7635b7 → #5a00a0 sobre #09090B
   ============================================================ */

:root {
  --bg: #09090B;
  --surface: #111113;
  --surface-2: #16161A;
  --border: rgba(185, 178, 238, 0.10);
  --border-strong: rgba(185, 178, 238, 0.20);
  --text: #FAFAFA;
  --text-muted: #A6A1BC;
  --text-dim: #6F6A85;
  /* Marca (del logo) */
  --brand-light: #B9B2EE;
  --brand-mid: #7635B7;
  --brand-deep: #5A00A0;
  --brand-glow: rgba(90, 0, 160, 0.45);
  --brand-soft: rgba(118, 53, 183, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 780px; }
.center { text-align: center; }
.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline; } }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 48px;
}
.accent-text {
  background: linear-gradient(90deg, var(--brand-light), #8F6BD9 55%, var(--brand-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), filter 0.25s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand-deep) 80%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(185,178,238,0.22) inset, 0 10px 28px -10px var(--brand-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 0 0 1px rgba(185,178,238,0.35) inset, 0 16px 38px -10px var(--brand-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(185,178,238,0.05);
  border-color: var(--border-strong);
  color: var(--brand-light);
}
.btn-ghost:hover { border-color: var(--brand-light); background: rgba(185,178,238,0.10); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 18px 44px; font-size: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 9, 11, 0.70);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(9, 9, 11, 0.88); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; }
.logo-svg { height: 28px; width: auto; }
.logo-svg-footer { height: 25px; width: auto; }
.nav-links { display: none; gap: 28px; font-size: 14.5px; color: var(--text-muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--brand-light); }
@media (min-width: 820px) { .nav-links { display: flex; } }

/* Header compacto en celular: logo y botón proporcionados, sin pisarse */
@media (max-width: 640px) {
  .nav { height: 56px; gap: 10px; }
  .logo-svg { height: 21px; width: auto; }
  .nav .btn-sm { padding: 8px 14px; font-size: 12.5px; }
}
@media (max-width: 350px) {
  .logo-svg { height: 18px; }
  .nav .btn-sm { padding: 7px 11px; font-size: 11.5px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 0 60px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 900px; height: 700px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(118,53,183,0.22), transparent 65%),
    radial-gradient(closest-side, rgba(90,0,160,0.14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  will-change: transform;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(185,178,238,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,178,238,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--border-strong); border-radius: 14px;
  display: none;
}
@media (min-width: 960px) { .scroll-hint { display: block; } }
.scroll-hint-wheel {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 3px; height: 8px; border-radius: 2px; background: var(--brand-light);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 8px; } }

/* ---------- Chat mockup (burbujas de marca) ---------- */
.hero-visual { display: flex; justify-content: center; }
.chat-card {
  position: relative;
  width: min(100%, 400px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), 0 0 60px -28px var(--brand-glow);
}
.chat-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 23px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(185,178,238,0.55), transparent 30%, transparent 70%, rgba(90,0,160,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #0B0A10;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.chat-avatar svg { width: 22px; height: 16px; }
.chat-title { font-weight: 600; font-size: 15px; }
.chat-status { font-size: 12.5px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.8); }
.chat-body { padding: 16px 2px 6px; display: flex; flex-direction: column; gap: 12px; min-height: 288px; }

/* Burbujas: formas SVG de marca (cola puntiaguda), estiradas al tamaño del mensaje */
.msg {
  position: relative;
  font-size: 13.5px;
  line-height: 1.45;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0;
  transform: translateY(12px) scale(0.88);
  transition: opacity 0.45s var(--ease),
              transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); /* rebote suave */
}
.msg-in  { transform-origin: bottom left; }
.msg-out { transform-origin: bottom right; }
.msg.show { opacity: 1; transform: translateY(0) scale(1); }

/* Burbuja "escribiendo…" de la IA (aparece antes de cada respuesta) */
.msg-typing-bubble {
  display: none;
  align-self: flex-end;
  align-items: center;
  gap: 5px;
  padding: 11px 16px 12px 16px;
  background: linear-gradient(180deg, rgba(90,0,160,0.85), rgba(90,0,160,0.65));
  border-radius: 16px 16px 4px 16px;
  transform-origin: bottom right;
}
.msg-typing-bubble.show { display: inline-flex; animation: bubblePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bubblePop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.msg-typing-bubble span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: typing 1.1s infinite;
}
.msg-typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.msg-typing-bubble span:nth-child(3) { animation-delay: 0.3s; }

/* Entrante (gris violeta, cola abajo-izquierda: forma espejada) */
.msg-in {
  align-self: flex-start;
  max-width: 84%;
  color: #17102E;
  font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 383.08 117.62' preserveAspectRatio='none'%3E%3Cg transform='translate(383.08,0) scale(-1,1)'%3E%3Cpath fill='%23b9b2ee' d='M43.17,0C19.63,0,.55,19.08.55,42.62h0c0,23.54-8.64,75.01,42.62,75.01h300.33s39.58,0,39.58,0l-37.89-92.93C335.57,9.33,318.72,0,300.6,0H43.17Z'/%3E%3C/g%3E%3C/svg%3E");
  padding: 12px 18px 14px 15%;
}
/* Entrante corto (proporción de la burbuja chica) */
.msg-in.msg-short {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300.96 85.24' preserveAspectRatio='none'%3E%3Cg transform='translate(300.96,0) scale(-1,1)'%3E%3Cpath fill='%23b9b2ee' d='M42.62,0C19.08,0,0,19.08,0,42.62h0c0,23.54,19.08,42.62,42.62,42.62h218.76s39.58,0,39.58,0l-37.89-60.54C253.45,9.33,236.6,0,218.48,0H42.62Z'/%3E%3C/g%3E%3C/svg%3E");
  padding: 10px 18px 12px 19%;
  max-width: 62%;
}

/* Saliente (violeta de marca, cola abajo-derecha: forma original) */
.msg-out {
  align-self: flex-end;
  max-width: 86%;
  color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 383.08 117.62' preserveAspectRatio='none'%3E%3Cpath fill='%235a00a0' d='M43.17,0C19.63,0,.55,19.08.55,42.62h0c0,23.54-8.64,75.01,42.62,75.01h300.33s39.58,0,39.58,0l-37.89-92.93C335.57,9.33,318.72,0,300.6,0H43.17Z'/%3E%3C/svg%3E");
  padding: 12px 15% 14px 20px;
}
.msg-out.msg-short {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300.96 85.24' preserveAspectRatio='none'%3E%3Cpath fill='%235a00a0' d='M42.62,0C19.08,0,0,19.08,0,42.62h0c0,23.54,19.08,42.62,42.62,42.62h218.76s39.58,0,39.58,0l-37.89-60.54C253.45,9.33,236.6,0,218.48,0H42.62Z'/%3E%3C/svg%3E");
  padding: 10px 19% 12px 18px;
  max-width: 62%;
}

.msg-sys {
  align-self: center;
  background: rgba(185,178,238,0.06);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
}
.chat-typing {
  display: none; align-items: center; gap: 4px;
  padding: 8px 0 2px 4px;
}
.chat-typing.show { display: flex; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light);
  animation: typing 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(185,178,238,0.02) 18%, rgba(185,178,238,0.02) 82%, transparent);
}

/* ---------- Flujo (Cómo funciona) ---------- */
.flow { display: grid; gap: 18px; counter-reset: flow; position: relative; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.flow-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.flow-step:hover {
  transform: translateY(-4px);
  border-color: rgba(185,178,238,0.45);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.7), 0 0 30px -12px var(--brand-glow);
}
.flow-step::after {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  position: absolute; top: 18px; right: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text-dim);
}
.flow-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-light);
  margin-bottom: 16px;
}
.flow-icon svg { width: 22px; height: 22px; }
.flow-step h3 { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 6px; }
.flow-step p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Beneficios ---------- */
.cards { display: grid; gap: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(185,178,238,0.45);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.7), 0 0 30px -12px var(--brand-glow);
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand-light);
  margin-bottom: 18px;
}
.card-icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Stats ---------- */
.stats-section { padding: 70px 0; }
.stats {
  display: grid; gap: 32px;
  grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--border);
  padding: 44px 8px;
}
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-num {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 750;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 20%, var(--brand-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }

/* ---------- Timeline (Proceso) ---------- */
.timeline { position: relative; max-width: 640px; }
.timeline::before {
  content: "";
  position: absolute; left: 19px; top: 8px; bottom: 8px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--brand-mid) 45%, rgba(90,0,160,0.3) 80%, transparent);
}
.tl-item { position: relative; display: flex; gap: 22px; padding: 0 0 34px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  flex: none;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid rgba(185,178,238,0.4);
  color: var(--brand-light);
  font-weight: 650; font-size: 15px;
  box-shadow: 0 0 18px -6px var(--brand-glow);
  position: relative; z-index: 1;
}
.tl-item h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; padding-top: 7px; }
.tl-item p { font-size: 14.5px; color: var(--text-muted); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq-item[open] { border-color: rgba(185,178,238,0.45); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  font-weight: 600; font-size: 15.5px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-light); }
.faq-chevron {
  flex: none;
  width: 10px; height: 10px;
  border-right: 1.8px solid var(--text-dim);
  border-bottom: 1.8px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-chevron { transform: rotate(225deg); }
.faq-answer { padding: 0 20px 18px; }
.faq-answer p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute; left: 50%; bottom: -55%;
  width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(118,53,183,0.30), rgba(90,0,160,0.12) 55%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 18px;
  position: relative;
}
.cta-sub { color: var(--text-muted); font-size: clamp(16px, 2vw, 18px); margin-bottom: 36px; position: relative; }
.cta-note { margin-top: 18px; font-size: 13px; color: var(--text-dim); position: relative; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: #0B0A0F; }
.footer-inner { display: grid; gap: 36px; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-tag { color: var(--text-muted); font-size: 14px; margin-top: 14px; max-width: 30ch; }
.footer-col h4 {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 14.5px; color: var(--text-muted); padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
}

/* ---------- Modal de video ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Fondo sólido a propósito: un backdrop-filter acá se recalcula sobre cada cuadro
     del video y hace que se trabe en celulares. */
  background: rgba(6, 5, 10, 0.96);
  animation: modalIn 0.28s var(--ease);
}
/* Con el modal abierto, apagamos todo lo que consume GPU detrás (no se ve igual) */
body.modal-open .hero-glow,
body.modal-open .hero-grid-lines,
body.modal-open .cta-glow { display: none; }
body.modal-open .msg-typing-bubble span,
body.modal-open .scroll-hint-wheel { animation: none; }
body.modal-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
.video-modal[hidden] { display: none; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.video-shell {
  width: min(100%, 980px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9), 0 0 70px -30px var(--brand-glow);
  animation: shellIn 0.35s var(--ease);
}
@keyframes shellIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.video-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-ratio iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.video-close:hover { background: rgba(185,178,238,0.16); transform: scale(1.06); }
.video-close:focus-visible, .btn:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; }
body.modal-open { overflow: hidden; }

/* ---------- Animaciones de scroll (reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }

/* ---------- Accesibilidad: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .msg { opacity: 1; transform: none; transition: none; }
  .scroll-hint-wheel, .chat-typing span, .msg-typing-bubble span { animation: none; }
  .msg-typing-bubble { display: none !important; }
  .btn, .card, .flow-step { transition: none; }
}
