/* ===== Armonía Viral v2 — estilos compartidos (basado en Open PRO de Cruip) ===== */
/* ===== Fuentes (Nacelle viene de la plantilla Open PRO) ===== */
@font-face { font-family: "Nacelle"; src: url("fonts/nacelle-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nacelle"; src: url("fonts/nacelle-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ===== Tokens ===== */
:root {
  --g950: #030712; --g900: #111827; --g800: #1f2937; --g700: #374151; --g600: #4b5563; --g500: #6b7280;
  --g300: #d1d5db; --g200: #e5e7eb; --g50: #f9fafb;
  /* Acento: verde de la marca */
  --a600: #00b82f; --a500: #00e63a; --a300: #7dffa0; --a200: #c4ffd2;
  --a-rgb: 0, 230, 58; --a200-rgb: 196, 255, 210; --on-acc: #03140a;
  --warn: #fcd34d; --danger: #f87171;
  --muted: rgba(var(--a200-rgb), 0.65);
  --head: "Nacelle", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1152px;
  color-scheme: dark;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--g950); color: var(--g200); font-family: var(--sans); font-size: 1rem; line-height: 1.55; letter-spacing: -0.0125em; -webkit-font-smoothing: antialiased; }
.page { position: relative; overflow: hidden; isolation: isolate; }
img { max-width: 100%; display: block; }
a { color: var(--a300); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: -0.0268em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* Texto con degradado animado (firma de la plantilla) */
/* Títulos en color sólido (sin texto con degradado): se ven igual en Safari, Chrome, Brave y con "modo noche". */
.gt { color: #f3fff6; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 0 28px rgba(var(--a-rgb), 0.28); }
@keyframes gradient { to { background-position: 200% center; } }

/* Borde con degradado (técnica de la plantilla con mask) */
.gb { position: relative; }
.gb::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid transparent; background: linear-gradient(to right, var(--g800), var(--g700), var(--g800)) border-box; -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* Etiqueta con líneas a los lados */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 12px; font-size: 0.9rem; }
.eyebrow::before, .eyebrow::after { content: ""; width: 32px; height: 1px; background: linear-gradient(to right, transparent, rgba(var(--a200-rgb), 0.5)); }
.eyebrow::after { background: linear-gradient(to left, transparent, rgba(var(--a200-rgb), 0.5)); }
.eyebrow span { color: var(--a300); }

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; border-radius: 10px; font: 500 1rem/1.2 var(--sans); padding: 15px 22px; text-decoration: none; cursor: pointer; border: 0; transition: background-size 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease; width: 100%; -webkit-tap-highlight-color: transparent; }
.btn-pri { color: var(--on-acc); background-color: var(--a500); background-image: linear-gradient(to top, var(--a600), var(--a500)); background-size: 100% 100%; background-position: bottom; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 30px rgba(var(--a-rgb), 0.25); }
.btn-pri:hover { background-size: 100% 150%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 40px rgba(var(--a-rgb), 0.45); }
.btn-pri:active { transform: scale(0.98); }
.btn-pri .ar { opacity: 0.6; transition: transform 0.2s ease; }
.btn-pri:hover .ar { transform: translateX(3px); }
.btn-pri .ar.down { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
.btn-sec { color: var(--g300); background: linear-gradient(to bottom, var(--g800), rgba(31, 41, 55, 0.6)); background-size: 100% 100%; background-position: bottom; }
.btn-sec:hover { background-size: 100% 150%; }
.btn-sm { width: auto; font-size: 0.875rem; padding: 7px 12px; border-radius: 8px; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-pulse { animation: pulseGlow 2.8s ease-in-out infinite; }
@keyframes pulseGlow { 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 6px rgba(var(--a-rgb), 0.12), 0 10px 44px rgba(var(--a-rgb), 0.5); } }
@media (min-width: 640px) { .btn { width: auto; } .btn-block { width: 100%; } }

/* ===== Formas difuminadas de fondo (recreadas en CSS para que tomen el color de acento) ===== */
.blur { position: absolute; z-index: -1; pointer-events: none; width: 760px; height: 668px; filter: blur(46px); }
.blur i { position: absolute; inset: 0; clip-path: polygon(12.2% 13.9%, 87.8% 71.8%, 44.8% 86.1%); background: linear-gradient(160deg, rgba(var(--a-rgb), 0.8), rgba(var(--a-rgb), 0.32) 38%, rgba(var(--a-rgb), 0) 100%); }
.blur.gray i { background: linear-gradient(160deg, rgba(156, 163, 175, 0.5), rgba(156, 163, 175, 0.18) 38%, transparent); }
.rays { position: absolute; left: 50%; top: 0; z-index: -1; width: 846px; height: 594px; transform: translateX(-25%); pointer-events: none; }
.rays .blur { width: 846px; height: 594px; filter: blur(40px); }
.rays .r1 i { clip-path: polygon(11.3% 3.2%, 79.2% 68.2%, 40.6% 84.3%); }
.rays .r2 i { clip-path: polygon(20.8% 0%, 88.7% 58.1%, 50.1% 74.1%); opacity: 0.7; }
.rays svg { position: absolute; inset: 0; opacity: 0.35; }

/* ===== Banner superior (clase en vivo gratis) ===== */
.banner { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; overflow: hidden; background: linear-gradient(to top, var(--a600), var(--a500)); color: var(--on-acc); text-decoration: none; text-align: center; font: 700 0.8rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 0 40px rgba(var(--a-rgb), 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.2); }
@media (min-width: 768px) { .banner { font-size: 0.92rem; padding: 13px 24px; } }
.banner::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg); animation: bannerSheen 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes bannerSheen { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.banner .b-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--on-acc); box-shadow: 0 0 0 3px rgba(3, 20, 10, 0.18); animation: blink 1.4s ease-in-out infinite; }
.banner .b-txt b { font-weight: 800; }
.banner .b-date { display: block; font-weight: 600; letter-spacing: 0.05em; }
@media (min-width: 640px) { .banner .b-date { display: inline; } .banner .b-date::before { content: " · "; } }

/* ===== Header flotante ===== */
.hdr { position: relative; z-index: 30; margin-top: 8px; }
@media (min-width: 768px) { .hdr { margin-top: 20px; } }
.hdr-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 12px; border-radius: 16px; background: rgba(17, 24, 39, 0.9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--g200); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 1rem; }
.logo svg { width: 28px; height: 28px; flex: none; }
.hdr-live { display: none; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); }
@media (min-width: 768px) { .hdr-live { display: inline-flex; } }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a500); box-shadow: 0 0 10px var(--a500); animation: blink 1.6s ease-in-out infinite; flex: none; }
.dot.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
@keyframes blink { 50% { opacity: 0.35; transform: scale(0.8); } }

/* ===== Footer ===== */
footer { padding: 32px 0 110px; font-size: 0.82rem; color: var(--g500); }
@media (min-width: 900px) { footer { padding-bottom: 48px; } }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; padding-top: 28px; }
footer a { color: var(--g500); text-underline-offset: 3px; }
footer a:hover { color: var(--a300); }
.disclaimer { margin-top: 16px; font-size: 0.74rem; line-height: 1.55; color: var(--g600); max-width: 820px; }

/* ===== Aparición al hacer scroll (como AOS fade-up de la plantilla) ===== */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.15s; } .d2 { transition-delay: 0.3s; } .d3 { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Carpeta de regalos (mockup interactivo; lógica en carpeta.js) ===== */
.folder { --cw: 170px; --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; position: relative; width: 100%; margin: 0 auto; }
.fd-stage { position: relative; width: 100%; height: 340px; transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1); perspective: 1200px; }
.fd-glow { position: absolute; left: 50%; bottom: 0; width: 120%; max-width: 640px; height: 80%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 80%, rgba(var(--a-rgb), 0.22), transparent 62%); filter: blur(10px); pointer-events: none; transition: opacity 0.6s; }
.fd-back, .fd-front { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.fd-back { z-index: 1; border-radius: 4px 16px 16px 16px; background: linear-gradient(to bottom, #172018, #070a08); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 30px 60px rgba(0, 0, 0, 0.55); }
.fd-back::before { content: ""; position: absolute; left: -1px; bottom: 100%; width: 38%; height: 22px; border-radius: 12px 12px 0 0; background: linear-gradient(to top, #172018, #1f2a21); border: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 0; }
.fd-back::after { content: ""; position: absolute; inset: 10px 8px 8px; border-radius: 10px; background: #020403; }
.fd-cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fd-card { position: absolute; left: 50%; bottom: 0; width: var(--cw); aspect-ratio: 560 / 792; margin-left: calc(var(--cw) / -2); transform-origin: 50% 100%; transition: transform 0.7s cubic-bezier(0.34, 1.32, 0.64, 1); will-change: transform; }
.fd-face { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--cw) * 0.05); border: 1px solid rgba(255, 255, 255, 0.16); background: #050806; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s; }
.fd-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fd-face::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 38%); pointer-events: none; }
.folder.open .fd-cards { pointer-events: auto; }
@media (hover: hover) { .folder.open .fd-card:hover .fd-face { transform: translateY(-8px) scale(1.04); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--a-rgb), 0.45), 0 0 40px rgba(var(--a-rgb), 0.25); } }
.fd-cap { position: absolute; left: 0; right: 0; top: calc(100% + 8px); text-align: center; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a300); opacity: 0; transition: opacity 0.4s 0.25s; white-space: nowrap; }
.fd-cap.q { color: var(--g400); }
.folder.open .fd-cap { opacity: 1; }

/* Regalos misteriosos */
.mys { display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, rgba(var(--a-rgb), 0.16), transparent 60%), linear-gradient(to bottom, #07130a, #020503); font-family: var(--mono); }
.mys-code { position: absolute; inset: -40% 0 0; padding: 0 6%; font-size: calc(var(--cw) * 0.05); line-height: 1.35; letter-spacing: 0.35em; word-break: break-all; color: rgba(var(--a-rgb), 0.16); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); animation: mysRain 14s linear infinite; }
@keyframes mysRain { to { transform: translateY(28%); } }
.mys-br { position: absolute; inset: 7%; pointer-events: none; background:
  linear-gradient(var(--a500), var(--a500)) 0 0 / 14% 1.5px, linear-gradient(var(--a500), var(--a500)) 0 0 / 1.5px 10%,
  linear-gradient(var(--a500), var(--a500)) 100% 0 / 14% 1.5px, linear-gradient(var(--a500), var(--a500)) 100% 0 / 1.5px 10%,
  linear-gradient(var(--a500), var(--a500)) 0 100% / 14% 1.5px, linear-gradient(var(--a500), var(--a500)) 0 100% / 1.5px 10%,
  linear-gradient(var(--a500), var(--a500)) 100% 100% / 14% 1.5px, linear-gradient(var(--a500), var(--a500)) 100% 100% / 1.5px 10%;
  background-repeat: no-repeat; opacity: 0.85; }
.mys-k { position: absolute; top: 12%; left: 0; right: 0; text-align: center; font-size: calc(var(--cw) * 0.052); letter-spacing: 0.14em; color: var(--a300); }
.mys-q { position: relative; font-family: var(--head); font-weight: 600; font-size: calc(var(--cw) * 0.62); line-height: 1; color: var(--a500); text-shadow: 0 0 18px rgba(var(--a-rgb), 0.75), 0 0 50px rgba(var(--a-rgb), 0.4); animation: mysPulse 3.2s ease-in-out infinite; }
@keyframes mysPulse { 50% { text-shadow: 0 0 10px rgba(var(--a-rgb), 0.5), 0 0 26px rgba(var(--a-rgb), 0.25); opacity: 0.86; } }
.mys-lock { position: absolute; bottom: 11%; left: 8%; right: 8%; display: flex; align-items: center; justify-content: center; gap: 5px; padding: calc(var(--cw) * 0.03) 0; border-radius: 999px; border: 1px solid rgba(var(--a-rgb), 0.35); background: rgba(3, 20, 10, 0.7); font-size: calc(var(--cw) * 0.05); letter-spacing: 0.1em; color: var(--g200); white-space: nowrap; }
.mys-lock svg { width: calc(var(--cw) * 0.065); height: calc(var(--cw) * 0.065); flex: none; color: var(--a500); }
.mys-scan { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(var(--a-rgb), 0.12) 50%, transparent); height: 30%; animation: mysScan 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes mysScan { from { transform: translateY(-110%); } to { transform: translateY(380%); } }

/* Frente de la carpeta */
.fd-front { z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 0 18px; font: inherit; color: inherit; cursor: pointer; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.16); background: linear-gradient(to bottom, #1d271f, #0b0f0c); box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.08), 0 -20px 40px rgba(0, 0, 0, 0.7); transform-origin: 50% 100%; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.fd-front::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; background: linear-gradient(to right, transparent, rgba(var(--a-rgb), 0.8), transparent); }
.fd-front:focus-visible { outline: 2px solid var(--a500); outline-offset: 4px; }
.fd-label { display: inline-flex; align-items: center; gap: 8px; max-width: 92%; padding: 9px 14px; border-radius: 9px; background: #000; border: 1px solid rgba(0, 0, 0, 0.8); box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.9); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-label i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--a500); box-shadow: 0 0 8px var(--a500); animation: pulse 2s infinite; }
.fd-meta { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g500); }
.folder.peek .fd-front { transform: translateX(-50%) rotateX(-24deg) translateY(8px); }
.folder.open .fd-back, .folder.open .fd-front { opacity: 0; pointer-events: none; }
.folder.open .fd-back { transform: translateX(-50%) translateY(30px) scale(0.92); }
.folder.open .fd-front { transform: translateX(-50%) translateY(40px) scale(0.92); }
.folder.open .fd-glow { opacity: 0.55; }

/* Botón abrir / cerrar */
.fd-toggle { display: flex; align-items: center; gap: 8px; margin: 22px auto 0; padding: 9px 16px; border-radius: 999px; font: inherit; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g300); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fd-toggle:hover { color: var(--a300); border-color: rgba(var(--a-rgb), 0.35); }
.fd-toggle svg { width: 14px; height: 14px; transition: transform 0.4s; }
.folder.open .fd-toggle svg { transform: rotate(180deg); }

/* Versión compacta (página de gracias) */
.folder.compact .fd-label { font-size: 0.66rem; padding: 6px 10px; }
.folder.compact .fd-front { padding-bottom: 10px; gap: 4px; border-radius: 12px; }
.folder.compact .fd-meta { display: none; }
.folder.compact .fd-cap { font-size: 0.56rem; letter-spacing: 0.04em; top: calc(100% + 6px); }
.folder.compact .fd-toggle { display: none; }

@media (prefers-reduced-motion: reduce) {
  .fd-stage, .fd-card, .fd-face, .fd-back, .fd-front { transition: none; }
  .mys-code, .mys-q, .mys-scan { animation: none; }
}

/* ===== Aviso de urgencia (landing) ===== */
.urg-box { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 540px; margin: 18px auto 0; padding: 12px 16px; border-radius: 14px; text-align: left; font-size: 0.98rem; line-height: 1.4; color: #fde68a; background-color: rgba(252, 211, 77, 0.1); border: 1px solid rgba(252, 211, 77, 0.5); box-shadow: 0 0 28px rgba(252, 211, 77, 0.14); animation: urgGlow 2.6s ease-in-out infinite; }
.urg-box b { color: #fff7d6; font-weight: 600; }
.urg-box .dot { width: 10px; height: 10px; }
@keyframes urgGlow { 50% { box-shadow: 0 0 0 4px rgba(252, 211, 77, 0.08), 0 0 36px rgba(252, 211, 77, 0.26); } }
@media (prefers-reduced-motion: reduce) { .urg-box { animation: none; } }
