/* =====================================================
   Play Win — Tema Slate/Teal/Violet (completo)
   Limpio, legible y con vibe gamer sin neón agresivo
   ===================================================== */

/* Paleta y tokens */
:root{
  --brand: #33b0a1;            /* Teal principal */
  --accent: #8b5cf6;           /* Violeta acento */
  --text: #e7eaf3;             /* Texto alto contraste */
  --bg: #0e1220;               /* Fondo */
  --border: #242f4a;           /* Borde sutil */
  --card-bg: #141a2b;          /* Fondo tarjetas */
  --shadow: 0 6px 24px rgba(0,0,0,.35);
  --ring: 0 0 0 3px rgba(51,176,161,.35);
  --muted: #9fb0d1;

  --brand-700:#2a998d;
  --danger:#ef4444;
  --danger-700:#dc2626;

  /* Tipografías fluidas */
  --fs-h1: clamp(2rem, 5vw, 3rem);
  --fs-h2: clamp(1.8rem, 4vw, 2.5rem);
  --fs-h3: clamp(1.5rem, 3.5vw, 2rem);
  --fs-h4: clamp(1.2rem, 3vw, 1.6rem);
}

/* Reset básico */
*{ margin:0; padding:0; box-sizing:border-box; }

html, body{ height:100%; }

body{
  font-family:'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(139,92,246,.08), transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, rgba(51,176,161,.08), transparent 60%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
}

/* Elementos base */
a{ color:inherit; }
img{ max-width:100%; display:block; }

/* Tipografía */
h1,h2,h3,h4{ font-weight:600; color:var(--text); }
h1{ font-size:var(--fs-h1); }
h2{ font-size:var(--fs-h2); }
h3{ font-size:var(--fs-h3); }
h4{ font-size:var(--fs-h4); }
p.muted{ color:var(--muted); font-size:clamp(.9rem,2.5vw,1rem); }

/* Contenedores */
.site-header,.footer,.section{
  max-width:1200px; margin:0 auto; padding:1rem;
}
.section + .section{ padding-top: .25rem; }

/* Utilidades */
.row{ display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; }
.inline{ display:inline; }

/* ============= NAV ============= */
.site-header{
  position:sticky; top:0; z-index:1000;
  background:rgba(14,18,32,.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:1rem 0;
}
.brand{ display:flex; align-items:center; text-decoration:none; gap:.5rem; color:var(--text); }
.logo{
  font-size:1.5rem; font-weight:700;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.primary a{
  margin:0 1rem; text-decoration:none; color:var(--text);
  transition: color .2s ease, transform .15s ease;
}
.primary a:hover{ color:var(--brand); transform: translateY(-2px); }

.auth{ display:flex; align-items:center; gap:.5rem; }

.burger{
  display:none; background:none; border:none; color:var(--text); cursor:pointer;
}
.mobile{ display:none; }
.mobile.hidden{ display:none; }

/* ============= BOTONES ============= */
.btn{
  --btn-bg: transparent;
  --btn-bd: var(--border);
  --btn-fg: var(--text);
  --btn-shadow: var(--shadow);

  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.65rem 1.1rem;
  border-radius:10px;
  border:1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  box-shadow: var(--btn-shadow);
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn:focus-visible{ outline:none; box-shadow: var(--ring), var(--shadow); }
.btn svg{ width:1.05em; height:1.05em; }

/* CTA principal (gradiente) */
.btn.brand, .btn.primary{
  --btn-bg: linear-gradient(90deg, var(--brand), var(--accent));
  --btn-bd: transparent;
  --btn-fg: #0b0f19;
  color:#0b0f19;
}
.btn.brand:hover, .btn.primary:hover{
  box-shadow: 0 12px 28px rgba(139,92,246,.25), 0 6px 14px rgba(51,176,161,.25);
}

/* Secundario sólido */
.btn.secondary{
  --btn-bg: var(--brand);
  --btn-bd: transparent;
  --btn-fg: #0b0f19;
}
.btn.secondary:hover{
  --btn-bg: linear-gradient(90deg, var(--brand-700), var(--brand));
}

/* Ghost (borde sutil) */
.btn.ghost{
  --btn-bg: rgba(255,255,255,.02);
  --btn-bd: var(--border);
  --btn-fg: var(--text);
}
.btn.ghost:hover{
  --btn-bd: var(--brand);
  color: var(--brand);
  box-shadow: none;
}

/* Outline (contorno visible) */
.btn.outline{
  --btn-bg: transparent;
  --btn-bd: color-mix(in oklab, var(--accent) 45%, var(--border));
  --btn-fg: var(--text);
}
.btn.outline:hover{ --btn-bd: var(--accent); color: var(--accent); }

/* Danger */
.btn.danger{
  --btn-bg: var(--danger);
  --btn-bd: transparent;
  --btn-fg: #fff;
}
.btn.danger:hover{ --btn-bg: var(--danger-700); }

/* Link */
.btn.link{
  --btn-bg: transparent; --btn-bd: transparent;
  --btn-fg: color-mix(in oklab, var(--accent) 85%, #ffffff);
  box-shadow:none; padding:.25rem .25rem; border-radius:6px;
}
.btn.link:hover{ text-decoration: underline; }

/* Tamaños */
.btn.sm{ padding:.45rem .8rem; font-size:.9rem; border-radius:8px; }
.btn.lg{ padding:.85rem 1.25rem; font-size:1.05rem; border-radius:12px; }

/* ============= HERO ============= */
.hero{
  display:grid; grid-template-columns: 1fr 1fr; gap:2rem;
  padding:4rem 1rem; align-items:center;
}
.hero .copy{ animation: fadeInUp 1s ease-out; }
.kicker{ font-size:1rem; color:var(--brand); margin-bottom:.5rem; }

/* Mantener el gradiente del título del hero */
.hero h2{
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.cta{ display:flex; gap:1rem; margin-top:1rem; flex-wrap:wrap; }

/* ============= CARDS, BADGES, PILLS ============= */
.card{
  background: var(--card-bg);
  border:1px solid var(--border);
  border-radius:12px; padding:1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,.5); }

.badge, .pill{
  padding:.3rem .8rem; border-radius:12px; font-size:.85rem; width:max-content;
}
.badge{
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color:#0b0f19; font-weight:700;
}
.pill.ok{ background:#1e3b37; color:#b6f1ea; }
.pill.warn{ background:#3c321a; color:#f6e3b1; }

/* Barra de progreso */
.meter{ height:6px; background:#1b2540; border-radius:3px; overflow:hidden; }
.meter i{
  display:block; height:100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width .5s ease;
}

/* ============= GRID & TILES ============= */
.grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:1.5rem;
}
.tile{
  background: var(--card-bg);
  border-radius:12px; padding:1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover{ transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,.5); }
.eyebrow{ font-size:.9rem; color:var(--brand); margin-bottom:.5rem; }

/* ============= STEPS ============= */
.steps{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap:1rem;
}
.step{
  position:relative; padding:1.5rem; background:var(--card-bg);
  border-radius:12px; box-shadow: var(--shadow);
}
.step::before{
  content: attr(data-num);
  position:absolute; top:10px; left:10px;
  font-size:1.5rem; font-weight:700; color:var(--brand); opacity:.3;
}

/* ============= FLASH ============= */
.flash .msg{
  background: var(--card-bg);
  border:1px solid var(--brand);
  border-radius:8px; padding:1rem; margin:1rem; text-align:center;
  animation: fadeIn .5s ease-out;
}

/* ============= FOOTER ============= */
.footer{
  display:flex; justify-content:space-between; align-items:center;
  padding:2rem 1rem; border-top:1px solid var(--border);
}
.social{ display:flex; gap:1rem; }
.icon-btn{
  color:var(--text);
  transition: color .2s ease, transform .15s ease;
}
.icon-btn:hover{ color:var(--brand); transform: scale(1.1); }

/* ============= ANIMACIONES ============= */
@keyframes fadeInUp{
  from{ opacity:0; transform: translateY(20px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes fadeIn{
  from{ opacity:0 } to{ opacity:1 }
}
.fade-up{ animation: fadeInUp .8s ease-out; }

/* ============= MOBILE SHEET ============= */
.mobile{
  position:fixed; inset:0; background: rgba(14,18,32,.95);
  z-index:2000; display:none;
}
.sheet{
  padding:2rem; display:flex; flex-direction:column; gap:1rem;
  max-width:300px; margin:2rem auto; background: var(--card-bg);
  border-radius:12px; box-shadow: var(--shadow);
}
.sheet a{ text-decoration:none; color:var(--text); font-size:1.1rem; }

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px){
  .primary a{ margin:0 .6rem; }
}

@media (max-width: 768px){
  .hero{ grid-template-columns: 1fr; text-align:center; }
  .nav-wrap{ flex-wrap:wrap; }
  .primary{ display:none; }
  .burger{ display:block; }

  .mobile.hidden{ display:none; }
  .mobile{ display:block; }

  .cta{ justify-content:center; }
}

@media (max-width: 480px){
  .btn{ padding:.5rem 1rem; font-size:.95rem; }
  .cta, .row{ flex-direction:column; align-items:center; gap:.6rem; }
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce){
  .btn, .primary a, .card, .tile{ transition: none; }
  .btn:hover, .primary a:hover, .card:hover, .tile:hover{ transform:none; }
}

