/* IA Assistant · estilos del sitio. Claro, tipo iPhone. Animaciones solo con transform, opacity, filter y clip-path. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --accent: #0071e3;
  --accent-2: #5e5ce6;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --radius-xl: 32px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  font-size: 17px; line-height: 1.47; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
section { padding: 112px 0; position: relative; }
.alt { background: var(--bg-soft); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { letter-spacing: -0.03em; font-weight: 700; }
h1 { font-size: clamp(44px, 7.2vw, 92px); line-height: 1.02; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.07; }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.note { font-size: 13px; color: var(--muted); }

/* ---------- Barra de progreso de lectura ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 500;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary::after { /* destello que cruza el botón al pasar el cursor */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.btn-secondary { background: transparent; color: var(--accent); padding-left: 12px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #0077ed; }
  .btn-primary:hover::after { transform: translateX(120%) skewX(-20deg); transition: transform 700ms var(--ease-out); }
  .btn-secondary:hover { text-decoration: underline; }
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateY(-100%); transition: transform 500ms var(--ease-drawer);
}
.nav.is-visible { transform: translateY(0); }
.nav-inner { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 200ms var(--ease-out); }
.nav-links a.current { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }
.nav .btn { height: 34px; padding: 0 18px; font-size: 14px; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: 150px; padding-bottom: 60px; text-align: center; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; border-radius: 50%;
  filter: blur(90px); opacity: 0.55; pointer-events: none;
}
.hero::before { background: radial-gradient(circle, #9fd0ff 0%, rgba(159,208,255,0) 70%); top: -200px; left: -180px; animation: drift-a 16s ease-in-out infinite alternate; }
.hero::after { background: radial-gradient(circle, #d9ccff 0%, rgba(217,204,255,0) 70%); top: 80px; right: -220px; animation: drift-b 19s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(150px, 100px, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-130px, 70px, 0) scale(0.94); } }
.hero .lead { margin: 22px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.word { display: inline-block; }
.ch { display: inline-block; transform-origin: 50% 100%; animation: char-in 900ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes char-in { from { opacity: 0; transform: translate3d(0, 0.55em, 0) rotateX(-70deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.enter { opacity: 0; transform: translateY(16px); animation: fade-up 800ms var(--ease-out) forwards; }
.enter.d2 { animation-delay: 420ms; } .enter.d3 { animation-delay: 640ms; } .enter.d4 { animation-delay: 900ms; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* Escena 3D: se endereza al hacer scroll (site.js escribe el transform) */
.hero-visual { position: relative; margin: 72px auto 0; max-width: 1000px; height: 590px; perspective: 1600px; }
.stage { position: absolute; inset: 0; transform-origin: 50% 0%; will-change: transform;
  transform: rotateX(16deg) scale(0.94); transition: transform 120ms linear; }

/* ---------- Marcos ---------- */
.browser {
  position: absolute; left: 0; right: 0; top: 0; margin: 0 auto; width: min(900px, 100%);
  background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #d2d2d7;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 50px 100px -24px rgba(0,0,0,0.25), 0 14px 28px -14px rgba(0,0,0,0.14);
}
.browser-bar { height: 34px; background: #f2f2f4; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid #e0e0e4; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 14px; font-size: 12px; color: #86868b; background: #fff; border-radius: 6px; padding: 3px 14px; }
.browser-view { height: 440px; overflow: hidden; background: #fff; }
.browser-view img { width: 100%; height: auto; will-change: transform; }
.phone {
  position: absolute; right: 1%; bottom: -10px; width: 240px; aspect-ratio: 9 / 19.5;
  border-radius: 44px; padding: 10px; background: #1d1d1f;
  box-shadow: 0 0 0 2px #3a3a3c inset, 0 50px 90px -30px rgba(0,0,0,0.5);
  transition: transform 400ms var(--ease-out);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 80px; height: 23px; background: #000; border-radius: 14px; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; background: #fff; }
.phone.inline { position: relative; right: auto; bottom: auto; width: 280px; margin: 0 auto; }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Revelado de imágenes desde abajo (el contenedor es el que se observa) */
.reveal-img { clip-path: inset(100% 0 0 0 round 22px); transform: scale(0.97); transition: clip-path 1100ms var(--ease-out), transform 1100ms var(--ease-out); }
.reveal-img.is-in { clip-path: inset(0 0 0 0 round 22px); transform: none; }
.phone.reveal-img { clip-path: inset(100% 0 0 0 round 44px); }
.phone.reveal-img.is-in { clip-path: inset(0 0 0 0 round 44px); }

/* ---------- Notificaciones en vivo (estilo Sonner) ---------- */
.toasts { position: absolute; left: -10px; bottom: 40px; width: 330px; height: 92px; z-index: 5; pointer-events: none; text-align: left; }
.toast {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 12px; align-items: center;
  background: rgba(255,255,255,0.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(0,0,0,0.06); border-radius: 18px; padding: 12px 16px 12px 12px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.25);
  transform-origin: 50% 100%;
  transition: transform 450ms var(--ease-out), opacity 450ms var(--ease-out), filter 450ms var(--ease-out);
}
.toast[data-i="0"] { transform: translateY(0) scale(1); opacity: 1; }
.toast[data-i="1"] { transform: translateY(-16px) scale(0.95); opacity: 0.85; }
.toast[data-i="2"] { transform: translateY(-30px) scale(0.9); opacity: 0.5; }
.toast[data-i="3"] { transform: translateY(-40px) scale(0.86); opacity: 0; }
.toast.is-new { transform: translateY(110%) scale(0.98); opacity: 0; filter: blur(4px); }
.toast .ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 16px; }
.toast b { display: block; font-size: 14px; font-weight: 600; }
.toast small { color: var(--muted); font-size: 12px; }

/* ---------- Cinta de funciones ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.pill { white-space: nowrap; font-size: 15px; font-weight: 500; padding: 10px 18px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); }
.pill::before { content: "•"; color: var(--accent); margin-right: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Revelados al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; opacity: 0; transform: translateY(0.5em); filter: blur(4px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.split.is-in .w { opacity: 1; transform: none; filter: blur(0); }

/* ---------- Tarjetas con brillo que sigue al cursor ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.card {
  position: relative; overflow: hidden; background: var(--bg-soft); border-radius: var(--radius-xl); padding: 34px; display: flex; flex-direction: column;
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms var(--ease-out);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,113,227,0.12), transparent 60%);
}
@media (hover: hover) and (pointer: fine) {
  .spot:hover::before { opacity: 1; }
  .card:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -28px rgba(0,0,0,0.25); }
  .card:hover .thumb img { transform: scale(1.04); }
}
.card p { color: var(--muted); margin-top: 12px; }
.card .more { margin-top: auto; padding-top: 24px; font-weight: 600; color: var(--accent); font-size: 16px; }
.thumb { border-radius: 18px; overflow: hidden; margin-bottom: 24px; border: 1px solid #e0e0e4; background: #fff; aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 900ms var(--ease-out); }

/* ---------- Historia con pantalla fija ---------- */
.story { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; margin-top: 56px; }
.story-screen { position: sticky; top: 110px; height: min(58vh, 460px); border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #eef5ff, #f4f0ff); border: 1px solid #e3e3ea; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.3); }
.story-screen img {
  position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain;
  opacity: 0; filter: blur(10px); transform: scale(1.03);
  transition: opacity 650ms var(--ease-out), filter 650ms var(--ease-out), transform 650ms var(--ease-out);
}
.story-screen img.active { opacity: 1; filter: blur(0); transform: none; }
.story-screen img.shadowed { filter: drop-shadow(0 18px 30px rgba(0,0,0,0.18)); }
.story-steps { display: grid; gap: 26vh; padding: 10vh 0 18vh; }
.story-step { opacity: 0.32; transform: translateX(-6px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.story-step.active { opacity: 1; transform: none; }
.story-step .time { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
.story-step h3 { font-size: 30px; margin-top: 8px; }
.story-step p { color: var(--muted); margin-top: 10px; font-size: 18px; }

/* ---------- Galería tipo bento con capturas reales ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 290px; gap: 16px; margin-top: 52px; }
.tile { position: relative; overflow: hidden; margin: 0; border-radius: 28px; background: var(--bg-soft); display: flex; flex-direction: column;
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
.tile.w2 { grid-column: span 2; } .tile.h2 { grid-row: span 2; }
.tile-img { position: relative; flex: 1; min-height: 0; overflow: hidden; background: linear-gradient(160deg, #eef5ff 0%, #f6f2ff 100%); }
.tile:nth-child(3n+2) .tile-img { background: linear-gradient(160deg, #f1fbf6 0%, #eef5ff 100%); }
.tile:nth-child(3n) .tile-img { background: linear-gradient(160deg, #fff4ec 0%, #f6f2ff 100%); }
/* La captura completa cabe en la tarjeta (contain) y se apoya en la parte de abajo */
.tile-img img { position: absolute; inset: 22px 22px 0 22px; width: calc(100% - 44px); height: calc(100% - 22px);
  object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.18)); transition: transform 900ms var(--ease-out); transform-origin: 50% 100%; }
.tile figcaption { padding: 16px 20px 18px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; background: #fff; border-top: 1px solid #ececf0; }
.tile figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -28px rgba(0,0,0,0.3); }
  .tile:hover .tile-img img { transform: translateY(-6px) scale(1.02); }
}

/* ---------- Banda de cumplimiento con borde animado ---------- */
.comply-shell { position: relative; border-radius: 34px; padding: 2px; overflow: hidden; }
.comply-shell::before {
  content: ""; position: absolute; inset: -60%; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 70%, #5e5ce6 80%, #0071e3 88%, transparent 96%);
  animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.comply { position: relative; z-index: 1; background: #0b0b10; color: #f5f5f7; border-radius: 32px; padding: 72px 56px; overflow: hidden; }
.comply::after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94,92,230,0.45), rgba(94,92,230,0) 70%); filter: blur(60px); animation: drift-b 14s ease-in-out infinite alternate; pointer-events: none; }
.comply h2 { color: #fff; } .comply .eyebrow { color: #7fb8ff; } .comply .lead { color: #a1a1a8; }
.comply-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; position: relative; z-index: 1; }
.comply-item { border: 1px solid rgba(255,255,255,0.12); border-radius: 24px; padding: 26px; background: rgba(255,255,255,0.04); }
.comply-item h3 { color: #fff; font-size: 19px; } .comply-item p { color: #a1a1a8; font-size: 15px; margin-top: 8px; }
.comply-shot { position: relative; z-index: 1; margin-top: 34px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: #fff; }
.comply-shot img { width: 100%; height: auto; }
.comply-badge { position: relative; z-index: 1; display: inline-flex; font-size: 13px; color: #d7d7dc; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 6px 14px; margin-top: 26px; }
.comply-note { position: relative; z-index: 1; font-size: 12px; color: #8d8d96; margin-top: 14px; max-width: 760px; }

/* ---------- Funciones, pasos, contacto ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.cap { position: relative; overflow: hidden; padding: 28px; border-radius: 26px; background: var(--bg-soft); transition: transform 450ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cap:hover { transform: translateY(-4px); } .cap:hover .dot { transform: rotate(-8deg) scale(1.06); } }
.cap p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.dot { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 22px; display: grid; place-items: center; color: #fff; font-size: 19px; transition: transform 450ms var(--ease-out); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: #e8f1fd; border-radius: 999px; padding: 4px 10px; margin-top: 14px; }
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 130px; }
.feature.flip { grid-template-columns: 1.2fr 1fr; } .feature.flip .copy { order: 2; }
.feature h3 { font-size: 34px; letter-spacing: -0.03em; }
.feature p { color: var(--muted); margin-top: 18px; font-size: 19px; }
.feature ul { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.feature li { padding-left: 28px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.shot { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid #d2d2d7; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.25); }
.shot img { width: 100%; height: auto; }
.shot-pad { padding: 26px; border-radius: 28px; background: linear-gradient(160deg, #eef5ff, #f6f2ff); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step .n { font-size: 14px; font-weight: 600; color: var(--muted); }
.step h3 { margin-top: 10px; } .step p { color: var(--muted); margin-top: 10px; }
.cta-box { background: var(--bg-soft); border-radius: var(--radius-xl); padding: 64px 48px; text-align: center; }
.cta-box p { color: var(--muted); font-size: 19px; max-width: 620px; margin: 18px auto 0; }
.cta-box .btn { margin-top: 30px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact ul { list-style: none; margin-top: 28px; display: grid; gap: 12px; color: var(--muted); }
form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 36px; display: grid; gap: 14px; box-shadow: 0 30px 60px -36px rgba(0,0,0,0.2); }
label { font-size: 13px; font-weight: 600; color: var(--muted); display: grid; gap: 6px; }
input, select { font: inherit; font-size: 16px; color: var(--ink); height: 50px; padding: 0 16px; width: 100%; border-radius: 14px; border: 1px solid #d2d2d7; background: #fbfbfd;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,0.15); }
form .btn { width: 100%; margin-top: 6px; }
.form-msg { font-size: 14px; color: var(--muted); min-height: 20px; text-align: center; }
.legal { font-size: 12px; color: var(--muted); line-height: 1.4; }
footer { padding: 56px 0 72px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .caps { grid-template-columns: 1fr 1fr; }
  .feature, .feature.flip, .story, .contact { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .copy { order: 0; }
  .story-screen { position: relative; top: 0; height: 420px; }
  .story-steps { gap: 44px; padding: 0; }
  .story-step { opacity: 1; transform: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .comply-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 84px 0; }
  .hero { padding-top: 120px; }
  .cards, .caps, .steps, .bento { grid-template-columns: 1fr; }
  .tile.w2 { grid-column: auto; } .tile.h2 { grid-row: auto; }
  .card { padding: 26px; }
  .cta-box { padding: 44px 24px; }
  .comply { padding: 48px 24px; }
  .hero-visual { height: 470px; margin-top: 56px; }
  .browser-view { height: 300px; }
  .phone { width: 140px; right: 0; bottom: 10px; border-radius: 28px; padding: 7px; }
  .phone img { border-radius: 22px; }
  .phone::before { width: 50px; height: 15px; top: 12px; }
  .toasts { width: 260px; left: 0; bottom: 0; }
}

/* ---------- Movimiento reducido: sin desplazamientos, solo fundidos ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .enter, .reveal, .split .w, .reveal-img { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .stage { transform: none !important; }
  .story-screen img { transform: none; filter: none; }
}


/* Formulario de GoHighLevel incrustado */
.ghl-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 18px; min-height: 600px;
  box-shadow: 0 30px 60px -36px rgba(0,0,0,0.2); }
.ghl-form iframe { min-height: 560px; }

/* Tarjetas del demo (mismo estilo que el selector del demo) */
.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; text-align: left; }
.demo-card { font: inherit; text-align: left; border: 0; cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border-radius: 22px; color: #fff; min-height: 230px;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.45); transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out); }
.demo-card:active { transform: scale(0.98); }
.demo-card.dk { background: linear-gradient(160deg, #3a3a3d, #1d1d1f); }
.demo-card.pk { background: linear-gradient(160deg, #ff6f86, #ff2d55); }
.demo-card.pp { background: linear-gradient(160deg, #a35bd1, #6e2f9e); }
.demo-ico { font-size: 34px; line-height: 1; }
.demo-card h3 { color: #fff; font-size: 24px; margin-top: 4px; }
.demo-card p { color: rgba(255,255,255,0.88); font-size: 16px; }
.demo-go { margin-top: auto; font-weight: 800; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.demo-go span { display: inline-block; transition: transform 300ms var(--ease-out); }
.demo-card.spot::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18), transparent 60%); }
@media (hover: hover) and (pointer: fine) {
  .demo-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -28px rgba(0,0,0,0.5); }
  .demo-card:hover .demo-go span { transform: translateX(5px); }
}
.demo-note { margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero .demo-note { text-align: center; }
@media (max-width: 860px) { .demo-cards { grid-template-columns: 1fr; } .demo-card { min-height: 0; } }

/* Ventana emergente del demo. Modal: escala desde el centro. Entrada 280ms, salida más rápida (180ms). */
.demo-modal { width: min(1120px, calc(100% - 32px)); height: min(92vh, 940px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 24px;
  overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 40px 120px -20px rgba(0,0,0,0.45);
  opacity: 0; transform: scale(0.96) translateY(10px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), overlay 180ms allow-discrete, display 180ms allow-discrete; }
.demo-modal[open] { display: flex; flex-direction: column; opacity: 1; transform: none; transition-duration: 280ms; }
@starting-style { .demo-modal[open] { opacity: 0; transform: scale(0.96) translateY(10px); } }
.demo-modal::backdrop { background: rgba(10,10,15,0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background 180ms var(--ease-out), backdrop-filter 180ms var(--ease-out), overlay 180ms allow-discrete, display 180ms allow-discrete; }
.demo-modal[open]::backdrop { background: rgba(10,10,15,0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition-duration: 280ms; }
@starting-style { .demo-modal[open]::backdrop { background: rgba(10,10,15,0); backdrop-filter: blur(0); } }
.demo-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.demo-modal-head h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.demo-modal-head p { color: var(--muted); margin-top: 4px; font-size: 16px; }
.demo-modal-head a { color: var(--accent); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .demo-modal-head a:hover { text-decoration: underline; } }
.demo-modal-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink); font-size: 16px; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out); }
.demo-modal-close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .demo-modal-close:hover { background: #e8e8ed; } }
.demo-modal-body { position: relative; flex: 1; min-height: 0; background: var(--bg-soft); }
.demo-modal-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .demo-modal { width: 100%; height: 100dvh; border-radius: 0; } .demo-modal-head { padding: 16px 18px 14px; } }
@media (prefers-reduced-motion: reduce) { .demo-modal, .demo-modal::backdrop { transition: none !important; } }

/* Ventana del demo: dos vistas (demo / formulario) con fundido y desenfoque */
.demo-modal[data-mode="contact"] .m-demo, .demo-modal:not([data-mode="contact"]) .m-contact { display: none; }
.demo-modal-back { font: inherit; font-size: 16px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .demo-modal-back:hover { text-decoration: underline; } }
.pane { position: absolute; inset: 0; opacity: 0; filter: blur(6px); transform: scale(0.99); pointer-events: none;
  transition: opacity 260ms var(--ease-out), filter 260ms var(--ease-out), transform 260ms var(--ease-out); }
.pane iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.demo-modal[data-mode="demo"] .pane-demo, .demo-modal[data-mode="contact"] .pane-contact { opacity: 1; filter: none; transform: none; pointer-events: auto; }
.pane-contact { background: #fff; }

/* Desde una tarjeta de la portada: nota en vez de "volver" (para no saltarse el formulario) */
.demo-modal[data-from="card"] .demo-modal-back, .demo-modal:not([data-from="card"]) .m-note { display: none; }

.pane.loaded .demo-modal-loading { display: none; }
