/* ══════════════════════════════════════════════════
   estilos-dias.css  —  LEZO • Modal de días/puertas
   Diseño mejorado con gradientes, sombras y animaciones
   Enlazar en eventos.html:
   <link rel="stylesheet" href="./assets/css/estilos-dias.css">
   ══════════════════════════════════════════════════ */

:root {
    --gold: #FFD700;
    --gold-light: #fde047;
    --gold-dark: #d4af37;
    --dark-bg: #0f1419;
    --dark-card: #1a1f2e;
    --dark-border: #2a3142;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-muted: #6b7280;
}

/* ─── Botón de toggle en la tarjeta ──────────────── */
.ev-dias-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, rgba(234,179,8,0.15) 0%, rgba(234,179,8,0.05) 100%);
    border: 1.5px solid rgba(234,179,8,0.5);
    border-radius: 0.8rem;
    padding: 0.7rem 1.2rem;
    color: #fde047;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}
.ev-dias-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: left 0.3s ease;
}
.ev-dias-toggle:hover {
    background: linear-gradient(135deg, rgba(234,179,8,0.25) 0%, rgba(234,179,8,0.12) 100%);
    border-color: rgba(234,179,8,0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234,179,8,0.15);
}
.ev-dias-toggle:hover::before {
    left: 100%;
}
.ev-dias-toggle-icon {
    font-size: 1rem;
}

/* ─── Backdrop / overlay ─────────────────────────── */
.dias-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeInBackdrop 0.3s ease;
}
.dias-modal-backdrop.hidden {
    display: none !important;
}
@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Caja del modal ─────────────────────────────── */
.dias-modal-box {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.98) 0%, rgba(26, 31, 46, 0.98) 100%);
    border: 1.5px solid rgba(234,179,8,0.3);
    border-radius: 1.5rem;
    padding: 2rem 2rem 1.75rem;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), 
                0 0 40px rgba(234,179,8,0.1),
                inset 0 1px 0 rgba(255,255,255,0.05);
    animation: slideUpModal 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUpModal {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
    }
    to   { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}
.dias-modal-box::-webkit-scrollbar {
    width: 6px;
}
.dias-modal-box::-webkit-scrollbar-track {
    background: rgba(234,179,8,0.05);
    border-radius: 3px;
}
.dias-modal-box::-webkit-scrollbar-thumb {
    background: rgba(234,179,8,0.3);
    border-radius: 3px;
    transition: background 0.2s;
}
.dias-modal-box::-webkit-scrollbar-thumb:hover {
    background: rgba(234,179,8,0.5);
}

/* ─── Botón cerrar modal ─────────────────────────── */
.dias-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(234,179,8,0.12) 0%, rgba(234,179,8,0.04) 100%);
    border: 1px solid rgba(234,179,8,0.25);
    color: #d1d5db;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    font-weight: 300;
}
.dias-modal-close:hover {
    background: linear-gradient(135deg, rgba(234,179,8,0.25) 0%, rgba(234,179,8,0.1) 100%);
    color: #fde047;
    border-color: rgba(234,179,8,0.5);
    transform: scale(1.1) rotate(90deg);
}

/* ─── Cabecera del modal ─────────────────────────── */
.dias-modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(234,179,8,0.2);
}
.dias-modal-titulo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #fde047 0%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

/* ─── Navegación de días ─────────────────────────── */
.ev-dias-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(234,179,8,0.05);
    border: 1px solid rgba(234,179,8,0.15);
    border-radius: 1rem;
}
.ev-dias-nav {
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(234,179,8,0.15) 0%, rgba(234,179,8,0.08) 100%);
    border: 1.5px solid rgba(234,179,8,0.4);
    color: #fde047;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    position: relative;
}
.ev-dias-nav:hover:not(.disabled) {
    background: linear-gradient(135deg, rgba(234,179,8,0.25) 0%, rgba(234,179,8,0.15) 100%);
    border-color: rgba(234,179,8,0.7);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(234,179,8,0.2);
}
.ev-dias-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.ev-dias-titulo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.95rem;
    color: #fde047;
    text-align: center;
    flex: 1;
    line-height: 1.3;
    letter-spacing: 0.03em;
    font-weight: 600;
}

/* ─── Grid de puertas ────────────────────────────── */
.ev-puertas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 600px) {
    .ev-puertas-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

/* ─── Tarjeta de puerta ──────────────────────────── */
.ev-puerta {
    background: linear-gradient(135deg, rgba(31,41,55,0.9) 0%, rgba(26,31,46,0.95) 100%);
    border: 1.5px solid rgba(234,179,8,0.25);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.ev-puerta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234,179,8,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ev-puerta:hover {
    border-color: rgba(234,179,8,0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(234,179,8,0.15), 
                0 0 20px rgba(234,179,8,0.08);
}
.ev-puerta:hover::before {
    opacity: 1;
}
.ev-puerta-num {
    background: linear-gradient(135deg, rgba(234,179,8,0.2) 0%, rgba(234,179,8,0.1) 100%);
    border-bottom: 1.5px solid rgba(234,179,8,0.25);
    color: #fde047;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    padding: 0.5rem 0.6rem;
}
.ev-puerta-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    padding: 0.75rem;
    position: relative;
    overflow: hidden;
}
.ev-puerta-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.2) 100%);
}
.ev-puerta-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.ev-puerta-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(75,85,99,0.2) 0%, rgba(0,0,0,0.3) 100%);
    color: #374151;
    position: relative;
    z-index: 1;
}
.ev-puerta-body {
    padding: 0.8rem 0.8rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(0,0,0,0.15);
}
.ev-puerta-nombre {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f3f4f6;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.02em;
}
.ev-puerta-desc {
    font-size: 0.7rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.5;
}

/* ─── Imagen del premio dentro de la puerta ──────── */
.ev-puerta-premio-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(234,179,8,0.08) 0%, rgba(0,0,0,0.3) 100%);
    border-top: 1.5px solid rgba(234,179,8,0.2);
    padding: 0.6rem;
    overflow: hidden;
}
.ev-puerta-premio-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ─── Loading dentro del modal ───────────────────── */
.ev-dias-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 3rem 0;
    color: #9ca3af;
    font-size: 0.85rem;
}
.ev-mini-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2.5px solid rgba(234,179,8,0.15);
    border-top-color: #eab308;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}