:root{
  --bg1:#050612;
  --bg2:#0b1030;
  --card: rgba(17,24,39,.78);
  --text:#e8eaf2;
  --muted:#a6b0c3;
  --border:rgba(255,255,255,.09);
  --p1:#7c3aed;
  --p2:#22d3ee;
  --shadow: 0 24px 80px rgba(0,0,0,.55);
}
*{box-sizing:border-box}
html,body{width:100%;overflow-x:hidden}
body{
  margin:0;font-family:system-ui;color:var(--text);
  background:
    radial-gradient(1000px 500px at 20% 10%, rgba(124,58,237,.32), transparent 60%),
    radial-gradient(900px 450px at 80% 20%, rgba(34,211,238,.22), transparent 55%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:auto;padding:16px}
.nav{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.brand{font-weight:900}
.card{
  background:rgba(17,24,39,.85);
  border:1px solid var(--border);
  border-radius:18px;padding:16px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(10px);
}
.hr{height:1px;background:var(--border);margin:16px 0}
.muted{color:var(--muted);font-size:14px}
.badge{display:inline-block;padding:6px 10px;border-radius:999px;background:rgba(124,58,237,.18);border:1px solid rgba(124,58,237,.35);font-size:12px}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:12px 14px;border-radius:12px;font-weight:900;border:1px solid var(--border)}
.btn-primary{background:linear-gradient(135deg,var(--p1),var(--p2))}
.btn-soft{background:rgba(255,255,255,.04)}
.input,select,textarea{width:100%;padding:12px;border-radius:12px;border:1px solid var(--border);background:rgba(255,255,255,.03);color:var(--text)}
.grid{display:grid;gap:14px}
.grid-3{grid-template-columns:1fr}
@media(min-width:600px){.grid-3{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){.grid-3{grid-template-columns:repeat(3,1fr)}}
.hero{display:grid;gap:16px;grid-template-columns:1fr}
@media(min-width:900px){.hero{grid-template-columns:1.1fr .9fr;align-items:center}}
.hero h1{font-size:clamp(24px,6vw,44px);margin:0;line-height:1.1}
.kpi{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.kpi .pill{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid var(--border);color:var(--muted);font-size:13px}
.thumb{width:100%;height:auto;aspect-ratio:16/9;border-radius:14px;border:1px solid var(--border);object-fit:cover;background:rgba(255,255,255,.03)}

/* FIX SELECT (Idioma) para modo oscuro */
select{
  background: rgba(17,24,39,.95) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255,255,255,.15) !important;
}

select option{
  background: #0b1020 !important;
  color: #e5e7eb !important;
}
/* ===== FIX DROPDOWN IDIOMA EN MOVIL ===== */
.lang-dd{ position:relative; }

.lang-menu{
  max-width: calc(100vw - 24px);
}

@media (max-width: 520px){
  .lang-menu{
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: unset !important;
  }
}
/* ✅ FIX FINAL: Dropdown idioma (móvil) */
.lang-menu a{
  white-space: nowrap;
}

.lang-menu{
  min-width: 210px !important;
}

@media (max-width: 520px){
  .lang-menu{
    min-width: unset !important;
  }
  .lang-menu a{
    font-size: 15px;
  }
}
/* ✅ FIX FINAL: thumbs sin cortar texto en móvil */
@media (max-width: 560px){
  .thumb{
    aspect-ratio: auto !important;
    height: 160px !important;
    object-fit: contain !important;
    padding: 10px;
  }
}
.lang-menu a{ white-space: nowrap; }
/* ✅ FIX DEFINITIVO: no cortar texto en menú idioma */
.lang-menu{
  width: 240px !important;
  max-width: calc(100vw - 24px) !important;
}

.lang-menu a{
  width: 100%;
  white-space: nowrap;
  overflow: visible !important;
}

@media (max-width: 520px){
  .lang-menu{
    width: 100% !important;
  }
}


/* ✅ BOTON COPIAR BONITO */
.btn-copy{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(124,58,237,.18);
  color:#e8eaf2;
  cursor:pointer;
  transition: .2s ease;
}
.btn-copy:hover{
  transform: translateY(-1px);
  background: rgba(34,211,238,.18);
}
.btn-copy.copied{
  background: rgba(34,211,238,.25);
  border-color: rgba(34,211,238,.35);
}
/* ===== PayPal Light Zone (solo zona de botones PayPal) ===== */
.paypal-light-zone{
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  border-radius: 18px !important;
  padding: 14px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35) !important;
}

.paypal-light-zone .card{
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  color: #0f172a !important;
  box-shadow: 0 12px 35px rgba(0,0,0,0.15) !important;
}

.paypal-light-zone h3{
  color:#0f172a !important;
}

.paypal-light-zone .badge{
  background: rgba(124,58,237,0.10) !important;
  border: 1px solid rgba(124,58,237,0.25) !important;
  color: #0f172a !important;
}

.paypal-light-zone .muted{
  color: rgba(15,23,42,0.70) !important;
}
/* ===== Botones especiales Page1 Verde / Page2 Morado ===== */
.btn-green{
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

.btn-purple{
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

/* Version “soft” para botones de ir a la página */
.btn-green-soft{
  background: rgba(34,197,94,.12) !important;
  color: #d1fae5 !important;
  border: 1px solid rgba(34,197,94,.28) !important;
}

.btn-purple-soft{
  background: rgba(124,58,237,.12) !important;
  color: #ede9fe !important;
  border: 1px solid rgba(124,58,237,.28) !important;
}
.btn-red{
  background: linear-gradient(135deg,#ef4444,#fb7185) !important;
  border: 0 !important;
  color: #fff !important;
}
.btn-red:hover{ filter: brightness(1.06); }

.btn-purple{
  background: linear-gradient(135deg,#7c3aed,#a78bfa) !important;
  border: 0 !important;
  color: #fff !important;
}
.btn-purple:hover{ filter: brightness(1.06); }
