/* ================================
   PRÓXIMOS EVENTOS WIDGET
   ================================ */

/* Grid principal */
.proximos-eventos-grid {
    display: grid;
    width: 100%;
}

/* Grid adaptativo según número de eventos */
.proximos-eventos-grid.grid-cols-2-1 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
}

.proximos-eventos-grid.grid-cols-2-2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.proximos-eventos-grid.grid-cols-auto {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Responsive: colapsar a 1 columna en móvil */
@media (max-width: 1310px) {
    .proximos-eventos-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
		gap: 40px !important;
    }
}

/* Tarjeta de evento */
.evento-card {
    display: flex !important;
    flex-direction: row !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #ffffff;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Imagen del evento */
.evento-imagen-destacados {
	flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
	height: auto;
	background-color: black;
}

.evento-imagen-destacados{
	border-radius: 0 !important;
}

.evento-imagen-destacados img {
    width: 100%;
    height: auto !important;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.evento-card:hover .evento-imagen-destacados img {
    transform: scale(1.03);
}

/* Contenido del evento */
.evento-contenido {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 0 20px;
}

.evento-info-destacados {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Fecha */
.evento-fecha {
    font-weight: 600;
    font-size: 14px;
    color: #01a0e2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Título */
.evento-titulo {
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: #000000;
}

/* Descripción */
.evento-descripcion {
    line-height: 1.6;
    color: #374151;
    font-size: 15px;
}

/* Detalles (hora, ubicación) */
.evento-detalles {
    font-size: 14px;
    font-style: italic;
    color: #6b7280;
    margin-top: 4px;
}

/* Botones */
.evento-botones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
}

.evento-boton {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    background-color: #01a0e2;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
}

.evento-boton:hover {
    background-color: #0082b9;
}

.evento-boton:active {
    transform: translateY(0);
}

.evento-boton-secondary {
    background-color: #019ee1;
}

.evento-boton-secondary:hover {
    background-color: #0082b9;
}

/* Estado vacío */
.proximos-eventos-empty {
    padding: 60px 40px;
    text-align: center;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    background-color: #f8fafc;
    color: #334155;
    width: 100%;
}

/* Responsive adicional */
@media (max-width: 1024px) {
    .evento-titulo {
        font-size: 18px;
    }
    
    .evento-descripcion {
        font-size: 14px;
    }
    
    .evento-imagen img {
        height: 200px;
    }
}

@media (max-width: 768px) {
	.evento-card{
		flex-direction: column !important;
	}
	
    .evento-contenido {
        padding: 16px 0;
    }
    
    .evento-titulo {
        font-size: 16px;
    }
    
    .evento-descripcion {
        font-size: 13px;
    }
    
    .evento-imagen img {
        height: 180px;
    }
    
    .evento-botones {
        gap: 8px;
    }
    
    .evento-boton {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .proximos-eventos-empty {
        padding: 40px 20px;
        font-size: 14px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evento-card {
    animation: fadeInUp 0.5s ease-out;
}

.evento-card:nth-child(1) { animation-delay: 0s; }
.evento-card:nth-child(2) { animation-delay: 0.1s; }
.evento-card:nth-child(3) { animation-delay: 0.2s; }
.evento-card:nth-child(4) { animation-delay: 0.3s; }
.evento-card:nth-child(5) { animation-delay: 0.4s; }
.evento-card:nth-child(6) { animation-delay: 0.5s; }

/* Loading state (opcional) */
.proximos-eventos-loading {
    opacity: 0.6;
    pointer-events: none;
}

.proximos-eventos-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #01a0e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
