/* ===== 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) */
.gt { background: linear-gradient(to right, var(--g200), var(--a200), var(--g50), var(--a300), var(--g200)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradient 6s linear infinite; }
@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 { background: linear-gradient(to right, var(--a500), var(--a200)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== 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: 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; }
}
