/* =============================================================
   Web pública y cuentas · estilo «Nocturno»
   ============================================================= */
:root {
  --bg: #0B0D12;
  --surface: #12151C;
  --surface-2: #1A1F29;
  --line: #1E2430;
  --line-2: #2A3140;
  --text: #ECEFF4;
  --muted: #A3ABBD;
  --subtle: #8A93A6;
  --accent: #FFCC00;
  --accent-hover: #FFD633;
  --violet: #8B7CF6;
  --teal: #4FD1C5;
  --danger: #FF6B6B;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.03em; line-height: 1.08; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #0B0D12; border: 0; border-radius: 999px;
  padding: 15px 26px; font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-hover); color: #0B0D12; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Cabecera y pie ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 24px 32px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 18px var(--font-display); color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.logo-mark span { width: 10px; height: 10px; border-radius: 50%; background: var(--bg); }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--subtle); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a.strong { color: var(--text); }
.site-footer { max-width: 1240px; margin: 0 auto; padding: 32px; display: flex; gap: 24px; flex-wrap: wrap; color: var(--subtle); border-top: 1px solid var(--line); font-size: 14px; }
.site-footer .logo { margin-right: auto; font-size: 15px; }
.site-footer .logo-mark { width: 22px; height: 22px; }
.site-footer .logo-mark span { width: 7px; height: 7px; }
.site-footer a { color: var(--subtle); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Landing ---------- */
.landing main { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.hero { padding: 72px 0 36px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; max-width: 15ch; }
.hero .lead { margin: 0; font-size: 20px; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .fine { margin: 0; color: var(--subtle); font-size: 14px; }

/* Demo de la sala en directo */
.dm { --dm-bg: #07080B; margin: 18px auto 0; max-width: 1180px; border-radius: 22px; overflow: hidden; background: var(--dm-bg); box-shadow: 0 0 0 1px var(--line-2), 0 40px 120px -40px rgba(255, 204, 0, .25), 0 30px 80px -30px rgba(0, 0, 0, .8); font-size: 13px; color: var(--text); text-align: left; user-select: none; }
.dm svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dm-chrome { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dm-dots { display: flex; gap: 6px; } .dm-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.dm-title { display: inline-flex; align-items: center; gap: 9px; font: 600 14px var(--font-display); letter-spacing: -.01em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-live { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 107, 107, .18); }
.dm-chips { display: flex; gap: 6px; flex: none; }
.dm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.dm-chip b { color: var(--text); letter-spacing: .06em; }
.dm-rec { color: #FFB4B4; background: rgba(255, 107, 107, .12); }
.dm-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.dm.animate .dm-rec i, .dm.animate .dm-live { animation: dm-blink 1.6s ease-in-out infinite; }

.dm-main { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; padding: 0 12px; }
.dm-stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dm-screen { position: relative; aspect-ratio: 16 / 8.4; border-radius: 16px; background: #0E1118; box-shadow: inset 0 0 0 1px var(--line); padding: 14px; }
.dm-slide { height: 100%; border-radius: 10px; padding-right: 27% !important; background: linear-gradient(145deg, #F7F4EE, #ECE6DA); color: #1A1F29; padding: 5% 6%; display: flex; flex-direction: column; }
.dm-kicker { font: 700 clamp(9px, 1.1vw, 12px) var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #B7791F; }
.dm-slide-body { flex: 1; display: grid; grid-template-columns: .9fr 1.4fr; align-items: end; gap: 6%; padding-top: 3%; }
.dm-kpi b { display: block; font: 700 clamp(30px, 5.4vw, 64px)/1 var(--font-display); letter-spacing: -.05em; }
.dm-kpi span { display: block; margin-top: 10px; color: #5A6172; font-size: clamp(10px, 1.2vw, 14px); line-height: 1.35; }
.dm-chart { height: 100%; min-height: 60px; display: flex; align-items: flex-end; gap: 7%; border-bottom: 2px solid #D5CCBC; }
.dm-chart span { flex: 1; height: var(--h); display: flex; align-items: flex-end; }
.dm-chart i { display: block; width: 100%; height: 100%; border-radius: 5px 5px 0 0; background: #C9BEA9; transform-origin: bottom; }
.dm-chart span:last-child i { background: #F5A524; }
.dm.animate .dm-chart i { animation: dm-grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.dm-chart span:nth-child(2) i { animation-delay: .08s; } .dm-chart span:nth-child(3) i { animation-delay: .16s; } .dm-chart span:nth-child(4) i { animation-delay: .24s; } .dm-chart span:nth-child(5) i { animation-delay: .32s; } .dm-chart span:nth-child(6) i { animation-delay: .4s; }
.dm-slide-foot { display: flex; margin-top: 6px; padding-left: 41%; font-size: clamp(8px, .9vw, 11px); color: #8A8F9C; }
.dm-slide-foot span { flex: 1; text-align: center; }
.dm-screen-label { position: absolute; left: 24px; bottom: 22px; padding: 4px 10px; border-radius: 8px; background: rgba(7, 8, 11, .72); color: var(--text); font-size: 12px; }

.dm-tile { position: relative; overflow: hidden; border-radius: 12px; background: var(--tone, #1C2230); display: grid; place-items: center; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .3s ease; }
.dm-cam { background: radial-gradient(120% 90% at 30% 15%, var(--c2), var(--c1) 70%); }
.dm .dm-person { width: 62%; height: 78%; align-self: end; fill: rgba(236, 239, 244, .18); stroke: none; }
.dm-tile.speaking { box-shadow: inset 0 0 0 2.5px var(--accent); }
.dm-initials { width: 38%; aspect-ratio: 1; max-width: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font: 600 13px var(--font-display); }
.dm-name { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 12px); padding: 2px 7px; border-radius: 6px; background: rgba(7, 8, 11, .6); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-mute { color: var(--danger); flex: none; }
.dm-pip { position: absolute; right: 26px; bottom: 26px; width: 22%; aspect-ratio: 4 / 3; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.dm-pip.speaking { box-shadow: inset 0 0 0 2.5px var(--accent), 0 10px 30px rgba(0, 0, 0, .45); }
.dm-wave { display: none; align-items: flex-end; gap: 2px; height: 10px; }
.speaking .dm-wave { display: inline-flex; }
.dm-wave i { width: 2px; height: 40%; border-radius: 2px; background: var(--accent); }
.dm.animate .dm-wave i { animation: dm-wave .9s ease-in-out infinite; } .dm-wave i:nth-child(2) { animation-delay: .15s !important; } .dm-wave i:nth-child(3) { animation-delay: .3s !important; }
.dm-hand { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); font-size: 13px; transition: transform .3s ease, opacity .3s ease; }
.dm-hand.down { transform: translateY(-6px) scale(.7); opacity: 0; }

.dm-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dm-strip .dm-tile { aspect-ratio: 4 / 3; }
.dm-more { background: var(--surface-2); color: var(--muted); display: flex; flex-direction: column; justify-content: center; text-align: center; line-height: 1.2; font-size: 11px; }
.dm-more b { font: 600 17px var(--font-display); color: var(--text); }

.dm-side { display: flex; flex-direction: column; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-height: 0; overflow: hidden; }
.dm-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; gap: 4px; border-bottom: 1px solid var(--line); }
.dm-tabs span { padding: 7px; border-radius: 8px; text-align: center; color: var(--subtle); }
.dm-tabs .on { background: var(--surface-2); color: var(--text); }
.dm-chat { flex: 1; list-style: none; margin: 0; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; }
.dm-chat li { color: var(--muted); line-height: 1.4; }
.dm-chat b { display: block; color: var(--who); font-size: 11.5px; font-weight: 700; }
.dm-chat li.new { animation: dm-in .45s ease both; }
.dm-input { display: flex; justify-content: space-between; align-items: center; margin: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--subtle); font-size: 12px; }
.dm-input span { padding: 4px 10px; border-radius: 7px; background: var(--accent); color: #0B0D12; font-weight: 700; }

.dm-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.dm-group { display: flex; gap: 6px; }
.dm-btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; padding: 7px 8px; border-radius: 12px; background: var(--surface-2); color: var(--text); }
.dm-btn svg { width: 18px; height: 18px; }
.dm-btn em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.dm-btn.on { background: rgba(255, 204, 0, .14); color: var(--accent); }
.dm-btn.rec { color: var(--danger); } .dm-btn.rec .fill { fill: currentColor; stroke: none; }
.dm-leave { padding: 9px 16px; border-radius: 12px; background: var(--danger); color: #1A0B0B; font-weight: 700; }

@keyframes dm-blink { 50% { opacity: .35; } }
@keyframes dm-grow { from { transform: scaleY(0); } }
@keyframes dm-wave { 50% { height: 100%; } }
@keyframes dm-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
  .dm-main { grid-template-columns: 1fr; }
  .dm-side { display: none; }
  .dm-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dm-hide-sm { display: none !important; }
}
@media (max-width: 560px) {
  .dm { border-radius: 16px; font-size: 12px; }
  .dm-strip .dm-name, .dm-strip .dm-hand { display: none; }
  .dm-slide { padding-right: 33% !important; } .dm-slide-foot { padding-left: 38%; }
  .dm-pip .dm-name { font-size: 9px; padding: 1px 5px; }
  .dm-chrome { display: none; }
  .dm-chips .dm-chip:nth-child(2) { display: none; }
  .dm-screen { padding: 8px; aspect-ratio: 16 / 10; }
  .dm-screen-label { display: none; }
  .dm-pip { right: 14px; bottom: 14px; width: 30%; }
  .dm-kpi b { font-size: 26px; }
  .dm-btn { min-width: 0; padding: 8px; } .dm-btn em { display: none; }
  .dm-leave { padding: 8px 12px; }
}

.section { padding: 96px 0 24px; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; max-width: 20ch; }
.section .intro { color: var(--muted); font-size: 18px; max-width: 560px; margin: 14px 0 0; }
.features { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.features li { background: var(--surface); border-radius: 20px; padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.features .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); margin-bottom: 18px; }
.features li:nth-child(3n+2) .ic { color: var(--violet); }
.features li:nth-child(3n) .ic { color: var(--teal); }
.features h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; counter-reset: step; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; padding: 26px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #0B0D12; font: 700 18px var(--font-display); margin-bottom: 18px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Precios */
.price-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.price-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.price-toggle button { border: 0; background: transparent; color: var(--muted); font: 600 14px var(--font-body); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.price-toggle button.on { background: var(--accent); color: #0B0D12; }
.price-toggle em { font-style: normal; font-size: 12px; opacity: .8; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.plans.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plans-4 .plan { padding: 28px 22px 22px; }
.plans-4 .plan-price b { font-size: 40px; }
@media (max-width: 1100px) { .plans.plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plans.plans-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.plans-5 .plan { padding: 26px 18px 20px; }
.plans-5 .plan h3 { font-size: 19px; }
.plans-5 .plan-price b { font-size: 34px; }
.plans-5 .plan ul { font-size: 13.5px; }
@media (max-width: 1240px) { .plans.plans-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .plans.plans-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.plan.featured { background: linear-gradient(180deg, rgba(255, 204, 0, .09), var(--surface) 55%); box-shadow: 0 0 0 1.5px var(--accent); }
.plan-tag { position: absolute; top: -12px; left: 26px; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #0B0D12; font: 700 12px var(--font-body); }
.plan h3 { font-size: 22px; letter-spacing: -0.02em; }
.plan-price { margin: 16px 0 0; display: flex; align-items: baseline; gap: 4px; }
.plan-price b { font: 700 46px/1 var(--font-display); letter-spacing: -0.04em; }
.plan-price span { color: var(--muted); font-size: 16px; }
.plan-vat { margin: 4px 0 0; color: var(--subtle); font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan .btn { justify-content: center; text-align: center; }
.passes { margin-top: 16px; padding: 26px; border-radius: 22px; background: var(--surface-2); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.passes h3 { font-size: 20px; }
.passes p { margin: 6px 0 0; color: var(--muted); max-width: 520px; }
.passes ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.passes li { display: flex; flex-direction: column; padding: 12px 18px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.passes li b { font: 700 24px var(--font-display); color: var(--accent); }
.passes li span { color: var(--muted); font-size: 13px; }
.price-fine { margin-top: 18px; color: var(--subtle); font-size: 14px; }

.invited { padding: 88px 0 96px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.invited h2 { font-size: clamp(28px, 3vw, 38px); }
.invited p { color: var(--muted); margin: 0 0 8px; }
.code-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.code-form input {
  font: 700 22px var(--font-display); letter-spacing: .2em; text-transform: uppercase; text-align: center;
  width: 11em; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
}
.code-form input::placeholder { color: #4A5366; }
.code-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 204, 0, .2); }

/* ---------- Páginas de cuenta ---------- */
.account { min-height: 100vh; display: flex; flex-direction: column; }
.account-main { flex: 1; display: grid; place-items: start center; padding: 32px 16px 72px; }
.panel { width: 100%; max-width: 440px; background: var(--surface); border-radius: 24px; padding: 34px 30px; box-shadow: 0 0 0 1px var(--line); }
.panel h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.panel .sub { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.panel form > div { margin-bottom: 16px; }
.panel label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 14px; color: var(--muted); }
.panel input[type=text], .panel input[type=email], .panel input[type=password] {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: 16px var(--font-body);
}
.panel input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 204, 0, .2); }
.panel small { display: block; color: var(--subtle); font-size: 13px; margin-top: 6px; }
.panel .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text); font-size: 14px; }
.panel .check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.panel .row-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 14px; flex-wrap: wrap; color: var(--subtle); }
.panel .row-links a { text-decoration: none; font-weight: 600; }
.panel ul { margin: 7px 0 0; padding: 0; list-style: none; color: var(--danger); font-size: 14px; }
.alert { border-radius: 14px; padding: 12px 15px; margin-bottom: 18px; font-size: 14px; }
.alert-danger { background: rgba(255, 107, 107, .12); color: #FF9A9A; }

/* ---------- Texto legal ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 24px 32px 80px; color: var(--muted); }
.prose h1 { font-size: 40px; margin-bottom: 20px; color: var(--text); }
.prose h2 { font-size: 22px; margin: 34px 0 8px; color: var(--text); }
.prose strong { color: var(--text); }
.placeholder-note { background: rgba(255, 204, 0, .12); color: var(--text); padding: 14px 18px; border-radius: 14px; }

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  .features, .steps { grid-template-columns: 1fr; }
  .plans, .plans.plans-4, .plans.plans-5 { grid-template-columns: 1fr; }
  .site-nav .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .site-header, .landing main, .site-footer { padding-left: 18px; padding-right: 18px; }
  .site-nav { gap: 14px; }
  .hero { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.plan li.no { color: var(--subtle); }
.plan li.no::before { border: 0; width: 10px; height: 2px; top: 11px; left: 3px; transform: none; background: var(--subtle); }

/* ---------- Efectos al hacer scroll (site-motion.js) ---------- */
html { scroll-behavior: smooth; }
.motion .reveal { opacity: 0; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.motion .reveal-up { transform: translateY(28px); }
.motion .reveal-zoom { transform: translateY(40px) scale(.96); transition-duration: .9s, 1.1s; }
.motion .reveal-fade { transform: none; }
.motion .reveal.is-visible { opacity: 1; transform: none; }
.motion .features > li.is-visible .ic { animation: ic-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--reveal-delay, 0ms) + 150ms); }
@keyframes ic-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.motion .steps > li.is-visible::before { animation: ic-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--reveal-delay, 0ms) + 120ms); }

/* Tarjetas: se elevan un poco al pasar el ratón */
.features > li, .plans > .plan { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.motion .features > li.is-visible:hover, .motion .plans > .plan.is-visible:hover { transform: translateY(-4px); }
.plans > .plan:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.plans > .plan.featured:hover { box-shadow: 0 0 0 1.5px var(--accent), 0 18px 40px rgba(0, 0, 0, .35); }

/* Cabecera fija con fondo al bajar */
.landing .site-header { position: sticky; top: 0; z-index: 30; max-width: none; padding-left: max(32px, calc((100% - 1240px) / 2 + 32px)); padding-right: max(32px, calc((100% - 1240px) / 2 + 32px)); transition: background .3s ease, box-shadow .3s ease, padding .3s ease; }
.landing .site-header.scrolled { background: rgba(11, 13, 18, .82); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); padding-top: 14px; padding-bottom: 14px; }

/* Botón «Volver arriba» */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border: 0; border-radius: 50%; padding: 0; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s ease, transform .3s ease, background .2s ease, color .2s ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #0B0D12; }
.to-top:hover .to-top-arrow { transform: translateY(-2px); }
.to-top-arrow { position: relative; transition: transform .2s ease; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 2.5; stroke: rgba(255, 255, 255, .08); }
.to-top-ring circle.p { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top:hover .to-top-ring circle.p { stroke: #0B0D12; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* Enlace «Volver arriba» del pie */
.site-footer .footer-top { display: inline-flex; align-items: center; gap: 6px; }
.site-footer .footer-top svg { transition: transform .2s ease; }
.site-footer .footer-top:hover svg { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.landing .site-footer { padding-right: 96px; }
.landing [id] { scroll-margin-top: 84px; }
@media (max-width: 640px) { .landing .site-footer { padding-right: 72px; } }
/* Plan a medida */
.plan.plan-custom { background: linear-gradient(180deg, rgba(255, 255, 255, .03), var(--surface) 60%); box-shadow: 0 0 0 1px var(--line), inset 0 0 0 1px rgba(255, 204, 0, .08); }
.plan.plan-custom .plan-price b { font-size: 34px; }
/* Selector de idioma */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font: 600 12px var(--font-body); }
.lang-switch a, .lang-switch span { padding: 4px 8px; border-radius: 999px; color: var(--muted); text-decoration: none; line-height: 1; }
.lang-switch a:hover { color: var(--text); }
.lang-switch .on { background: var(--accent); color: #0B0D12; }

/* ---- Páginas legales (seguridad, encargado del tratamiento) ---- */
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .55em; }
.prose a { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--landing-border, rgba(255,255,255,.12)); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.legal-footer { flex-wrap: wrap; }
@media (max-width: 600px) { .prose { padding: 16px 16px 60px; } .prose h1 { font-size: 30px; } }
