/* Mini Calendario Modal */
.mini-calendario-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mini-calendario-modal.active {
    opacity: 1;
    pointer-events: all;
}

.mini-calendario-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mini-calendario-container {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
    border: 2px solid rgba(227, 64, 40, 0.3);
    border-radius: 24px;
    width: min(900px, 92vw);
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(227, 64, 40, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.mini-calendario-modal.active .mini-calendario-container {
    transform: scale(1);
}

/* Header del modal */
.mini-calendario-header {
    background: linear-gradient(135deg, rgba(227, 64, 40, 0.2), rgba(0, 0, 0, 0.4));
    padding: 24px 30px;
    border-bottom: 1px solid rgba(227, 64, 40, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-calendario-title {
    font-size: 1.8rem;
    margin: 0;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-calendario-title i {
    color: #e34028;
    font-size: 1.6rem;
}

.close-modal-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.close-modal-btn:hover {
    background: #e34028;
    border-color: #e34028;
    transform: rotate(90deg);
}

/* Contenido del modal */
.mini-calendario-content {
    max-height: calc(85vh - 90px);
    overflow-y: auto;
    padding: 30px;
}

/* Scrollbar personalizado */
.mini-calendario-content::-webkit-scrollbar {
    width: 10px;
}

.mini-calendario-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 10px 0;
}

.mini-calendario-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e34028, #a02818);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.mini-calendario-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff4830, #e34028);
}

/* Firefox scrollbar */
.mini-calendario-content {
    scrollbar-width: thin;
    scrollbar-color: #e34028 rgba(0, 0, 0, 0.3);
}

/* Lista de eventos - Minimalista */
.month-separator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin: 16px 0 8px 0;
    border-bottom: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Separador rojo para meses pasados */
.month-separator--past {
    border-bottom-color: rgba(227, 64, 40, 0.3);
    color: #e34028;
}

/* Separador verde para meses presentes/futuros */
.month-separator--upcoming {
    border-bottom-color: rgba(39, 174, 96, 0.3);
    color: #27ae60;
}

.month-separator:first-child {
    margin-top: 0;
}

.month-separator i {
    font-size: 0.9rem;
}

/* Items de evento - Una línea (fecha + lugar) */
.evento-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.evento-list-item:hover {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.4);
    transform: translateX(4px);
}

.evento-list-item--past {
    opacity: 0.5;
}

/* Hover rojo para eventos pasados */
.evento-list-item--past:hover {
    background: rgba(227, 64, 40, 0.15);
    border-color: rgba(227, 64, 40, 0.4);
    opacity: 0.8;
}

/* Fecha del evento */
.evento-list-item__date {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 90px;
    flex-shrink: 0;
}

.date-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
    line-height: 1;
}

/* Número de fecha rojo para eventos pasados */
.evento-list-item--past .date-number {
    color: #e34028;
}

.date-day {
    font-size: 0.85rem;
    color: #999;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

/* Ubicación del evento */
.evento-list-item__location {
    flex: 1;
    font-size: 0.95rem;
    color: #c0c0c0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evento-list-item__location i {
    color: #27ae60;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Icono rojo para eventos pasados */
.evento-list-item--past .evento-list-item__location i {
    color: #e34028;
}

.evento-list-item__location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Flecha */
.evento-list-item__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.evento-list-item:hover .evento-list-item__arrow {
    background: #27ae60;
    color: #fff;
    transform: translateX(3px) scale(1.1);
}

/* Flecha roja para eventos pasados */
.evento-list-item--past .evento-list-item__arrow {
    background: rgba(227, 64, 40, 0.15);
    color: #e34028;
}

.evento-list-item--past:hover .evento-list-item__arrow {
    background: #e34028;
    color: #fff;
}

/* Mensaje sin eventos */
.no-eventos-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-eventos-message i {
    font-size: 4rem;
    color: #444;
    margin-bottom: 20px;
    display: block;
}

.no-eventos-message p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Animación de latidos */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.08);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* Botón para abrir el modal */
.btn-open-calendario {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #e34028, #c03020);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(227, 64, 40, 0.3);
    animation: heartbeat 2s ease-in-out infinite;
}

.btn-open-calendario:hover {
    background: linear-gradient(135deg, #ff4830, #e34028);
    box-shadow: 0 8px 20px rgba(227, 64, 40, 0.5);
    animation-play-state: paused;
    transform: scale(1.05) translateY(-2px);
}

.btn-open-calendario i {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mini-calendario-container {
        width: 95vw;
        max-height: 90vh;
    }
    
    .mini-calendario-content {
        padding: 20px;
    }
    
    .mini-calendario-header {
        padding: 16px 20px;
    }
    
    .mini-calendario-title {
        font-size: 1.2rem;
    }
    
    .date-number {
        font-size: 1.3rem;
    }
    
    .date-day {
        font-size: 0.8rem;
    }
    
    .evento-list-item__location {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .mini-calendario-content {
        padding: 16px;
    }
    
    .mini-calendario-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .month-separator {
        font-size: 0.9rem;
        margin: 12px 0 6px 0;
        padding: 6px 0;
    }
    
    .evento-list-item {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .evento-list-item__date {
        min-width: 70px;
    }
    
    .date-number {
        font-size: 1.2rem;
    }
    
    .date-day {
        font-size: 0.75rem;
    }
    
    .evento-list-item__location {
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .evento-list-item__arrow {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}
