/* Estilos de página ARCEUS STORE v2, sobre design-tokens.css.
   Presupuesto de blur: solo la alerta del hero, los planes y la clave usan backdrop-filter;
   el resto son paneles de vidrio "planos" (translúcidos, sin blur). */
img, svg { max-width: 100%; }
.err { color: var(--danger); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--sp-4); top: var(--sp-4); z-index: 10; background: var(--bg-3); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); }

/* Paneles planos de vidrio (sin blur) */
#features .card, .steps li, details, .note {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: var(--noise), linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02) 60%);
}

/* Barra superior */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-4); }
.brand { font: 700 1.1rem/1 var(--font-display); letter-spacing: -.04em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand span { color: var(--accent-2); text-shadow: 0 0 14px var(--accent-2); }
.topbar a:not(.brand) { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--text-2); padding-block: var(--sp-2); }
.topbar a:not(.brand):hover { color: var(--text); }

/* Hero: texto + tarjeta de alerta inclinada en 3D */
.hero { padding-block: var(--sp-6) var(--sp-8); display: grid; gap: var(--sp-7); align-items: center; }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(1.85rem, 1.2rem + 3.2vw, 3.4rem); font-weight: 600; letter-spacing: -.05em; overflow-wrap: anywhere; background: linear-gradient(180deg, #fff 30%, #aeb6d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tag { font-size: var(--fs-md); color: var(--text-2); max-width: 46ch; margin-bottom: var(--sp-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.alert-wrap { perspective: var(--persp); }
.alert { padding: var(--sp-5); overflow: hidden; box-shadow: var(--shadow-2), var(--glow-buy); }
.alert-bar { position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--sig-buy), transparent); box-shadow: 0 0 18px var(--sig-buy); }
.alert-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-3); }
.alert-head strong { color: var(--text-2); font-weight: 600; }
.alert-sym { font: 600 var(--fs-sm)/1 var(--font-mono); color: var(--text-2); margin-top: var(--sp-5); }
.alert-signal { font: 700 clamp(1.6rem, 15cqi, 3rem)/1 var(--font-display); letter-spacing: -.05em; white-space: nowrap; color: var(--sig-buy); text-shadow: 0 0 32px rgba(78, 227, 164, .45); margin: var(--sp-2) 0 var(--sp-3); }
.alert-meta { font: 400 var(--fs-sm)/1.5 var(--font-mono); color: var(--text-3); margin: 0 0 var(--sp-5); }
.alert-all { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.alert-all p { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: var(--sp-3); }
.alert-all div { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.alert-all .badge { font-size: var(--fs-xs); }

/* Secciones */
.section > .container > h2 { margin-bottom: var(--sp-5); }
.section-lead { color: var(--text-2); margin-bottom: var(--sp-6); }
.grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.grid > * { min-width: 0; }
.card h3 { margin-bottom: var(--sp-2); }
.card p:last-child { margin-bottom: 0; }

/* Pasos (secuencia real) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); counter-reset: paso; }
.steps li { counter-increment: paso; position: relative; padding: var(--sp-5) var(--sp-5) var(--sp-5) 4.2rem; border: 1px solid var(--line); border-radius: var(--r-lg); }
.steps li::before { content: counter(paso); position: absolute; left: var(--sp-5); top: var(--sp-5); width: 2rem; height: 2rem; display: grid; place-items: center; font: 600 var(--fs-sm)/1 var(--font-mono); color: var(--accent-ink); background: var(--accent-grad); border-radius: var(--r-pill); box-shadow: 0 0 20px rgba(154, 140, 255, .45); }
.steps h3 { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.steps p { margin: 0; font-size: var(--fs-sm); }

/* Planes */
.plan { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6) var(--sp-5); }
.plan h3 { margin: 0; }
.price { font-size: clamp(2rem, 8vw, 2.7rem); font-weight: 600; color: var(--text); line-height: 1.1; }
.price small { display: inline-block; white-space: nowrap; font-size: var(--fs-sm); font-weight: 400; color: var(--text-3); margin-left: .35em; }
.plan p { flex: 1; font-size: var(--fs-sm); }
.plan .btn { width: 100%; }
#err { margin-top: var(--sp-4); }

/* Preguntas frecuentes: acordeones de vidrio */
details { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--sp-3); transition: border-color var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease); }
details:hover { border-color: var(--line-strong); }
details[open] { border-color: rgba(154, 140, 255, .45); background-color: rgba(154, 140, 255, .05); }
summary { cursor: pointer; padding: var(--sp-4) var(--sp-5); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.4rem/1 var(--font-mono); color: var(--accent-2); flex: none; transition: transform var(--dur-base) var(--ease-spring); }
details[open] summary::after { transform: rotate(135deg); }
details[open] p { animation: faq-in var(--dur-slow) var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
details p { padding: 0 var(--sp-5) var(--sp-4); margin: 0; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding-block: var(--sp-6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-3); }
.footer a { color: var(--text-2); }

/* Páginas estrechas: éxito y gestión */
.narrow { max-width: 540px; padding-block: var(--sp-6) var(--sp-8); }
.narrow h1 { font-size: var(--fs-xl); margin-top: var(--sp-5); }
.narrow .btn { width: 100%; }
.status { font-weight: 600; color: var(--text); }
.panel { padding: var(--sp-5); margin-top: var(--sp-5); }
.key { font: 500 clamp(.9rem, 4vw, 1.3rem)/1.4 var(--font-mono); letter-spacing: .02em; color: var(--text); background: rgba(0, 0, 0, .55); border: 1px dashed var(--accent); border-radius: var(--r-md); padding: var(--sp-5) var(--sp-4); overflow-wrap: anywhere; text-align: center; margin: var(--sp-3) 0 var(--sp-4); box-shadow: inset 0 0 30px rgba(154, 140, 255, .1); }
.note { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0; }
.note ol { margin: var(--sp-3) 0 0; padding-left: 1.25rem; color: var(--text-2); }
.note li { margin-bottom: var(--sp-2); }
.back { display: inline-block; margin-top: var(--sp-5); font-size: var(--fs-sm); }

/* Escritorio */
@media (min-width: 720px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: var(--sp-8); padding-block: var(--sp-8) var(--sp-9); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 4.2rem var(--sp-5) var(--sp-5); }
  #plans { max-width: 820px; }
}
@media (min-width: 1000px) {
  #features { grid-template-columns: repeat(4, 1fr); }
}

/* Páginas legales (terms / privacy) */
.legal { max-width: 70ch; padding-block: var(--sp-6) var(--sp-8); overflow-wrap: anywhere; }
.legal h1 { font-size: var(--fs-xl); margin-top: var(--sp-5); }
.legal h2 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.legal p, .legal li { color: var(--text-2); line-height: var(--lh-body); }
.legal ul { padding-left: 1.25rem; }
.legal .langs { display: flex; gap: var(--sp-4); margin-top: var(--sp-4); font-size: var(--fs-sm); font-weight: 600; }
.legal .meta, .legal .draft { font-size: var(--fs-sm); color: var(--text-3); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--sp-7); }
.legal-links { margin-top: var(--sp-6); font-size: var(--fs-xs); color: var(--text-3); }
.legal-links a { color: var(--text-3); }
.legal-links a:hover { color: var(--text-2); }

@media (max-width: 480px) {
  .alert-wrap { perspective: none; }
  .alert { padding: var(--sp-4); }
}

/* El tamaño de la señal se adapta al ancho de su tarjeta */
.alert-card, .glass.tilt { container-type: inline-size; }

/* Texto legal pequeño en planes */
.fineprint { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.4; margin-block: var(--sp-2); }

/* ===== Nivel 2: conversión, estados y accesibilidad ===== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus { left: var(--sp-4); }
html { scroll-behavior: smooth; scroll-padding-top: var(--sp-5); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Hero: jerarquía de CTA */
.btn--lg { min-height: 56px; padding-inline: 2rem; font-size: var(--fs-md); }
.btn-link { display: inline-flex; align-items: center; min-height: 48px; padding-inline: var(--sp-3); font-weight: 600; color: var(--text-2); text-underline-offset: .25em; }
.btn-link:hover { color: var(--text); }
.hero-actions { align-items: center; }
.trust { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); color: var(--text-2); }
.trust li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.trust li::before { content: "\2713"; color: var(--sig-buy); font-weight: 700; }

/* Esqueletos de carga */
.sk-card { min-height: 120px; }
.sk-plan { min-height: 360px; }
.sk-line { height: 1rem; margin-bottom: var(--sp-3); }
.sk-key { height: 4rem; margin-block: var(--sp-3); }
#sk[hidden], #box[hidden], #retrybox[hidden], #cfg-err[hidden], .sticky-cta[hidden] { display: none; }

/* Planes: comparación clara */
#plans { max-width: 860px; align-items: stretch; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.pill { font: 600 var(--fs-xs)/1 var(--font-body); padding: .4rem .7rem; border-radius: var(--r-pill); color: var(--accent-ink); background: var(--accent-grad); }
.equiv { flex: none !important; margin: calc(var(--sp-2) * -1) 0 0 !important; font-family: var(--font-mono); font-size: var(--fs-sm) !important; color: var(--sig-buy) !important; }
.plan-list { list-style: none; margin: 0; padding: var(--sp-3) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-2); }
.plan-list li { display: flex; gap: var(--sp-2); }
.plan-list li::before { content: "\2713"; color: var(--sig-buy); font-weight: 700; flex: none; }
.plan .fineprint { color: var(--text-2); }
.plan .btn { min-height: 52px; margin-top: var(--sp-2); }
.card--accent.plan { padding-top: var(--sp-6); }
.section-lead { max-width: 60ch; }

/* Barra CTA fija (móvil) */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 20; padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom)); background: rgba(5, 6, 10, .94); border-top: 1px solid var(--line-strong); }
.sticky-cta .btn { width: 100%; }
@media (min-width: 720px) { .sticky-cta { display: none !important; } }
@media (max-width: 719px) { .footer { padding-bottom: 5.5rem; } }

/* FAQ */
details summary { padding-block: var(--sp-4); }
details summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
details p { color: var(--text-2); line-height: var(--lh-body); }

/* Formularios: validación en línea */
.hint { margin: calc(var(--sp-3) * -1) 0 var(--sp-4); font-size: var(--fs-xs); color: var(--text-3); }
.field-err { margin: calc(var(--sp-3) * -1) 0 var(--sp-4); font-size: var(--fs-sm); color: var(--danger); }
.field-err[hidden] { display: none; }
input[aria-invalid="true"] { border-color: var(--danger) !important; }
.status.err { color: var(--danger); }
.err { color: var(--danger); }
#m:empty, #err:empty { display: none; }
#m:not(:empty), #err:not(:empty) { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--danger); border-radius: var(--r-md); background: var(--sig-sell-bg); }
.fineprint { color: var(--text-2); }

/* Legales: lectura cómoda e índice */
.legal { font-size: 1.0625rem; }
.legal p, .legal li { line-height: 1.7; max-width: 68ch; }
.legal h2 { scroll-margin-top: var(--sp-5); border-top: 1px solid var(--line); padding-top: var(--sp-5); font-size: var(--fs-md); }
.legal .toc { margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-md); }
.legal .toc strong { display: block; margin-bottom: var(--sp-2); font-size: var(--fs-sm); color: var(--text-2); }
.legal .toc ol { margin: 0; padding-left: 1.25rem; columns: 2 16rem; font-size: var(--fs-sm); }
.legal .toc li { margin-bottom: var(--sp-1); }
.legal .langs a { display: inline-flex; min-height: 44px; align-items: center; }
.legal-links a { display: inline-block; padding-block: var(--sp-2); }

/* Móvil: sin efectos pesados */
@media (max-width: 480px) { .btn::after { display: none; } .ambient::before { animation: none; } }

/* Rendimiento: el ruido SVG (feTurbulence) es caro de rasterizar; fuera en vez de pintar cada panel */
:root { --noise: linear-gradient(transparent, transparent); }
