/* =============================================
   PuffCase — sorteos-casehug.css
   ============================================= */

/* ── HERO ────────────────────────────────────── */
.hero {
    height: 320px !important;
    min-height: unset !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.hero .hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: url('/images/fondos/fondo-sorteo.jpg') center center / cover no-repeat !important;
    opacity: 0.65 !important;
}
.hero::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%,  rgba(124,58,237,0.55) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 15% 100%, rgba(157,95,245,0.30) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 100%, rgba(181,123,255,0.25) 0%, transparent 60%),
        radial-gradient(ellipse 30% 30% at 50% 110%, rgba(124,58,237,0.40) 0%, transparent 70%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}
.hero .hero-content { position: relative !important; z-index: 1 !important; }

.ch-hero-breadcrumb { margin-bottom: 18px; }
.ch-hero-breadcrumb a {
    color: rgba(255,255,255,.4);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color .2s;
}
.ch-hero-breadcrumb a:hover { color: #b57bff; }

.ch-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}
.ch-hero-logo-icon {
    font-size: 2.6rem;
    line-height: 1;
    filter: drop-shadow(0 0 18px rgba(124,58,237,.85));
}
.ch-hero-logo-x  { font-size: 1.3rem; color: rgba(255,255,255,.25); font-weight: 300; }
.ch-hero-logo-pc { height: 48px; filter: drop-shadow(0 0 12px rgba(181,123,255,.5)); }

/* ── TOOLBAR ──────────────────────────────────── */
.ch-toolbar {
    background: rgba(10,8,22,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top:    1px solid rgba(124,58,237,.18);
    border-bottom: 1px solid rgba(124,58,237,.12);
    padding: 12px 24px;
    position: sticky;
    top: 54px;
    z-index: 90;
}
.ch-toolbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.ch-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.38);
    font-size: 0.83rem;
}
.ch-stat strong { color: #d4c8ff; font-weight: 700; }
.ch-stat-sep    { color: rgba(124,58,237,.35); }

.ch-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.ch-filter-btn {
    background: transparent;
    border: 1px solid rgba(124,58,237,.22);
    color: rgba(255,255,255,.38);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: .3px;
}
.ch-filter-btn:hover {
    border-color: rgba(124,58,237,.5);
    color: #d4c8ff;
    background: rgba(124,58,237,.08);
}
.ch-filter-btn--active {
    background: rgba(124,58,237,.2);
    border-color: rgba(124,58,237,.6);
    color: #c084fc;
}

/* ── SECCIÓN / GRID ───────────────────────────── */
.ch-section { max-width: 1300px; margin: 0 auto; padding: 40px 24px 32px; }
.ch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Loading */
.ch-loading {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: center;
    gap: 14px; padding: 80px 0;
    color: rgba(255,255,255,.3);
    font-size: 0.9rem;
}
.ch-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(124,58,237,.18);
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: ch-spin .75s linear infinite;
}
@keyframes ch-spin { to { transform: rotate(360deg); } }

/* Empty */
.ch-empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: rgba(255,255,255,.35); }
.ch-empty-icon { font-size: 3.5rem; margin-bottom: 14px; }
.ch-empty h3   { font-family: 'Rajdhani', sans-serif; font-size: 1.45rem; color: #e0d5ff; margin-bottom: 8px; }
.ch-empty p    { font-size: 0.86rem; }

/* ══════════════════════════════════════════════
   CARD PREMIUM
══════════════════════════════════════════════ */
.ch-card {
    background: #0e0b1f;
    border: 1px solid rgba(124,58,237,.2);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 305px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0,0,0,.55);
    transition: transform .25s cubic-bezier(.34,1.1,.64,1), box-shadow .25s, border-color .25s;
    position: relative;
}
/* Brillo sutil en la esquina superior */
.ch-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(181,123,255,.4), transparent);
    pointer-events: none;
    z-index: 2;
}
.ch-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(124,58,237,.6);
    box-shadow: 0 20px 50px rgba(0,0,0,.65), 0 0 35px rgba(124,58,237,.18);
}
.ch-card--urgent { border-color: rgba(251,146,60,.38); }
.ch-card--urgent::before {
    background: linear-gradient(90deg, transparent, rgba(251,146,60,.5), transparent);
}
.ch-card--urgent:hover {
    border-color: rgba(251,146,60,.7);
    box-shadow: 0 20px 50px rgba(0,0,0,.65), 0 0 30px rgba(251,146,60,.2);
}

/* ── Imagen ───────────────────────────────────── */
.ch-card-img {
    position: relative;
    width: 100%; height: 195px;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 80% at 50% 60%, rgba(124,58,237,.18) 0%, #0e0b1f 100%);
    display: flex; align-items: center; justify-content: center;
}
.ch-card-img img {
    width: 90%; height: 90%;
    object-fit: contain;
    transition: transform .4s ease;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.7));
}
.ch-card:hover .ch-card-img img { transform: scale(1.07) translateY(-4px); }
.ch-card-img-fallback {
    font-size: 4rem;
    opacity: 0.18;
    position: absolute;
    transition: opacity .3s;
}
.ch-card:hover .ch-card-img-fallback { opacity: 0.28; }

/* Vignette suave */
.ch-card-img-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, transparent 55%, rgba(10,8,28,.85) 100%),
        radial-gradient(ellipse 110% 80% at 50% 100%, rgba(5,3,14,.5) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

/* ── Badge EN VIVO ────────────────────────────── */
.ch-card-badge {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.ch-card-badge--live {
    background: rgba(16,185,129,.15);
    border: 1px solid rgba(16,185,129,.4);
    color: #34d399;
}
.ch-card-badge--live::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: ch-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes ch-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}
.ch-card-badge--urgent {
    top: 36px;
    background: rgba(251,146,60,.18);
    border: 1px solid rgba(251,146,60,.45);
    color: #fb923c;
}

/* ── Banner depósito mínimo (sobre imagen, abajo) ── */
.ch-card-prize-banner {
    position: absolute;
    bottom: 10px; left: 12px;
    z-index: 3;
    display: flex; flex-direction: column; gap: 1px;
}
.ch-card-prize-label {
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(181,123,255,.7);
    text-transform: uppercase;
    letter-spacing: .8px;
    line-height: 1;
}
.ch-card-prize-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #a78bfa, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: .5px;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(167,139,250,.4));
}

/* ── Body ─────────────────────────────────────── */
.ch-card-body {
    padding: 12px 14px 14px;
    display: flex; flex-direction: column; gap: 10px;
    flex: 1;
    background: linear-gradient(to bottom, rgba(20,16,40,.6), rgba(14,11,31,1));
    border-top: 1px solid rgba(124,58,237,.12);
}

/* Título */
.ch-card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    color: #ede8ff;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer: participantes + botón */
.ch-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.ch-card-participants-row {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.72rem;
    color: rgba(255,255,255,.35);
    flex-shrink: 0;
}
.ch-card-time-inline {
    font-size: 0.68rem;
    font-weight: 600;
    color: #fb923c;
    background: rgba(251,146,60,.1);
    border: 1px solid rgba(251,146,60,.28);
    border-radius: 20px;
    padding: 2px 7px;
    white-space: nowrap;
    margin-left: 4px;
}

/* ── Chips legacy (por si se usan en otro sitio) ── */
.ch-card-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ch-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.71rem;
    padding: 3px 9px; border-radius: 20px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.4);
    white-space: nowrap;
}
.ch-chip--gold {
    background: rgba(240,192,64,.08);
    border-color: rgba(240,192,64,.25);
    color: #f0c040; font-weight: 700;
}
.ch-chip--urgent {
    background: rgba(251,146,60,.1);
    border-color: rgba(251,146,60,.28);
    color: #fb923c;
}

/* Caja código (card interna) */
.ch-card-code {
    background: rgba(124,58,237,.1);
    border: 1px solid rgba(124,58,237,.22);
    border-radius: 9px; padding: 9px 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.ch-card-code-label { font-size: 0.66rem; color: rgba(255,255,255,.3); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.ch-card-code-row   { display: flex; align-items: center; gap: 8px; }
.ch-card-code-text  { font-family: monospace; font-size: 1rem; color: #b57bff; font-weight: 800; flex: 1; letter-spacing: 2px; }

.ch-copy-btn {
    background: rgba(124,58,237,.3); color: #d4c8ff;
    border: 1px solid rgba(124,58,237,.45); border-radius: 6px;
    padding: 4px 11px; font-size: 0.72rem; font-weight: 600;
    cursor: pointer; transition: all .2s; white-space: nowrap;
}
.ch-copy-btn:hover   { background: rgba(124,58,237,.5); color: #fff; }
.ch-copy-btn.copiado { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.4); color: #4ade80; }

/* ── Botón participar ─────────────────────────── */
.ch-card-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; flex-shrink: 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    border: none; border-radius: 9px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem; font-weight: 700; letter-spacing: .3px;
    text-decoration: none; cursor: pointer;
    transition: all .2s;
    box-shadow: 0 3px 14px rgba(109,40,217,.4);
    white-space: nowrap;
    position: relative; overflow: hidden;
}
.ch-card-btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
    transform: translateX(-100%);
    transition: transform .4s;
}
.ch-card-btn:hover::after { transform: translateX(100%); }
.ch-card-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #9d5cf5);
    box-shadow: 0 5px 20px rgba(109,40,217,.6);
    transform: translateY(-1px);
    color: #fff;
}
.ch-card-btn:active { transform: translateY(0); }

/* ── PAGINACIÓN ───────────────────────────────── */
.ch-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; padding: 36px 24px;
}
.ch-page-btn {
    background: transparent;
    border: 1px solid rgba(124,58,237,.28);
    color: #b57bff; padding: 8px 22px; border-radius: 8px;
    font-size: 0.84rem; font-weight: 600; cursor: pointer;
    transition: all .2s; font-family: 'Rajdhani', sans-serif;
}
.ch-page-btn:hover:not(:disabled) {
    background: rgba(124,58,237,.15);
    border-color: rgba(124,58,237,.55); color: #fff;
}
.ch-page-btn:disabled { opacity: .28; cursor: not-allowed; }
.ch-page-info { color: rgba(255,255,255,.35); font-size: 0.82rem; }

/* ── BANNER CÓDIGO ────────────────────────────── */
.ch-code-banner {
    background: linear-gradient(135deg, rgba(124,58,237,.1) 0%, rgba(10,8,24,.6) 100%);
    border-top:    1px solid rgba(124,58,237,.25);
    border-bottom: 1px solid rgba(124,58,237,.12);
    padding: 14px 24px;
}
.ch-code-banner-inner {
    max-width: 1300px; margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ch-banner-left {
    display: flex; align-items: center; gap: 14px;
}
.ch-banner-icon {
    font-size: 1.7rem; line-height: 1; flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(124,58,237,.55));
}
.ch-code-banner-text  { display: flex; flex-direction: column; gap: 2px; }
.ch-code-banner-label { font-size: 0.9rem; font-weight: 700; color: #e0d5ff; }
.ch-code-banner-sub   { font-size: 0.74rem; color: rgba(255,255,255,.38); }

.ch-banner-right {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ch-code-banner-box {
    display: flex; align-items: center; gap: 10px;
    background: rgba(124,58,237,.14);
    border: 1px solid rgba(124,58,237,.4);
    border-radius: 10px; padding: 8px 16px;
}
.ch-code-banner-code {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem; font-weight: 800;
    color: #c084fc; letter-spacing: 3px;
    text-shadow: 0 0 18px rgba(124,58,237,.5);
}
.ch-copy-banner {
    background: rgba(124,58,237,.28); color: #d4c8ff;
    border: 1px solid rgba(124,58,237,.45); border-radius: 7px;
    padding: 5px 14px; font-size: 0.76rem; font-weight: 700;
    cursor: pointer; transition: all .2s; white-space: nowrap;
    font-family: 'Rajdhani', sans-serif;
}
.ch-copy-banner:hover   { background: rgba(124,58,237,.5); color: #fff; }
.ch-copy-banner.copiado { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.4); color: #4ade80; }

/* Botón visitar sitio */
.ch-banner-visit-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    border: none; border-radius: 9px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem; font-weight: 700; letter-spacing: .3px;
    text-decoration: none; white-space: nowrap;
    transition: all .2s;
    box-shadow: 0 3px 14px rgba(109,40,217,.35);
}
.ch-banner-visit-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 5px 20px rgba(124,58,237,.55);
    transform: translateY(-1px);
    color: #fff;
}

/* Variante KeyDrop — acento dorado */
.ch-banner-visit-btn--kd {
    background: linear-gradient(135deg, #a07010, #c89018);
    color: #1a0800;
    box-shadow: 0 3px 14px rgba(240,192,64,.2);
}
.ch-banner-visit-btn--kd:hover {
    background: linear-gradient(135deg, #b88010, #e0a820);
    box-shadow: 0 5px 20px rgba(240,192,64,.4);
    color: #1a0800;
}

/* ── SNAV ─────────────────────────────────────── */
.snav-wrap--primary {
    background: rgba(13,10,26,0.98);
    border-bottom: 1px solid rgba(124,58,237,.15);
    position: sticky; top: 0; z-index: 100;
}
.snav-wrap--primary .snav-inner {
    max-width: 1300px; margin: 0 auto;
    display: flex; align-items: center; gap: 4px;
    padding: 0 28px; overflow-x: auto; scrollbar-width: none;
}
.snav-wrap--primary .snav-inner::-webkit-scrollbar { display: none; }
.snav-wrap--primary .snav-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 20px 14px; text-decoration: none;
    color: rgba(255,255,255,.38);
    font-size: 0.88rem; font-weight: 700;
    font-family: 'Rajdhani', sans-serif; letter-spacing: .3px;
    white-space: nowrap; border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.snav-wrap--primary .snav-item:hover { color: #e0d5ff; border-bottom-color: rgba(124,58,237,.4); }
.snav-wrap--primary .snav-item--active { color: #fff; border-bottom-color: #7c3aed; }
.snav-wrap--primary .snav-icon { font-size: 1rem; line-height: 1; }
.snav-label { display: inline-flex; align-items: center; gap: 6px; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) { .ch-toolbar-inner { flex-direction: column; align-items: flex-start; } }
@media (max-width: 768px) {
    .ch-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
    .ch-code-banner-inner { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
    .ch-grid  { grid-template-columns: 1fr; }
    .ch-card  { max-width: 100%; }
    .ch-card-img { height: 170px; }
    .ch-card-prize-value { font-size: 1.35rem; }
    .ch-hero-logo { gap: 10px; }
    .ch-hero-logo-icon { font-size: 2rem; }
    .ch-hero-logo-pc   { height: 38px; }
}
@media (max-width: 600px) {
    .snav-wrap--primary .snav-item { padding: 13px 14px 11px; font-size: 0.82rem; }
}
