/* ===========================
   RESET + BASE
   =========================== */
:root{
  --bg1:#EAF7FF;
  --bg2:#D7F0FF;
  --bg3:#BFE7FF;
  --bg4:#9FD7FF;

  --ink:#071427;
  --muted:rgba(7,20,39,.74);

  --card:rgba(255,255,255,.82);
  --card2:rgba(255,255,255,.68);
  --line:rgba(14,76,140,.14);

  --shadow: 0 18px 60px rgba(12,50,90,.14);
  --shadow2: 0 14px 40px rgba(12,50,90,.12);

  --r: 22px;
  --r2: 16px;

  --c1:#0ea5e9;
  --c2:#2563eb;
  --c3:#7c3aed;
  --c4:#f97316;
  --c5:#22c55e;
  --c6:#ec4899;
  --c7:#14b8a6;
  --c8:#f59e0b;

  --font:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  overflow-x:hidden;
  background:
    radial-gradient(1100px 720px at 15% 10%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(1000px 640px at 85% 12%, rgba(124,58,237,.14), transparent 62%),
    radial-gradient(1100px 760px at 60% 95%, rgba(34,197,94,.12), transparent 62%),
    linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg3), var(--bg4));
}

img{ max-width:100%; display:block; }
a{ color:inherit; }
button,input,textarea{ font-family:inherit; }

/* FX */
#fx-layer{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:9999;
}

/* ===========================
   YEAR LINES (2025 → 2026)
   =========================== */
.year-lines{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:2;
  opacity:.35;
  overflow:hidden;
}

.year-line{
  position:absolute;
  left:-40%;
  right:-40%;
  top:12%;
  font-weight:900;
  letter-spacing:.8px;
  white-space:nowrap;
  font-size: clamp(14px, 2.2vw, 20px);
  color: rgba(7,20,39,.35);
  transform: rotate(0deg);
  animation: yearMove 14s linear infinite;
  background: linear-gradient(90deg, rgba(37,99,235,.40), rgba(14,165,233,.35), rgba(124,58,237,.30));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.year-line.alt{
  top:42%;
  animation-duration: 18s;
  background: linear-gradient(90deg, rgba(236,72,153,.32), rgba(14,165,233,.28), rgba(34,197,94,.24));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.year-line.slow{
  top:72%;
  animation-duration: 24s;
  background: linear-gradient(90deg, rgba(245,158,11,.30), rgba(37,99,235,.26), rgba(20,184,166,.26));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

@keyframes yearMove{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(55%); }
}

/* ===========================
   LAYOUT
   =========================== */
.wrap{
  position:relative;
  z-index:3; /* encima de year-lines */
  min-height:100%;
  display:flex;
  justify-content:center;
  padding:22px 14px 28px;
}

.shell{
  width:min(1120px, 100%);
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* ===========================
   MASTHEAD (LOGO ARRIBA)
   =========================== */
.masthead{
  position:relative;
  border-radius: 26px;
  border:1px solid var(--line);
  background:
    radial-gradient(800px 420px at 12% 20%, rgba(14,165,233,.20), transparent 60%),
    radial-gradient(800px 420px at 88% 25%, rgba(124,58,237,.16), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.70));
  box-shadow: var(--shadow);
  overflow:hidden;
}

.mast-glow{
  position:absolute;
  inset:-30px;
  background:
    radial-gradient(520px 260px at 25% 20%, rgba(20,184,166,.22), transparent 62%),
    radial-gradient(520px 260px at 75% 25%, rgba(236,72,153,.16), transparent 62%),
    radial-gradient(560px 300px at 55% 92%, rgba(245,158,11,.16), transparent 62%);
  filter: blur(2px);
  opacity:.85;
  animation: mastPulse 7.5s ease-in-out infinite;
}

@keyframes mastPulse{
  0%{ transform:translateY(0) scale(1); opacity:.78; }
  50%{ transform:translateY(-6px) scale(1.02); opacity:.96; }
  100%{ transform:translateY(0) scale(1); opacity:.78; }
}

.mast-inner{
  position:relative;
  z-index:1;
  padding: 18px 18px 16px;
  text-align:center;
}

.mast-logo{
  width:min(520px, 92%);
  height:auto;
  object-fit:contain;
  margin: 6px auto 8px;
  filter: drop-shadow(0 16px 24px rgba(12,50,90,.18));
}

.mast-title{
  font-weight: 900;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  background: linear-gradient(90deg, var(--c2), var(--c1), var(--c3));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.mast-sub{
  margin-top:6px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

/* ===========================
   HERO
   =========================== */
.hero{
  padding:18px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow2);
  text-align:center;
}

.pill{
  display:inline-flex;
  padding:7px 14px;
  border-radius:999px;
  border:1px solid rgba(14,76,140,.18);
  background: rgba(255,255,255,.78);
  font-weight: 850;
  color: rgba(7,20,39,.82);
}

.hero h1{
  margin:10px 0 8px;
  font-size: clamp(1.55rem, 3.0vw, 2.25rem);
  font-weight: 900;
  background: linear-gradient(90deg, var(--c4), var(--c1), var(--c3));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.hero p{
  margin:0 auto;
  max-width: 84ch;
  color: rgba(7,20,39,.80);
  font-weight: 650;
  line-height:1.65;
}

/* ===========================
   CARD
   =========================== */
.card{
  padding:18px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow2);
}

.card-head h2{
  margin:0;
  font-size: 1.20rem;
  font-weight: 900;
}

.card-head p{
  margin:6px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.card-head.split{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
}

/* Títulos gradiente */
.h2-grad-1{ background:linear-gradient(90deg,var(--c2),var(--c1),var(--c7)); -webkit-background-clip:text; color:transparent; }
.sub-grad-1{ background:linear-gradient(90deg,rgba(37,99,235,.85),rgba(20,184,166,.75)); -webkit-background-clip:text; color:transparent; }

.h2-grad-2{ background:linear-gradient(90deg,var(--c3),var(--c1),var(--c8)); -webkit-background-clip:text; color:transparent; }
.sub-grad-2{ background:linear-gradient(90deg,rgba(124,58,237,.85),rgba(245,158,11,.75)); -webkit-background-clip:text; color:transparent; }

.h2-grad-3{ background:linear-gradient(90deg,var(--c6),var(--c2),var(--c1)); -webkit-background-clip:text; color:transparent; }
.sub-grad-3{ background:linear-gradient(90deg,rgba(236,72,153,.85),rgba(14,165,233,.75)); -webkit-background-clip:text; color:transparent; }

.h2-grad-4{ background:linear-gradient(90deg,var(--c4),var(--c6),var(--c3)); -webkit-background-clip:text; color:transparent; }
.sub-grad-4{ background:linear-gradient(90deg,rgba(249,115,22,.85),rgba(124,58,237,.70)); -webkit-background-clip:text; color:transparent; }

.h2-grad-5{ background:linear-gradient(90deg,var(--c5),var(--c1),var(--c8)); -webkit-background-clip:text; color:transparent; }
.sub-grad-5{ background:linear-gradient(90deg,rgba(34,197,94,.85),rgba(245,158,11,.70)); -webkit-background-clip:text; color:transparent; }

/* ===========================
   SERVICIOS
   =========================== */
.svc-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
}

.svc{
  border-radius: 18px;
  padding:12px 12px;
  border:1px solid rgba(14,76,140,.14);
  font-weight: 800;
  color: rgba(7,20,39,.86);
  box-shadow: 0 10px 30px rgba(12,50,90,.10);
  text-align:center;
  background: rgba(255,255,255,.88);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.svc:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(12,50,90,.16);
  filter: saturate(1.06);
}

.svc-a{ background: linear-gradient(180deg, rgba(14,165,233,.18), rgba(255,255,255,.90)); }
.svc-b{ background: linear-gradient(180deg, rgba(37,99,235,.18), rgba(255,255,255,.90)); }
.svc-c{ background: linear-gradient(180deg, rgba(124,58,237,.16), rgba(255,255,255,.90)); }
.svc-d{ background: linear-gradient(180deg, rgba(20,184,166,.16), rgba(255,255,255,.90)); }
.svc-e{ background: linear-gradient(180deg, rgba(249,115,22,.16), rgba(255,255,255,.90)); }
.svc-f{ background: linear-gradient(180deg, rgba(236,72,153,.14), rgba(255,255,255,.90)); }
.svc-g{ background: linear-gradient(180deg, rgba(245,158,11,.16), rgba(255,255,255,.90)); }
.svc-h{ background: linear-gradient(180deg, rgba(34,197,94,.14), rgba(255,255,255,.90)); }
.svc-i{ background: linear-gradient(180deg, rgba(14,165,233,.14), rgba(255,255,255,.90)); }
.svc-j{ background: linear-gradient(180deg, rgba(124,58,237,.12), rgba(255,255,255,.90)); }
.svc-k{ background: linear-gradient(180deg, rgba(37,99,235,.12), rgba(255,255,255,.90)); }
.svc-l{ background: linear-gradient(180deg, rgba(20,184,166,.12), rgba(255,255,255,.90)); }

/* Marquesina */
.marquee{
  margin-top:12px;
  border-radius:999px;
  border:1px solid rgba(14,76,140,.14);
  background: rgba(255,255,255,.78);
  overflow:hidden;
  height:44px;
  display:flex;
  align-items:center;
}

.marquee-track{
  display:inline-flex;
  gap:14px;
  padding-left:100%;
  white-space:nowrap;
  animation:scroll 15s linear infinite;
  font-weight: 900;
  background: linear-gradient(90deg, var(--c2), var(--c1), var(--c3), var(--c4), var(--c6), var(--c7));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

@keyframes scroll{
  0%{ transform:translateX(0) }
  100%{ transform:translateX(-100%) }
}

/* ===========================
   COUNTDOWN
   =========================== */
.target{
  border:1px solid rgba(14,76,140,.14);
  background: rgba(255,255,255,.78);
  border-radius: 18px;
  padding:10px 12px;
  min-width: 240px;
}

.target-label{
  color: rgba(7,20,39,.68);
  font-weight: 750;
  font-size: .86rem;
}

.target-val{
  margin-top:4px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--c2), var(--c1));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.countdown{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
}

.tbox{
  border:1px solid rgba(14,76,140,.14);
  background: rgba(255,255,255,.82);
  border-radius: 18px;
  padding:14px 10px;
  text-align:center;
  box-shadow: 0 12px 30px rgba(12,50,90,.10);
}

/* NÚMERO SIEMPRE VISIBLE (FIX) */
.tnum{
  font-size: 1.75rem;
  font-weight: 900;
  line-height:1.2;
  color:#0b1a33; /* fallback */
  background:none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.tbox-a .tnum,
.tbox-b .tnum,
.tbox-c .tnum,
.tbox-d .tnum{
  color: transparent !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
}

.tbox-a .tnum{ background: linear-gradient(90deg, #2563eb, #0ea5e9) !important; }
.tbox-b .tnum{ background: linear-gradient(90deg, #7c3aed, #0ea5e9) !important; }
.tbox-c .tnum{ background: linear-gradient(90deg, #f97316, #ec4899) !important; }
.tbox-d .tnum{ background: linear-gradient(90deg, #22c55e, #f59e0b) !important; }

.tlab{
  margin-top:4px;
  color: rgba(7,20,39,.70);
  font-weight: 750;
  font-size:.86rem;
}

/* ===========================
   RADIO
   =========================== */
.radio{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(14,76,140,.14);
  background: rgba(255,255,255,.76);
  border-radius: 22px;
  padding:14px;
  flex-wrap:wrap;
}

.radio-stack{
  display:flex;
  gap:14px;
  align-items:flex-start;
  flex: 1 1 520px;
}

.radio-avaWrap{
  width: 210px;
  height: 210px;
  border-radius: 26px;
  border: 1px solid rgba(14,165,233,.22);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 55px rgba(12,50,90,.14);
  overflow:hidden;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.live-top{
  position:absolute;
  top:10px; left:10px;
  z-index:2;
}

.live{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(34,197,94,.24);
  background: rgba(34,197,94,.12);
  font-weight: 900;
  color: rgba(7,20,39,.92);
}

.live-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--c5);
  box-shadow:0 0 0 6px rgba(34,197,94,.10);
}

.radio-ava{
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1.03);
}

.radio-meta{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding-top:2px;
}

.radio-title{
  font-weight: 900;
  font-size: 1.15rem;
  background: linear-gradient(90deg,var(--c6),var(--c2),var(--c1));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.radio-sub{
  color: rgba(7,20,39,.76);
  font-weight: 750;
}

.radio-right{
  flex: 0 1 360px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

.rctrl{ display:flex; gap:10px; align-items:center; }
.rbtn{
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(14,76,140,.16);
  background: rgba(255,255,255,.92);
  color: rgba(7,20,39,.88);
  cursor:pointer;
  font-weight: 900;
  transition: transform .16s ease, filter .16s ease;
}
.rbtn:hover{ filter:brightness(1.05); transform: translateY(-1px); }
.rplay{ background: linear-gradient(90deg, rgba(14,165,233,.22), rgba(124,58,237,.12)); }

.radio-tip{
  font-size:.92rem;
  color: rgba(7,20,39,.70);
  font-weight: 650;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(14,76,140,.12);
  background: rgba(255,255,255,.82);
  text-align:right;
}

/* ===========================
   FORMS
   =========================== */
.form{ margin-top:12px; display:grid; gap:10px; }
.form-2col{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-3col{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.frow{ display:flex; flex-direction:column; gap:6px; }
.fwide{ grid-column:1 / -1; }

label{
  font-weight: 900;
  background: linear-gradient(90deg,var(--c2),var(--c1),var(--c3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

input,textarea{
  border-radius:14px;
  border:1px solid rgba(14,76,140,.14);
  background: rgba(255,255,255,.92);
  color: rgba(7,20,39,.92);
  padding:11px 12px;
  outline:none;
}

input::placeholder, textarea::placeholder{
  color: rgba(7,20,39,.40);
}

input:focus, textarea:focus{
  border-color: rgba(14,165,233,.32);
  box-shadow: 0 0 0 4px rgba(14,165,233,.16);
}

.factions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  border-radius:14px;
  border:1px solid rgba(14,76,140,.14);
  color: rgba(7,20,39,.92);
  font-weight: 900;
  padding:10px 14px;
  cursor:pointer;
  background: rgba(255,255,255,.92);
  transition: transform .16s ease, filter .16s ease;
}

.btn:hover{ filter:brightness(1.05); transform: translateY(-1px); }

.btn-chat{
  background: linear-gradient(90deg, rgba(249,115,22,.20), rgba(236,72,153,.16), rgba(124,58,237,.12));
}

.btn-prize{
  background: linear-gradient(90deg, rgba(34,197,94,.18), rgba(245,158,11,.16), rgba(14,165,233,.12));
}

/* ===========================
   CHAT / FEED
   =========================== */
.chat-wrap{
  margin-top:14px;
  border:1px solid rgba(14,76,140,.14);
  border-radius: 22px;
  overflow:hidden;
  box-shadow: 0 14px 46px rgba(12,50,90,.10);
  background: rgba(255,255,255,.78);
}

.chat-head{
  padding:12px 14px;
  border-bottom:1px solid rgba(14,76,140,.12);
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  background: rgba(255,255,255,.86);
}

.chat-title{
  font-weight: 900;
  background: linear-gradient(90deg,var(--c6),var(--c2),var(--c1));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.chat-sub{
  color: rgba(7,20,39,.70);
  font-weight: 650;
}

.chat-feed{
  max-height: 560px;
  overflow:auto;
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.msg{
  border-radius: 18px;
  border:1px solid rgba(14,76,140,.12);
  background: rgba(255,255,255,.92);
  padding:12px 12px;
  box-shadow: 0 10px 26px rgba(12,50,90,.08);
}

.msg-name{
  font-weight: 900;
  background: linear-gradient(90deg,var(--c4),var(--c6),var(--c3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.msg-meta{
  color: rgba(7,20,39,.70);
  font-weight: 650;
  font-size:.92rem;
  margin-top:2px;
}

.msg-text{
  color: rgba(7,20,39,.88);
  font-weight: 650;
  line-height:1.48;
  margin-top:6px;
}

/* ===========================
   KPIS (REGISTRO / DASHBOARD)
   =========================== */
.kpis{ display:flex; gap:10px; align-items:stretch; flex-wrap:wrap; }

.kpi{
  min-width:160px;
  border:1px solid rgba(14,76,140,.14);
  background: rgba(255,255,255,.86);
  border-radius:18px;
  padding:10px 12px;
  box-shadow: 0 10px 26px rgba(12,50,90,.08);
}

.kpi-l{
  color: rgba(7,20,39,.70);
  font-weight: 750;
  font-size:.86rem;
}

/* FIX: números visibles SIEMPRE */
.kpi-n{
  font-weight: 900;
  font-size: 1.35rem;
  margin-top:4px;
  color:#0b1a33; /* fallback */
  background:none;
  -webkit-background-clip: initial;
  background-clip: initial;
  line-height:1.2;
}

.kpi-a .kpi-n,
.kpi-b .kpi-n,
.kpi-c .kpi-n,
.kpi-d .kpi-n,
.kpi-e .kpi-n{
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
.kpi-a .kpi-n{ background:linear-gradient(90deg,var(--c5),var(--c8)) !important; }
.kpi-b .kpi-n{ background:linear-gradient(90deg,var(--c1),var(--c3)) !important; }
.kpi-c .kpi-n{ background:linear-gradient(90deg,var(--c2),var(--c1)) !important; }
.kpi-d .kpi-n{ background:linear-gradient(90deg,var(--c3),var(--c6)) !important; }
.kpi-e .kpi-n{ background:linear-gradient(90deg,var(--c7),var(--c2)) !important; }

/* ===========================
   FOOTER
   =========================== */
.footer{
  text-align:center;
  padding: 18px 8px 6px;
  color: rgba(7,20,39,.72);
}

.foot-logo{
  width:min(190px,60%);
  height:auto;
  opacity:.98;
  margin: 0 auto;
}

.foot-txt{
  margin-top:10px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--c2), var(--c1), var(--c3), var(--c6));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 980px){
  .svc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .countdown{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-2col{ grid-template-columns: 1fr; }
  .form-3col{ grid-template-columns: 1fr; }
  .radio-right{ align-items:flex-start; width:100%; }
  .radio-avaWrap{ width: 175px; height: 175px; }
  .year-lines{ opacity:.24; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation:none; padding-left:0; }
  .year-lines{ display:none; }
  #fx-layer{ display:none; }
}

/* ===== FIX FINAL: contador visible SIEMPRE ===== */
.tnum{
  display:inline-block !important;     /* importante para background-clip:text */
  font-weight: 900 !important;
  font-size: 1.85rem !important;
  line-height: 1.1 !important;

  /* fallback visible */
  color: #0b1a33 !important;

  /* reset por si algo lo pisa */
  background: none !important;
  -webkit-text-fill-color: initial !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

/* Fuerza gradiente SOLO en tnum dentro de cada caja */
.tbox-a .tnum,
.tbox-b .tnum,
.tbox-c .tnum,
.tbox-d .tnum{
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Gradientes por caja */
.tbox-a .tnum{ background: linear-gradient(90deg,#2563eb,#0ea5e9) !important; }
.tbox-b .tnum{ background: linear-gradient(90deg,#7c3aed,#0ea5e9) !important; }
.tbox-c .tnum{ background: linear-gradient(90deg,#f97316,#ec4899) !important; }
.tbox-d .tnum{ background: linear-gradient(90deg,#22c55e,#f59e0b) !important; }

/* Por si la caja está “aplastando” el contenido */
.tbox{
  overflow: visible !important;
}
