:root{
  /* Background principal */
  --bg:#e9f2ff;                 /* Azul clarito (1xBet) */
  --bg2:#d9e8ff;                /* Variación para secciones */

  --bg-card:#d9e8ff;                /* Variación para secciones */
  /* Texto */
  --text:#0a2540;               /* Azul muy oscuro */
  --muted:#4f6b8a;              /* Azul medio */

  /* Superficies / cards */
  --card:#ffffff;               /* Blanco limpio */
  --line:#c1d4ee;               /* Bordes suaves */

  /* Header */
  --topbar:#0f5dcc;             /* Azul intenso 1xBet */
  --topbar2:#0a3d85;            /* Degradado azul oscuro */

  /* Botones */
  --cta:#ffd541;                /* Amarillo profesional */
  --cta2:#f0c200;

  /* Botones ghost */
  --ghost-border:#0f5dcc;
  --ghost-hover:#e4eeff;

  /* Separación */
  --gutter:16px;
  --maxw:1180px;
  --maxw-lg:1400px;
}



/* ===== Base ===== */
*{box-sizing:border-box}
html,body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: "Roboto", sans-serif;
  --font-family-condensed: "Roboto Condensed", sans-serif;
}
img{max-width:100%;display:block}
h1,h2,h3{margin:0 0 10px}
.muted{color:var(--muted)}
.page{padding-bottom:36px}

/* ===== Contenedor general ===== */
.container{
  width:min(100%, var(--maxw));
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* Hero + Destacados usan ancho grande */
.hero .container,
#destacados.container{
  width:min(100%, var(--maxw-lg));
}

/* ===== Topbar / Nav (por si lo usas aquí) ===== */
.topbar__in{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0}
.brand__logo{display:inline-block;color:#fff;text-decoration:none;font-weight:900;letter-spacing:.4px}
.brand__logo b{color:#ffe28a}
.nav-toggle{display:inline-flex;flex-direction:column;gap:4px;width:42px;height:36px;border:1px solid #0c5147;border-radius:8px;background:transparent}
.nav-toggle span{width:20px;height:2px;background:#fff;border-radius:2px}
@media (min-width:960px){.nav-toggle{display:none}}
.nav{position:fixed;left:0;right:0;top:58px;background:var(--topbar2);display:none;flex-direction:column;gap:6px;padding:10px;border-bottom:1px solid #09483e}
.nav.open{display:flex}
@media (min-width:960px){.nav{position:static;display:flex;flex-direction:row;gap:12px;padding:0;background:transparent;border:0}}
.nav__link{color:#eafff9;text-decoration:none;padding:8px 10px;border-radius:8px}

.nav__link--cta{
  background:var(--teal2);
  color:#f9fafb;
}
.nav__link--cta:hover{
  background:#0b4aa8;
}
.nav__user{display:inline-flex;align-items:center;gap:8px;border:1px solid #0c5147;border-radius:999px;padding:4px 8px}
.nav__user img{width:28px;height:28px;border-radius:999px}

/* ===== Botones ===== */
.btn{
  display:inline-block;
  border-radius:10px;
  border:0;
  cursor:pointer;
  font-weight:800;
}

/* CTA principal amarillo */
.btn--accent{
  background:var(--cta);
  color:#1f2933;                 /* texto oscuro muy legible */
  padding:10px 14px;
  box-shadow:0 4px 0 #c48a00;    /* sombra ámbar */
}
.btn--accent:hover{
  background:var(--cta2);
}



/* Botón contorno */
.btn--ghost{
  background:transparent;
  color:#000000;                 /* texto claro */
  border:1px solid #3b82f6;      /* azul */
  padding:8px 12px;
}
.btn--ghost:hover{
  background:rgba(59,130,246,0.12); /* azul muy suave */
}


.btn--full{
  display:block;
  width:100%;
  text-align:center;
  color:#1f2933;                 /* texto oscuro muy legible */
  padding:10px 14px;
  box-shadow:0 4px 0 #c48a00;    /* sombra ámbar */
}

.btn--full:hover{
  background:var(--cta2);
}


/* ===== Hero ===== */

.hero__in{
  display:grid; gap:20px; align-items:center; padding:22px 0;
  grid-template-columns:1fr;                      /* móvil */
}
@media (min-width:900px){
  .hero__in{ grid-template-columns:1.15fr .85fr; }/* desktop */
}
.hero__left h1{font-size:32px}
.hero__left p{color:var(--muted)}
.hero__cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.hero__right{
  background:linear-gradient(135deg,#1d9bf0,#38bdf8);
  border-radius:14px;
  padding:18px;
  text-align:center;
  box-shadow:0 10px 24px rgba(0,0,0,.3);
}
.hero .pill{display:inline-block;background:#fff;color:#c2185b;border-radius:999px;padding:6px 12px;font-weight:900}
.hero .date{font-size:34px;margin:6px 0 12px;font-weight:900;letter-spacing:.4px}
.btn.btn--cta{
  background:var(--cta);
  color:#1f2933;
  padding:12px 18px;
  border-radius:12px;
  box-shadow:0 6px 0 #b45309;
}
.btn.btn--cta:hover{
  background:var(--cta2);
}


/* ===== Secciones ===== */
.section{margin:26px 0}

/* ===== Grid genérica (mobile-first) ===== */
.grid{
  display:grid;
  gap:16px;
  grid-template-columns:1fr;                         /* móvil */
}
@media (min-width:780px){
  .grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } /* 2 col */
}
@media (min-width:1200px){
  .grid{ grid-template-columns:repeat(3, minmax(0,1fr)); } /* 3 col desktop */
}
@media (min-width:1600px){
  .grid{ grid-template-columns:repeat(4, minmax(0,1fr)); } /* 4 col muy grande */
}

/* ===== “Sorteos destacados” centrado ===== */
#destacados .grid{
  width:100%;
  margin-inline:auto;                                   /* centrado dentro del contenedor grande */
}

/* ===== Card vertical estable (sin cortes) ===== */
.card{
  background:var(--card);
  border:1px solid rgba(148,163,184,0.4); /* borde azul-gris suave */
  border-radius:12px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(15,23,42,.6);
}

.card__body{
  padding:12px;
}

/* Botón pequeño tipo ghost dentro de cards (Detalles) */
.card .btn--ghost{
  border-color:#3b82f6;
  color:#000000;
}
.card .btn--ghost:hover{
  background:rgba(59,130,246,0.18);
}


.card__media{position:relative}
.card__media img{width:100%; height:clamp(160px, 24vw, 220px); object-fit:cover}
.badge{
  position:absolute; right:10px; top:10px; background:#0a7463; color:#fff;
  border-radius:8px; padding:6px 8px; text-align:center
}
.badge b{display:block;font-size:16px;line-height:1}
.badge small{font-size:11px;opacity:.9}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}

/* ===== Steps / Confianza ===== */
.steps{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width:780px){.steps{grid-template-columns:repeat(3,1fr)}}
.step{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px;text-align:center}
.trust{display:grid;grid-template-columns:1fr;gap:12px}
.trust li{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px;text-align:center}

/* ===== Formularios ===== */
.form.auth{display:grid;gap:10px;max-width:420px}
.form.auth input{background:#0f2222;color:#fff;border:1px solid #1e4a44;border-radius:8px;padding:10px 12px}
.form.auth input:focus{outline:none;border-color:#23c1ab;box-shadow:0 0 0 3px #23c1ab33}

/* ===== Footer ===== */
.footer{border-top:1px solid #0f3f37;color:#000000}
.footer__in{
  display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 0;
  width:min(100%, var(--maxw)); margin-inline:auto; padding-inline:var(--gutter);
}
/* ===== FIX PACK — Home (con secciones que ya traen .container) ===== */

/* 1) Centrar y dar ancho consistente a TODAS las secciones con .container */
.container.section{
  width: min(96vw, 1440px) !important;  /* se ve amplio en 1920 */
  margin-inline: auto !important;       /* <-- centrado real */
  padding-inline: 16px !important;
}

/* 2) “Sorteos destacados” — grid elástica que llena todo el ancho */
#destacados .grid{
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  justify-content: center;   /* si sobran columnas, centra el bloque */
}

/* 3) “Cómo funciona” — 3 items que se adaptan y se centran */
#como .steps{
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  justify-content: center;
}

/* 4) “Confianza” — lista en grid centrada y fluida */
#confianza .trust{
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  justify-content: center;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* 5) Cards verticales, sin desbordes ni cortes de botón/imagen */
.card{ display: grid; grid-template-columns: 1fr; min-width: 0; }
.card__media img{ width: 100%; height: clamp(180px, 22vw, 240px); object-fit: cover; }


/* ===== HERO — FIX MOBILE (≤420px) ===== */
@media (max-width: 420px){
  /* más respiración a los lados */
  .hero .container{ padding-inline: 12px; }

  /* título fluido y sin corte */
  .hero__left h1{
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.12;
    word-break: break-word;
    hyphens: auto;
  }

  /* tarjeta rosa: 100% del ancho útil y sin desbordar */
  .hero__right{
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
    padding: 16px;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;          /* recorta sombras/bordes que sobresalgan */
  }

  /* textos dentro de la tarjeta */
  .hero .pill{ padding: 6px 10px; font-size: clamp(12px, 3.2vw, 14px); }
  .hero .date{ font-size: clamp(24px, 9vw, 32px); }

  /* CTA ancho completo para que no rompa el layout */
  .btn.btn--cta{ width: 100%; }
}

/* ===== HERO — PULIDO DESKTOP (≥900px) ===== */
@media (min-width: 900px){
  .hero__in{ grid-template-columns: 1.15fr .85fr; gap: 24px; }
  .hero__right{ max-width: 640px; margin-left: auto; } /* evita que se pegue al borde */
}

/* ===== HEADER / TOPBAR — FIX MOBILE ===== */

/* estructura flexible sin cortes */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:linear-gradient(180deg,var(--topbar),var(--topbar2));
  box-shadow:0 2px 0 rgba(0,0,0,.25);
}
.topbar__in{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;          /* no permitas saltos que rompan la altura */
  min-width: 0;               /* permite que los hijos se encojan */
}
.topbar .brand,
.topbar .nav-toggle,
.topbar .nav{ min-width: 0; } /* evita desbordes por contenido largo */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand__logo {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}


/* botón hamburguesa: zona táctil cómoda */
.nav-toggle{
  flex: 0 0 auto;
  width: 42px; height: 36px;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  border-radius: 10px;
  border: 1px solid #0c5147;
  background: transparent;
}

/* panel de navegación móvil: ancho completo, sin recortes */
.nav{
  position: fixed;
  left: 0; right: 0;
  top: calc(env(safe-area-inset-top, 0px) + 56px); /* debajo de la barra */
  background: var(--topbar);
  border-bottom: 1px solid #09483e;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  max-height: 70vh;
  overflow-y: auto;
}
.nav.open{ display: flex; }
.nav__link{ display:block; padding: 10px 12px; color:#eafff9; text-decoration:none; border-radius:8px; }


.nav .btn{ width:100%; text-align:center; margin-top:6px; }

/* bloque usuario dentro del panel móvil */
.nav__user{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border:1px solid #0c5147; border-radius:10px;
}

/* ===== Pulidos específicos de móviles estrechos ===== */
@media (max-width: 420px){
  .topbar .container{ padding-inline: 12px; }       /* respiración lateral */
  .brand__logo{ font-size: clamp(16px, 5.2vw, 20px); }
  .nav-toggle{ width: 40px; height: 34px; }
}

/* ===== Desktop conserva el nav en línea ===== */
@media (min-width: 960px){
  .nav{
    position: static;
    display: flex !important;
    flex-direction: row;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    max-height: none;
    overflow: visible;
  }
  .nav .btn{ width:auto; margin:0; }
}
/* === Ocultar hamburguesa en desktop (≥960px) === */
@media (min-width: 960px){
  .nav-toggle{
    display: none !important;     /* oculta el botón y sus líneas */
    visibility: hidden !important;
  }
}

/* (opcional) asegura buena distribución cuando se oculta */
@media (min-width: 960px){
  .topbar__in > .brand{ margin-right: auto; }  /* logo a la izquierda */
  .nav{ display: flex !important; }            /* menú en línea */
}

/* --- Login & Auth look --- */
.auth-wrap{min-height:calc(100vh - 120px);display:grid;place-items:center;padding:32px;background:linear-gradient(180deg,#0db39e0a,#0db39e0a);}
.auth-card{width:100%;max-width:420px;background:#fff;border-radius:20px;box-shadow:0 10px 30px rgba(0,0,0,.06);padding:28px;}
.auth-head{text-align:center;margin-bottom:16px;}
.auth-logo{width:64px;height:64px;border-radius:16px;display:inline-grid;place-items:center;font-size:28px;background:rgba(255, 213, 27, 0.808);margin-bottom:8px;}
.auth-form .field{display:block;margin:10px 0;}
.auth-form .field > span{display:block;font-size:.9rem;color:#6b7a88;margin-bottom:6px;}
.auth-form input{width:100%;padding:12px 14px;border:1px solid #e4e7eb;border-radius:12px;font-size:1rem;}
.auth-form input:focus{outline:none;border-color:#0db39e;box-shadow:0 0 0 3px #0db39e22;}
.btn--block{width:100%;margin-top:10px;}
.auth-links{display:flex;justify-content:center;gap:8px;margin-top:12px;font-size:.95rem;}
.auth-alert{padding:10px 12px;border-radius:12px;margin-bottom:12px;font-size:.95rem}
.auth-alert.is-error{background:#ffecec;border:1px solid #ffb3b3;color:#b03737;}
.auth-alert.is-info{background:#e9fbf6;border:1px solid #bfe5de;color:#1b6a5f;}

.auth-alert.is-ok {
  background: #d9f7e8;
  color: #0a8a3a;
  border: 1px solid #0a8a3a33;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}


.muted_2{color: #0f191a;}

.btn, .nav__link, .card {
  transition: all .2s ease-in-out;
}

/* ===== Enlaces globales (sin subrayado, color coherente) ===== */
a {
  color: inherit;                /* usa el color de texto del contenedor */
  text-decoration: none;         /* quita subrayado */
  transition: color .2s ease;
}

/* color al pasar el mouse (puedes ajustar al tono de tu marca) */
a:hover {
  color: var(--cta);             /* amarillo CTA o el que prefieras */
  text-decoration: none;         /* sin subrayado también */
}

/* si tienes enlaces dentro de .muted u otros, que mantengan el estilo */
.muted a {
  color: inherit;
  text-decoration: none;
}


.link-button {
  color: var(--teal);
  text-decoration: underline;
}
.link-button:hover {
  color: var(--cta);
}


/* ===== Editor de Sorteo — UI de formularios ===== */
.form-card{
  max-width:820px;
  background:#0e1a1a;
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px 18px 16px;
  box-shadow:0 6px 16px rgba(0,0,0,.15);
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.form-grid .col-span-2{ grid-column:1/-1; }

.field{ display:flex; flex-direction:column; gap:6px; }
.label{ font-weight:600; }

.ctrl{
  display:flex; align-items:center;
  background:var(--bg);
  border:1px solid #1e4a44;
  border-radius:10px;
  padding:0 10px;
  min-height:42px;
}
.ctrl:focus-within{ border-color:#23c1ab; box-shadow:0 0 0 3px #23c1ab33; }

.ctrl input,
.ctrl textarea{
  all:unset;
  color:#000000;
  flex:1; min-width:0;
  font:inherit; line-height:1.2;
}
.ctrl textarea{ min-height:110px; padding:10px; }

.addon{ font-weight:700; opacity:.85; margin-right:8px; }
.addon-suffix{ margin-left:8px; opacity:.75; }

.hint{ font-size:.85rem; color:var(--muted); }

.btn-row{ display:flex; gap:10px; justify-content:flex-end; margin-top:8px; }

/* Tabs del editor */
.tabs-editor{ display:flex; gap:8px; margin-bottom:14px; }
.tabs-editor .btn{ border-radius:10px; }

/* Inputs nativos dentro de .ctrl */
.ctrl input[type="datetime-local"]{
  padding:8px 0;                /* equilibra altura con addons */
}

/* Responsive */
@media (max-width:820px){ .form-grid{ grid-template-columns:1fr; } }


/* ====== Editor: Portada / Galería ====== */
.form-card{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:16px; box-shadow:0 8px 24px rgba(0,0,0,.06)}
.form-card h3{margin:0 0 8px}

.form-row{display:grid; gap:12px; grid-template-columns:1fr; margin:12px 0}
@media (min-width:860px){ .form-row{grid-template-columns: 1fr auto} }

.upload-block{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.input-file{background:var(--bg);border:1px solid #1e4a44;border-radius:12px;padding:10px 12px;color:#000000}
.input-file:focus{outline:none;border-color:#23c1ab;box-shadow:0 0 0 3px #23c1ab33}

.cover-wrap{display:grid; grid-template-columns:200px 1fr; gap:16px; align-items:center}
.cover{width:200px; height:140px; border-radius:12px; border:1px solid var(--line); object-fit:cover; background:#0f2222}

.gallery-grid{display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.gcard{background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden}
.gthumb{position:relative}
.gthumb img{width:100%; height:160px; object-fit:cover; display:block}
.gbadge{position:absolute; right:10px; top:10px; background:#0a7463; color:#fff; padding:6px 8px; border-radius:8px; font-weight:800; font-size:.9rem}
.gbody{padding:10px}
.gactions{display:flex; gap:8px; flex-wrap:wrap}

.btn-row{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; margin-top:12px}

/* “Publicar” lista bonita */
.review{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:16px; margin:12px 0}
.review li{margin:6px 0}


/* ==== PREVIEW DEL SORTEO (Publicar) ==== */
.raffle-preview{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.rp-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.rp-title{ font-size: 22px; margin: 0 0 4px; }
.rp-meta{ font-size: .95rem; }

.rp-price{ text-align: right; }
.rp-price-amt{ font-size: 26px; font-weight: 900; line-height: 1; }
.rp-price-amt small{ font-size: 12px; font-weight: 700; opacity: .8; }

.rp-cover img{
  width: 100%;
  height: clamp(220px, 40vw, 420px);
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f2222;
}
.rp-thumbs{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.rp-thumbs img{
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f2222;
}

.rp-progress{ margin-top: 12px; }
.rp-progress__text{ font-size: .95rem; margin-bottom: 6px; }
.rp-progress__bar{
  position: relative;
  height: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.rp-progress__bar span{
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--cta), var(--cta2));
}

.rp-section{ margin-top: 16px; }
.rp-section h4{ margin: 0 0 6px; }

.rp-avatars{ display: flex; flex-wrap: wrap; gap: 6px; }
.rp-avatar{
  width: 26px; height: 26px; border-radius: 999px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 30%, #c12323, #610505);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.2);
}

.rp-comments{ list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rp-comments li{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}


/* ===== Modal de depósito ===== */
.deposit-modal-overlay{
  position:fixed;
  inset:0;
  z-index:200;
  background:rgba(0,0,0,.65);
  display:none;                 /* se muestra con .is-open */
  align-items:center;
  justify-content:center;
  padding:16px;
  overflow-y:auto;              /* scroll si el modal es muy alto */
}

.deposit-modal-overlay.is-open{
  display:flex;
}

.deposit-modal{
  margin:auto;
  background:#ffffff;
  color:#0f191a;
  width:100%;
  max-width:720px;
  max-height:calc(100vh - 32px);
  border-radius:22px;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
}

.deposit-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:18px 20px 10px;
  border-bottom:1px solid #e4e7eb;
}

.deposit-modal__title{
  font-size:20px;
  font-weight:800;
}

.deposit-modal__close{
  border:0;
  background:transparent;
  width:32px;
  height:32px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.deposit-modal__close:hover{
  background:#f2f4f7;
}

.deposit-modal__body{
  padding:14px 20px 18px;
  overflow-y:auto;             /* el interior también puede scrollear */
}

/* ===== Bloques plegables de métodos de pago ===== */
.deposit-method{
  border-radius:18px;
  border:1px solid #e4e7eb;
  background:#f7fafb;
  margin-bottom:14px;
  overflow:hidden;
}

.deposit-method__header{
  width:100%;
  padding:12px 14px;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  cursor:pointer;
}

.deposit-method__header-left{
  display:flex;
  align-items:center;
  gap:8px;
}

.deposit-method__icon{
  width:26px;
  height:26px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#0db39e1a;
}

.deposit-method__title{
  font-weight:700;
}

.deposit-method__chevron{
  font-size:18px;
  transform:rotate(0deg);
  transition:transform .2s ease;
}

.deposit-method.is-open .deposit-method__chevron{
  transform:rotate(90deg);
}

.deposit-method__body{
  max-height:0;
  padding:0 14px;
  overflow:hidden;
  transition:max-height .25s ease, padding .25s ease;
}

.deposit-method.is-open .deposit-method__body{
  padding:0 14px 14px;
  max-height:700px;     /* suficiente para el formulario; se recorta por overflow */
}

/* mini “tarjeta banco” dentro de SPEI */
.deposit-bank-box{
  border-radius:12px;
  background:#0f191a;
  color:#f2fbfa;
  padding:12px 14px;
  margin:8px 0 14px;
  font-size:.92rem;
}

/* Ajustes móviles */
@media (max-width:600px){
  .deposit-modal{
    max-height:calc(100vh - 24px);
    border-radius:18px;
  }
}

/* Chip usuario: avatar + balance */
.nav__user-wrapper{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__user{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid #0c5147;
  border-radius:999px;
  padding:4px 10px;
  background:#f2fbfa;
  cursor:pointer;
  font-size:.9rem;
}

.nav__user img{
  width:28px;
  height:28px;
  border-radius:999px;
  object-fit:cover;
}

.nav__balance{
  white-space:nowrap;
  color:#0f191a;
  font-weight:600;
}

/* Mini menú bajo el chip (Ver perfil / Depositar / Configuración) */
.user-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  background:#ffffff;
  color:#0f191a;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
  padding:6px;
  min-width:190px;
  display:none;
  z-index:200;
}
.user-menu.is-open{ display:block; }

.user-menu__item{
  width:100%;
  border:0;
  background:transparent;
  padding:8px 10px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:.9rem;
  cursor:pointer;
}
.user-menu__item span{
  display:flex;
  align-items:center;
  gap:6px;
}
.user-menu__item:hover{
  background:#f5f5f5;
}

/* Modal wallet */
.wallet-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:300;
}
.wallet-modal.is-open{ display:block; }

.wallet-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
}

.wallet-modal__panel{
  position:relative;
  margin:20px auto;
  max-width:520px;
  background:#ffffff;
  color:#0f191a;
  border-radius:20px;
  padding:20px 20px 18px;
  z-index:1;
  max-height:calc(100vh - 40px);
  overflow-y:auto;
}

.wallet-modal__close{
  position:absolute;
  right:12px;
  top:10px;
  border:0;
  background:transparent;
  font-size:20px;
  cursor:pointer;
}

.wallet-modal__methods{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:10px;
}

/* Tarjetas de método (acordeón) */
.wallet-method{
  background:#f2fbfa;
  border-radius:14px;
  padding:10px 12px 12px;
}

.wallet-method__toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:0;
  background:transparent;
  font-size:1rem;
  padding:4px 0;
  cursor:pointer;
}

.wallet-method__chevron{
  font-size:.9rem;
  transition:transform .18s ease;
}

.wallet-method__body{
  margin-top:8px;
}

.wallet-method.collapsed .wallet-method__body{
  display:none;
}

.wallet-method.collapsed .wallet-method__chevron{
  transform:rotate(-90deg);
}

/* Formulario dentro del modal */
.wallet-form .field{ margin:10px 0; }

.wallet-form .label{
  display:block;
  margin-bottom:4px;
  font-size:.9rem;
  color:#313b3b;
}

.wallet-form .ctrl{
  background:#0f2222;
  border-radius:10px;
  border:1px solid #d0e3df;
  padding:0;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.wallet-form .ctrl input[type="number"],
.wallet-form .ctrl input[type="file"],
.wallet-form .ctrl textarea{
  flex:1;
  border:0;
  padding:10px 12px;
  background:transparent;
  color:#f2fbfa;
  font:inherit;
}

.wallet-form .ctrl textarea{
  min-height:70px;
  resize:vertical;
}

.wallet-form .addon{
  padding:0 10px;
  font-size:.9rem;
  color:#cfe6e3;
  border-right:1px solid #1e4a44;
  white-space:nowrap;
}

.wallet-form .hint{
  font-size:.8rem;
  color:#6b7a88;
  margin-top:4px;
}

.wallet-form .btn-row{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
}


/* ===== Mini menú usuario: comportamiento especial en móvil ===== */

/* Desktop: se queda como lo tienes ahora (popover debajo del chip) */
/* Mobile: convertimos el menú en una tarjetita fija bajo el header */
@media (max-width: 600px) {

  /* El wrapper ya no necesita ser relativo en móvil */
  .nav__user-wrapper{
    position: static;
  }

  .user-menu{
    position: fixed;
    left: 12px;
    right: 12px;
    top: 64px;                     /* justo debajo del topbar */
    margin: 0 auto;
    max-width: 320px;              /* ancho cómodo en móvil */
    z-index: 300;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    border-radius: 16px;
  }
}


/* ===== User chip (avatar + saldo) ===== */
.nav__user-wrapper{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__user{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid #0c5147;
  border-radius:999px;
  padding:4px 10px;
  background:#f2fbfa;
  cursor:pointer;
  font-size:.9rem;
}

.nav__user img{
  width:28px;
  height:28px;
  border-radius:999px;
  object-fit:cover;
}

.nav__balance{
  white-space:nowrap;
  color:#0f191a;
  font-weight:600;
}

/* ===== Mini menú del usuario (desktop) ===== */
.user-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  background:#ffffff;
  color:#0f191a;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
  padding:6px;
  min-width:190px;
  display:none;
  z-index:200;
}

.user-menu.is-open{ display:block; }

.user-menu__item{
  width:100%;
  border:0;
  background:transparent;
  padding:8px 10px;
  border-radius:10px;
  display:flex;
  align-items:center;
  font-size:.9rem;
  cursor:pointer;
  text-align:left;
}

.user-menu__item span{
  display:flex;
  align-items:center;
  gap:6px;
}

.user-menu__item:hover{
  background:#f5f5f5;
}

/* ===== Modal de wallet ===== */
.wallet-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:300;
}
.wallet-modal.is-open{ display:block; }

.wallet-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
}

.wallet-modal__panel{
  position:relative;
  margin:20px auto;
  max-width:520px;
  background:#ffffff;
  color:#0f191a;
  border-radius:20px;
  padding:20px 20px 18px;
  z-index:1;
  max-height:calc(100vh - 40px);
  overflow-y:auto;
}

.wallet-modal__close{
  position:absolute;
  right:12px;
  top:10px;
  border:0;
  background:transparent;
  font-size:20px;
  cursor:pointer;
}

.wallet-modal__methods{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:10px;
}

.wallet-method{
  background:#f2fbfa;
  border-radius:14px;
  padding:12px 14px 14px;
}

.wallet-form .field{ margin:10px 0; }
.wallet-form .label{
  display:block;
  margin-bottom:4px;
  font-size:.9rem;
  color:#313b3b;
}
.wallet-form .ctrl{
  background:#0f2222;
  border-radius:10px;
  border:1px solid #1e4a44;
  padding:0;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.wallet-form .ctrl input[type="number"],
.wallet-form .ctrl input[type="file"],
.wallet-form .ctrl textarea{
  flex:1;
  border:0;
  padding:10px 12px;
  background:transparent;
  color:#f2fbfa;
  font:inherit;
}
.wallet-form .ctrl textarea{
  min-height:70px;
  resize:vertical;
}
.wallet-form .addon{
  padding:0 10px;
  font-size:.9rem;
  color:#cfe6e3;
  border-right:1px solid #1e4a44;
  white-space:nowrap;
}
.wallet-form .hint{
  font-size:.8rem;
  color:#6b7a88;
  margin-top:4px;
}
.wallet-form .btn-row{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
}

/* ===== Versión móvil: avatar + saldo a ancho completo, mini menú dentro del panel ===== */
@media (max-width: 959px){
  .nav__user-wrapper{
    width:100%;
    margin-top:8px;
  }

  .nav__user{
    width:100%;
    justify-content:flex-start;
    border-radius:10px;
    background:var(--bg);
    color:#f2fbfa;
    padding:10px 12px;
  }

  .nav__balance{
    color:#000000;
    font-weight:600;
  }

  .user-menu{
    position:static;           /* deja de ser flotante */
    margin-top:6px;
    width:100%;
    box-shadow:0 8px 20px rgba(0,0,0,.3);
  }
}

/* ===========================
   ESTILOS PARA MODAL WALLET
   =========================== */

/* Colores de texto */
.wallet-modal__panel,
.wallet-modal__panel p,
.wallet-modal__panel label,
.wallet-modal__panel .hint,
.wallet-modal__panel .muted_2 {
    color: #0f191a !important; /* texto oscuro */
}

/* Títulos */
.wallet-modal__panel h2,
.wallet-modal__panel h3 {
    color: #0f191a !important;
}

/* Campos */
.wallet-form .ctrl {
    background: #ffffff !important;
    border: 1px solid #d0e3df !important;
}

.wallet-form .ctrl input,
.wallet-form .ctrl textarea {
    color: #0f191a !important;
}

.wallet-form .addon {
    color: #0f191a !important;
    background: #f8f8f8 !important;
    border-right: 1px solid #d0e3df !important;
}

/* Datos bancarios */
.wallet-method .step {
    background: #e8f5f3 !important;
    padding: 12px;
    border-radius: 10px;
    color: #0f191a !important;
}

.wallet-method .step b {
    color: #0f191a !important;
}

/* Botón Mercadopago */
.wallet-form .btn.btn--accent {
    background: #ffd041 !important;
    color: #0f191a !important;
    font-weight: 600;
    border: 0;
}

/* Botón Transferencia */
.wallet-form .btn.btn--ghost {
    background: #0f191a !important;
    color: #ffffff !important;
    border: 0;
}

/* Hover */
.wallet-form .btn.btn--accent:hover {
    background: #ffcc24 !important;
}

.wallet-form .btn.btn--ghost:hover {
    background: #1a2b2b !important;
}

/* ===========================
   MÉTODOS DE PAGO: COLAPSABLES
   =========================== */

.wallet-method {
    background: #f2fbfa;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d9ece7;
}

/* Botón de encabezado */
.wallet-method__header {
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: #0f191a;
}

.wallet-method__header:hover {
    background: #e5f7f4;
}

.wallet-method__header i {
    transition: transform .25s ease;
}

/* Contenido colapsable */
.wallet-method__body {
    max-height: 0;
    overflow: hidden;
    padding: 0 14px;
    transition: max-height .35s ease, padding .2s ease;
}

/* Activo (expandido) */
.wallet-method.is-open .wallet-method__body {
    max-height: 600px; /* suficiente para los formularios largos */
    padding: 10px 14px 14px;
}

.wallet-method.is-open .wallet-method__header i {
    transform: rotate(180deg);
}
.footer {
  background: #0e1722;
  color: #e3e8ef;
  padding: 40px 0;
  margin-top: 40px;
}

.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.footer__about {
  color: #c5ced8;
  font-size: .9rem;
  margin-bottom: 10px;
}

.footer__col a {
  display: block;
  color: #c5ced8;
  font-size: .9rem;
  margin: 4px 0;
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--cta);
}

.footer-payments {
  text-align: center;
}

.footer-payments h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 600;
}

.footer-payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 18px;
  justify-items: center;
  align-items: center;
  padding: 0 20px;
}

.footer-payments-grid img {
  width: 50px;
  height: auto;
  filter: brightness(0.95);
  transition: transform 0.2s ease;
}

.footer-payments-grid img:hover {
  transform: scale(1.05);
}


/* === Cards de sorteos en home === */
.raffle-card__owner{
  display:flex;
  align-items:center;
  gap:8px;
  margin:4px 0 6px;
  font-size:.9rem;
}

.raffle-card__owner-avatar{
  width:28px;
  height:28px;
  border-radius:999px;
  object-fit:cover;
}

.raffle-card__owner-name{
  color:var(--text-strong);
  font-weight:600;
  text-decoration:none;
}

.raffle-card__owner-name:hover{
  text-decoration:underline;
}

.raffle-card__meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:6px 0;
  font-size:.85rem;
}

.raffle-card__rating{
  display:flex;
  align-items:center;
  gap:4px;
}

.raffle-card__stars{
  color:#ffcc33;
  font-size:.9rem;
}

.raffle-card__rating-text{
  color:var(--text-muted);
}

.raffle-card__price{
  font-weight:500;
}

.raffle-card__progress{
  margin-top:4px;
}

.raffle-card__progress-bar{
  width:100%;
  height:6px;
  border-radius:999px;
  background:rgba(255,255,255,0.07);
  overflow:hidden;
  margin-bottom:4px;
}

.raffle-card__progress-bar span{
  display:block;
  height:100%;
  background:var(--accent);
}

.raffle-card__participants{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:6px;
}

.raffle-card__avatars{
  display:flex;
  align-items:center;
}

.raffle-card__avatars img{
  width:22px;
  height:22px;
  border-radius:999px;
  object-fit:cover;
  border:2px solid var(--bg-card);
  margin-left:-6px;
}
.raffle-card__avatars img:first-child{
  margin-left:0;
}

/* === Modal de detalle de sorteo === */
.raffle-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:260;
}

.raffle-modal.is-open{
  display:block;
}

.raffle-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
}

.raffle-modal__panel{
  position:relative;
  max-width:900px;
  margin:20px auto;
  background:var(--bg-card);
  border-radius:20px;
  padding:18px 18px 20px;
  z-index:1;
  max-height:calc(100vh - 40px);
  overflow-y:auto;
}

.raffle-modal__close{
  position:absolute;
  right:12px;
  top:8px;
  border:0;
  background:transparent;
  font-size:22px;
  cursor:pointer;
  color:var(--text-muted);
}

/* Layout interno del detalle */
.raffle-detail{
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap:18px;
}

.raffle-detail__media img{
  width:100%;
  border-radius:14px;
  object-fit:cover;
}

.raffle-detail__owner{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0;
}

.raffle-detail__owner img{
  width:34px;
  height:34px;
  border-radius:999px;
  object-fit:cover;
}

.raffle-detail__rating{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.9rem;
  margin-bottom:8px;
}

.raffle-detail__meta-row{
  display:flex;
  gap:16px;
  margin:10px 0;
  font-size:.9rem;
}

.raffle-detail__meta-row > div{
  flex:1;
}

.raffle-detail__participants{
  margin-top:8px;
}

.raffle-detail__reviews{
  margin-top:14px;
}

.review{
  display:flex;
  gap:10px;
  margin-top:8px;
}

.review__avatar img{
  width:32px;
  height:32px;
  border-radius:999px;
  object-fit:cover;
}

.review__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:4px;
}

.review__rating{
  color:#ffcc33;
  font-size:.9rem;
}

.raffle-detail__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

/* Responsive modal */
@media (max-width: 768px){
  .raffle-detail{
    grid-template-columns:1fr;
  }
}

/* === Galería / carrusel en modal de sorteo ======================= */
.raffle-detail__media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* contenedor de imagen grande + flechas */
.raffle-carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0c305d;        /* fondo por si la imagen tarda */
}

/* imagen grande */
.raffle-carousel__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
}

/* flechas prev / next */
.raffle-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.raffle-carousel__nav--prev { left: 10px; }
.raffle-carousel__nav--next { right: 10px; }

/* cuadricula de miniaturas */
.raffle-carousel__thumbs {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 6px;
}

.raffle-carousel__thumb {
  display: block;
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
}

/* thumb seleccionada */
.raffle-carousel__thumb.is-active {
  border-color: #ffcf33;      /* amarillo marca */
}

/* Estrellas del input de rating (si aún no lo tienes) */
.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.rating-input input[type="radio"] {
  display: none;
}
.rating-input label {
  cursor: pointer;
  font-size: 20px;
  color: #ccc;
}
.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #ffcf33;
}

/* un poco de ajuste móvil del modal */
@media (max-width: 640px) {
  .raffle-modal__panel {
    max-width: 100%;
    margin: 12px;
  }

  .raffle-carousel__image {
    max-height: 220px;
  }
}


/* =========================================================
   Página de detalles de sorteo (raffle.php)
   ========================================================= */

.raffle-page {
  padding: 24px 0 40px;
}

.raffle-page__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

/* CABECERA */
.raffle-page__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.raffle-page__head-left {
  min-width: 0;
}

.raffle-page__title {
  font-size: 1.3rem;
  margin: 0 0 4px;
  color: var(--text);
}

.raffle-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

.raffle-page__meta b {
  color: #0f5dcc; /* azul fuerte para la fecha */
}

.raffle-page__meta-rating {
  color: #111827;
}

.raffle-page__stars {
  margin-left: 4px;
  color: #f59e0b;      /* amarillo anaranjado para estrellas */
  letter-spacing: 0.03em;
}

.raffle-page__creator {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.raffle-page__creator a {
  color: #0f5dcc;
  font-weight: 600;
}

.raffle-page__creator a:hover {
  text-decoration: underline;
}

/* Precio */
.raffle-page__head-right {
  text-align: right;
  white-space: nowrap;
}

.raffle-page__price-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f5dcc;
}

.raffle-page__price-amount small {
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 2px;
  color: #64748b;
}

.raffle-page__price-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* MEDIA: imagen principal + thumbs */
.raffle-page__media {
  margin-top: 10px;
}

.raffle-page__cover {
  background: #f1f5ff;
  border-radius: 14px;
  border: 1px solid var(--line);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.raffle-page__cover img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  display: block;
}

/* Thumbs centradas, sin recortes */
.raffle-page__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.raffle-page__thumb {
  flex: 0 0 auto;
  background: #f8faff;
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 140px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.raffle-page__thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* Secciones */
.raffle-page__section {
  margin-top: 16px;
}

.raffle-page__section h2 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: #0f172a;
}

.raffle-page__section p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Progreso */
.raffle-page__progress-label {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text);
}

.raffle-page__progress-sub {
  color: var(--muted);
  margin-left: 4px;
}

.raffle-page__progress-bar {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #edf2ff;
  overflow: hidden;
}

.raffle-page__progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cta), var(--cta2));
}

/* Avatares de participantes */
.raffle-page__avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.raffle-page__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

.raffle-page__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reseñas */
.raffle-page__reviews {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.raffle-page__review {
  background: #f3f6ff;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid #d0ddff;
}

.raffle-page__review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.raffle-page__review-header a {
  color: #0f5dcc;
  font-weight: 600;
}

.raffle-page__review-header a:hover {
  text-decoration: underline;
}

.raffle-page__review-stars {
  color: #f59e0b;
  font-size: 0.9rem;
}

.raffle-page__review p {
  margin: 0;
  font-size: 0.9rem;
}

/* CTA */
.raffle-page__section--cta {
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .raffle-page__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .raffle-page__head-right {
    text-align: left;
  }

  .raffle-page__price-amount {
    font-size: 1.4rem;
  }
}


/* =======================================================
   LIGHTBOX DE GALERÍA (raffle.php)
   ======================================================= */

.raffle-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 400;
}

.raffle-lightbox.is-open {
  display: block;
}

.raffle-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.raffle-lightbox__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.raffle-lightbox__image {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.55);
  background: #ffffff;
  object-fit: contain;
}

/* Botón cerrar */
.raffle-lightbox__close {
  position: absolute;
  top: 18px;
  right: 24px;
  border: 0;
  background: rgba(255,255,255,0.8);
  font-size: 32px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.raffle-lightbox__close:hover {
  background: #fff;
}

/* Flechas */
.raffle-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255,255,255,0.8);
  font-size: 40px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.raffle-lightbox__nav:hover {
  background: #fff;
}

.raffle-lightbox__nav--prev { left: 20px; }
.raffle-lightbox__nav--next { right: 20px; }

/* Responsive */
@media (max-width: 560px) {
  .raffle-lightbox__nav {
    font-size: 34px;
    width: 40px;
    height: 40px;
  }

  .raffle-lightbox__close {
    top: 12px;
    right: 16px;
  }
}

/* =========================================================
   Página Explore (explore.php)
   ========================================================= */

.explore-page {
  padding: 24px 0 40px;
}

.explore-page__header h1 {
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.explore-page__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Filtros */
.explore-page__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.explore-page__filter {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
}

.explore-page__filter:hover {
  background: var(--ghost-hover);
}

.explore-page__filter.is-active {
  background: var(--cta);
  border-color: var(--cta2);
  color: #1f2933;
}

/* Grid */
.explore-page__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .explore-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .explore-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card */
.explore-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

.explore-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(15,23,42,0.14);
}

/* Imagen + badge */
.explore-card__media {
  position: relative;
  background: #f1f5ff;
}

.explore-card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.explore-card__badge {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #0f5dcc;
  color: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.1;
}

.explore-card__badge-day {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.explore-card__badge-month {
  display: block;
  font-size: 0.7rem;
}

/* Cuerpo */
.explore-card__body {
  padding: 10px 12px 12px;
}

.explore-card__title {
  font-size: 1rem;
  margin: 0 0 4px;
  color: #0f172a;
}

.explore-card__desc {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Meta (precio + vendidos) */
.explore-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.explore-card__price-label,
.explore-card__sold-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.explore-card__price-value {
  font-weight: 700;
  color: #0f5dcc;
}

.explore-card__sold-value {
  font-weight: 600;
}

/* Progreso */
.explore-card__progress {
  margin-top: 4px;
}

.explore-card__progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #edf2ff;
  overflow: hidden;
  margin-bottom: 3px;
}

.explore-card__progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cta), var(--cta2));
}

.explore-card__progress-text {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive pequeños */
@media (max-width: 480px) {
  .explore-page__filters {
    gap: 6px;
  }
  .explore-page__filter {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }
}

/* =========================================================
   Página de sorteos finalizados (finished.php)
   ========================================================= */

.finished-page {
  padding: 24px 0 40px;
}

.finished-page__header h1 {
  font-size: 1.4rem;
  margin: 0 0 4px;
}

.finished-page__subtitle {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Grid */
.finished-page__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .finished-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .finished-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card */
.finished-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  color: inherit;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

/* Imagen + badge */
.finished-card__media {
  position: relative;
  background: #f1f5ff;
}

.finished-card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.finished-card__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #475569;
  color: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.1;
}

.finished-card__badge-day {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.finished-card__badge-month {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
}

/* Cuerpo */
.finished-card__body {
  padding: 12px 14px 16px;
}

.finished-card__title {
  font-size: 1rem;
  margin: 0 0 8px;
  color: #0f172a;
}

/* Ganador */
.finished-card__winner {
  font-size: 0.92rem;
  margin: 0 0 8px;
  line-height: 1.4;
}

.finished-card__winner a {
  color: #0f5dcc;
  font-weight: 600;
}

.finished-card__winner a:hover {
  text-decoration: underline;
}

.finished-card__winner.pending {
  color: #64748b;
}

/* Fecha finalización */
.finished-card__end {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

/* Hover */
.finished-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(15,23,42,0.14);
}

/* Responsive móvil */
@media (max-width: 480px) {
  .finished-page__grid {
    gap: 12px;
  }
}


/* ========================
   Botón compartir raffle.php
   ======================== */
.raffle-page__cover {
  position: relative;
}

.raffle-page__share-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--cta);
  color: #1f2933;
  border: 0;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 0 #c48a00;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.raffle-page__share-btn:hover {
  background: var(--cta2);
}

/* ========================
   Formulario de reseñas en raffle.php
   ======================== */
.raffle-page__review-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.raffle-page__textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d0e3df;
  font-size: 1rem;
  resize: vertical;
}

.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.rating-input input[type="radio"] {
  display: none;
}

.rating-input label {
  cursor: pointer;
  font-size: 28px;
  color: #ccc;
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #ffcf33;
}
/* ================================
   MODAL COMPRAR BOLETOS — REAL
   ================================ */

#raffle-buy-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#raffle-buy-modal.is-open {
  display: flex;
  background: rgba(0, 0, 0, 0.75);
}

/* Panel */
.raffle-buy-modal__panel {
  width: 100%;
  max-width: 430px;
  background: #08152b;
  border-radius: 22px;
  padding: 24px 22px 28px;
  color: #e2ecff;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Botón cerrar */
.raffle-buy-modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #cbd5ff;
  cursor: pointer;
}
.raffle-buy-modal__close:hover {
  color: white;
}

/* Título */
.raffle-buy-modal__panel h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

/* Saldo */
.muted_2 b {
  color: #ffd642;
}

/* Labels */
.label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e7edff;
  margin-bottom: 4px;
  display:block;
}

/* ----- CANTIDAD RÁPIDA ----- */
.raffle-buy-form__quick {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.raffle-buy-quick {
  border: 1px solid #334155;
  background: #0f1d38;
  color: #e2ecff;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.15s;
}
.raffle-buy-quick:hover {
  background: #1e325c;
  border-color: #4f7fff;
}
.raffle-buy-quick.is-active {
  background: #ffc425;
  border-color: #ffd642;
  color: #08152b;
  font-weight: 700;
}

/* ----- INPUT NÚMERO ----- */
.field .ctrl {
  background: #eaf1ff;
  border-radius: 12px;
  padding: 4px 10px;
  border: 1px solid #c6d4e8;
}

.field input[type="number"] {
  width: 100%;
  padding: 8px 6px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #0f172a;
}

/* Texto mínimo */
.field small.muted {
  color: #cbd5e1;
  font-size: 0.82rem;
  margin-top: 3px;
  display: block;
}

/* ----- TOTAL ----- */
.raffle-buy-form__total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 1rem;
}

.raffle-buy-form__total b {
  color: #ffd642;
}

/* ----- BOTÓN PRINCIPAL ----- */
.btn-row .btn--accent {
  background: #ffd642;
  color: #000;
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 0 #c79c19;
  text-align:center;
}

.btn-row .btn--accent:hover {
  background: #ffe47a;
}

/* Nota inferior */
.raffle-buy-modal__note,
.muted_2 {
  color: #90a4c6 !important;
  text-align: center;
}


/* ===========================
   PANEL ADMIN
   =========================== */
.admin-page {
  background: #e8f0ff;
  padding: 24px 0 40px;
}

.admin-page__in {
  max-width: 1120px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 0;
}

.admin-header__subtitle {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: #4b5c7a;
}

.admin-header__pill {
  background: #0b2148;
  color: #f6f8ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  white-space: nowrap;
}

.admin-section {
  margin-bottom: 24px;
}

.admin-section--split {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1.1fr);
  gap: 20px;
}

.admin-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 26px rgba(15,23,42,0.08);
}

/* ===== Tarjetas resumen ===== */
.admin-grid {
  display: grid;
  gap: 16px;
}

.admin-grid--stats {
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
}

.admin-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px 16px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
  border: 1px solid rgba(148,163,184,0.3);
}

.admin-card--accent {
  background: linear-gradient(135deg,#2563eb,#38bdf8);
  color: #f9fbff;
  border-color: transparent;
}

.admin-card h3 {
  font-size: 0.9rem;
  margin: 0 0 6px;
}

.admin-card__big {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.admin-card__muted {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ===== Chart barras ===== */
.admin-chart {
  margin-top: 10px;
}

.admin-chart--bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 160px;
}

.admin-chart__bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
}

.admin-chart__bar-fill {
  width: 100%;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg,#38bdf8,#1d4ed8);
  box-shadow: 0 6px 16px rgba(37,99,235,0.4);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.admin-chart__bar:hover .admin-chart__bar-fill {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(37,99,235,0.55);
}

.admin-chart__bar-count {
  font-weight: 600;
  color: #0f172a;
}

.admin-chart__bar-label {
  color: #6b7280;
}

/* ===== Tablas ===== */
.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table thead {
  background: #0f172a;
  color: #e5edff;
}

.admin-table th,
.admin-table td {
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.admin-table tbody tr:nth-child(even) {
  background: #f1f5f9;
}

.admin-table tbody tr:hover {
  background: #e2e8f0;
}

.admin-table a {
  color: #2563eb;
  text-decoration: none;
}

.admin-table a:hover {
  text-decoration: underline;
}

.admin-empty {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--status-approved {
  background: #dcfce7;
  color: #15803d;
}

.badge--status-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge--status-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.badge--status-closed {
  background: #e5e7eb;
  color: #374151;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .admin-section--split {
    grid-template-columns: minmax(0,1fr);
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header__pill {
    align-self: stretch;
    text-align: center;
  }
}
/* ===== Panel admin: nuevas secciones ===== */
.admin-grid--two {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .admin-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-toplist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.admin-toplist__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
  margin-bottom: 6px;
}

.admin-toplist__name {
  font-weight: 600;
}

.admin-toplist__tag {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(37,99,235,0.12);
  color: #1d4ed8;
}

.admin-toplist__value {
  font-weight: 600;
  font-size: 0.9rem;
}
/* Centro de verificación (perfil) */
.section.section--narrow {
  display: block;
}

.section.section--narrow .verify-card {
  max-width: 760px;      /* ancho máximo de la tarjeta */
  margin: 0 auto;        /* centrar horizontalmente */
}

.section.section--narrow .verify-card .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.section.section--narrow .verify-card h2 {
  margin-bottom: 8px;
}

.section.section--narrow .verify-card .muted_2 {
  margin-top: 8px;
}

.section.section--narrow .verify-card + .verify-card {
  margin-top: 16px;
}


/* Modal flotante para Centro de verificación */
.verify-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 900;
}

.verify-modal-backdrop.is-open {
  display: flex;
}

.verify-modal {
  position: relative;
  background: #f9fafb;
  border-radius: 18px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  padding: 18px 20px 20px;
}

.verify-modal .form-card {
  box-shadow: none;
  margin: 0;
}

/* Botón de cerrar (X) */
.verify-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.verify-modal__close:hover {
  color: #111827;
}

/* Pills de verificación (si no lo tenías ya) */
.verify-pill {
  background: #f3f4f6;
  border: 1px solid #d0d0d0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
}

.verify-pill.ok {
  background: #e8ffe8;
  border-color: #92d892;
}

.verify-pill.no {
  background: #ffeaea;
  border-color: #e4b3b3;
}

.verify-pill:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

/* Icono de notificaciones en la topbar */
.nav__notif {
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: 8px;
  margin-right: 8px;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav__notif-icon {
  line-height: 1;
}

.nav__notif-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  padding: 0 4px;
  height: 18px;
  border-radius: 999px;
  background: #e02424; /* rojo */
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff; /* borde blanco para que destaque */
}

/* En móviles, que no rompa el layout */
@media (max-width: 768px) {
  .nav__notif {
    margin-left: 0;
    margin-right: 0;
  }
}
/* Contador de tiempo restante en sorteo */
.raffle-page__countdown {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.3;
  background: linear-gradient(135deg, #fefce8, #fffbeb);
  border: 1px solid #facc15;
  color: #78350f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

/* Iconito de reloj al inicio */
.raffle-page__countdown::before {
  content: "⏰";
  font-size: 1rem;
}

/* Texto “Tiempo restante:” */
.raffle-page__countdown > span:first-of-type {
  font-weight: 500;
}

/* El número del contador */
#raffle-countdown {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #92400e;
}

/* Puntito animado opcional al final del contador */
#raffle-countdown::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: raffle-countdown-pulse 1.5s infinite;
}

@keyframes raffle-countdown-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Responsive: en pantallas pequeñas que pueda romper línea sin verse feo */
@media (max-width: 600px) {
  .raffle-page__countdown {
    display: inline-flex;
    flex-wrap: wrap;
    text-align: left;
  }

  #raffle-countdown {
    margin-top: 2px;
  }
}
/* Contador pequeño en la card */
.raffle-card__countdown {
  margin: 6px 0 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #78350f;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  line-height: 1.2;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.raffle-card__countdown-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Contador dentro del modal de detalle (un poquito más grande) */
.raffle-detail__countdown {
  margin: 4px 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #78350f;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  line-height: 1.2;
  box-shadow: 0 0 0 1px rgba(30, 64, 175, 0.45);
}

.raffle-detail__countdown-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* === Skeleton loading para cards de sorteos === */
.raffle-card.skeleton-loading,
.raffle-card-finished.skeleton-loading {
  position: relative;
  overflow: hidden;
}

/* Fondo gris en zonas clave */
.raffle-card.skeleton-loading .card__media,
.raffle-card-finished.skeleton-loading .card__media {
  background: #e2e2e2;
}

.raffle-card.skeleton-loading h3,
.raffle-card-finished.skeleton-loading h3,
.raffle-card.skeleton-loading .raffle-card__owner,
.raffle-card-finished.skeleton-loading .raffle-card__owner,
.raffle-card.skeleton-loading .raffle-card__meta,
.raffle-card-finished.skeleton-loading .raffle-card__meta,
.raffle-card.skeleton-loading .raffle-card__progress,
.raffle-card-finished.skeleton-loading .raffle-card__progress {
  position: relative;
  color: transparent;
}

/* Bloques grises en lugar de texto */
.raffle-card.skeleton-loading h3::before,
.raffle-card-finished.skeleton-loading h3::before,
.raffle-card.skeleton-loading .raffle-card__meta::before,
.raffle-card-finished.skeleton-loading .raffle-card__meta::before,
.raffle-card.skeleton-loading .raffle-card__progress::before,
.raffle-card-finished.skeleton-loading .raffle-card__progress::before {
  content: "";
  display: block;
  width: 100%;
  height: 0.9rem;
  border-radius: 4px;
  background: #e2e2e2;
}

/* shimmer effect */
.raffle-card.skeleton-loading::after,
.raffle-card-finished.skeleton-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.3s infinite;
  pointer-events: none;
}

@keyframes skeleton-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.raffle-wheel-block {
  margin-top: 1.5rem;
}

.raffle-wheel {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  background: radial-gradient(circle at top, #0f172a 0%, #020617 55%, #000 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.7),
    0 18px 45px rgba(15, 23, 42, 0.9);
}

.raffle-wheel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(90deg, #020617, #020617, #020617);
  padding: 10px 0;
  margin-bottom: 0.75rem;
}

.raffle-wheel__strip {
  display: flex;
  gap: 8px;
  padding: 4px 30px;
  will-change: transform;
}

.raffle-wheel__ticket {
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e5f9ff;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.6);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 10px rgba(56, 189, 248, 0.35);
  white-space: nowrap;
}

.raffle-wheel__ticket--winner {
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.2), rgba(15, 23, 42, 0.95));
  border-color: rgba(250, 204, 21, 0.95);
  color: #facc15;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 16px rgba(250, 204, 21, 0.7);
}

.raffle-wheel__indicator {
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.raffle-wheel__indicator::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #ffd54f;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.95));
}


/* ===========================
   ADMIN: Plataforma Wallet UI
   =========================== */

.admin-shell{
  max-width: 1180px;
  margin: 0 auto;
}

.admin-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 14px;
}
.admin-title h1{
  margin:0;
  font-size: 28px;
  letter-spacing: -.02em;
}
.admin-sub{
  opacity:.75;
  font-size: 13px;
  margin-top: 4px;
}

.admin-alert{
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
  font-weight: 700;
}
.admin-alert.is-ok{
  background: rgba(16,185,129,.10);
  border-color: rgba(16,185,129,.35);
}
.admin-alert.is-err{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.35);
}

.admin-stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
@media (max-width: 980px){
  .admin-stats{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .admin-stats{ grid-template-columns: 1fr; }
}

.admin-card{
  background: var(--card, #fff);
  border:1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
}
.admin-card__label{
  font-size: 12px;
  letter-spacing:.08em;
  text-transform: uppercase;
  opacity:.72;
  font-weight: 900;
}
.admin-card__value{
  font-size: 26px;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: -.02em;
}
.admin-card__meta{
  margin-top: 6px;
  font-size: 12px;
  opacity: .75;
}

.admin-section{
  background: var(--card, #fff);
  border:1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
  margin-top: 12px;
}
.admin-section__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.admin-section__head h2{
  margin:0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.admin-hint{
  font-size: 12px;
  opacity: .75;
}

.admin-grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 980px){
  .admin-grid-2{ grid-template-columns: 1fr; }
}

.admin-form .field{
  margin-top: 10px;
}
.admin-form label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  opacity: .8;
  margin-bottom: 6px;
}
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="search"],
.admin-form textarea,
.admin-form select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus{
  border-color: rgba(255,199,0,.85);
  box-shadow: 0 0 0 4px rgba(255,199,0,.18);
}
.admin-form .row{
  display:flex;
  gap: 10px;
  align-items:flex-end;
}
.admin-form .row > *{ flex:1; }
@media (max-width: 520px){
  .admin-form .row{ flex-direction: column; align-items: stretch; }
}

.admin-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background:#fff;
  font-weight: 900;
  cursor:pointer;
  text-decoration:none;
  transition: transform .08s ease, filter .15s ease;
}
.admin-btn:hover{ filter: brightness(.98); }
.admin-btn:active{ transform: translateY(1px); }

.admin-btn--accent{
  border-color: rgba(255,199,0,.55);
  box-shadow: 0 8px 18px rgba(255,199,0,.18);
}
.admin-btn[disabled]{
  opacity: .55;
  cursor: not-allowed;
}

.badge--ok{ background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.35); }
.badge--warn{ background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); }
.badge--err{ background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); }

.table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius: 16px;
}
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 860px;
}
.table thead th{
  text-align:left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing:.08em;
  opacity:.75;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.table tbody td{
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.table tbody tr:nth-child(even){
  background: rgba(0,0,0,.015);
}
.table tbody tr:hover{
  background: rgba(255,199,0,.07);
}

.user-preview{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.user-preview__avatar{
  width:46px;height:46px;border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.03);
  overflow:hidden;
  flex:0 0 auto;
}
.user-preview__avatar img{ width:100%; height:100%; object-fit:cover; }
.user-preview__meta{
  flex:1;
}
.user-preview__name{
  font-weight: 950;
  margin: 0;
  font-size: 16px;
}
.user-preview__line{
  margin-top: 4px;
  font-size: 13px;
  opacity:.8;
}
.user-preview__kpis{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 10px;
}

/* FIX: el acordeón no debe cortar el botón */
.wallet-method__body{
  overflow: hidden; /* cerrado */
}

/* al abrir: permite que el contenido siga creciendo y NO lo recortes */
.wallet-method.is-open .wallet-method__body{
  max-height: 2000px;    /* suficiente para móvil */
  overflow: visible;     /* importante: que no recorte el botón */
  padding-bottom: 16px;  /* aire al final */
}

/* extra: que el panel del modal tenga espacio abajo */
.wallet-modal__panel{
  padding-bottom: 24px;
}
/* ===== Brand logo adaptable ===== */
.brand{
  display:flex;
  align-items:center;
  min-width:0;
}

/* Logo principal */
.brand__img{
  height: clamp(38px, 5vw, 64px);
  width: auto;
  max-width: min(38vw, 420px);
  object-fit: contain;
  display:block;
}

/* Tablet */
@media (max-width: 900px){
  .brand__img{
    height: clamp(36px, 6vw, 58px);
    max-width: 60vw;
  }
}

/* Móvil */
@media (max-width: 480px){
  .brand__img{
    height: clamp(34px, 8vw, 54px);
    max-width: 68vw;
  }
}

/* =========================
   NAV + BOTONES — OVERRIDE
   (Pegar al final del CSS)
   ========================= */

/* 1) No cambies el color de links del NAV con el a:hover global */
.topbar a:hover,
.nav a:hover{
  color: inherit !important;
}

/* 2) Base button: consistente */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  user-select:none;
  text-decoration:none;
  transition: transform .12s ease, filter .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:active{ transform: translateY(1px); }
.btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(255,213,65,.25);
}

/* 3) Botón amarillo (CTA) más fino */
.btn--accent{
  background: linear-gradient(180deg, var(--cta), var(--cta2));
  color:#111827;
  border-color: rgba(196,138,0,.65);
  box-shadow: 0 6px 0 #c48a00;
}
.btn--accent:hover{
  filter: brightness(1.03);
}

/* 4) Ghost elegante (no negro duro) */
.btn--ghost{
  background: rgba(255,255,255,.08);
  color:#0f172a;
  border-color: rgba(59,130,246,.55);
}
.btn--ghost:hover{
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.85);
}

/* Si el ghost está sobre fondo oscuro (topbar / nav) */
.topbar .btn--ghost,
.nav .btn--ghost{
  color:#eaf2ff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}
.topbar .btn--ghost:hover,
.nav .btn--ghost:hover{
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.35);
}

/* 5) NAV desktop bonito: pills + hover */
@media (min-width: 960px){
  .nav{
    gap: 8px !important;
  }
  .nav__link{
    display:inline-flex;
    align-items:center;
    padding:10px 12px;
    border-radius:999px;
    font-weight:800;
    color: rgba(255,255,255,.92);
    background: transparent;
    border:1px solid transparent;
  }
  .nav__link:hover{
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
  }

  /* Link activo (si le agregas class="is-active") */
  .nav__link.is-active{
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.24);
  }

  /* CTA en el nav (si usas nav__link--cta) */
  .nav__link--cta{
    background: rgba(255,213,65,.95);
    color:#0b1220;
    border-color: rgba(196,138,0,.7);
    box-shadow: 0 3px 0 #c48a00;
  }
  .nav__link--cta:hover{
    filter: brightness(1.03);
  }
}

/* 6) El botón full debe tener fondo si lo usas como CTA */
.btn--full{
  width:100%;
  background: linear-gradient(180deg, var(--cta), var(--cta2));
  border-color: rgba(196,138,0,.65);
}

    input::-ms-reveal,
    input::-ms-clear {
        display: none;
    }
    
.pass-field{
  position:relative;
  display:flex;
  align-items:center;
}

.pass-field input{
  width:100%;
  padding-right:44px;
}

.pass-toggle{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border:none;
  background:transparent;
  cursor:pointer;
  opacity:.6;
}

.pass-toggle:hover{
  opacity:1;
}

.pass-toggle::before{
  content:"";
  display:block;
  width:100%;
  height:100%;
  background:no-repeat center/contain url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238aa3c7'>\
<path d='M12 5c-7 0-11 7-11 7s4 7 11 7 11-7 11-7-4-7-11-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/>\
<circle cx='12' cy='12' r='2.5' fill='%23fff'/>\
</svg>");
}

.pass-toggle.is-visible::before{
  background:no-repeat center/contain url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238aa3c7'>\
<path d='M2 4l18 16M12 5c-7 0-11 7-11 7 1.6 2.6 4 5.1 7.2 6.3M14.8 18.3c3.4-1.2 6-3.7 7.2-6.3 0 0-4-7-11-7-1.5 0-2.9.3-4.2.8'/>\
</svg>");
}
