/* ================================
   EVENTOS HOME - DISEÑO MODERNO
   Sistema de Cards para Agenda en Página Principal
   ================================ */

/* Grid de eventos en home */
.eventos-home-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-top: 3rem;
}

/* Card individual de evento */
.evento-home-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.evento-home-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(1, 172, 228, 0.15);
    border-color: #01ace4;
    text-decoration: none;
    color: inherit;
}

.evento-home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #01ace4, #0d8dc4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.evento-home-card:hover::before {
    opacity: 1;
}

/* Imagen del evento */
.evento-home-imagen {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.evento-home-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.evento-home-card:hover .evento-home-imagen img {
    transform: scale(1.05);
}

/* Badge de fecha flotante */
.evento-fecha-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #01ace4, #0d8dc4);
    color: white;
    padding: 12px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(1, 172, 228, 0.4);
    min-width: 70px;
    transition: all 0.3s ease;
}

/* Badge con SPMyCM tiene padding extra */
.evento-fecha-badge.con-spmycm {
    padding: 12px 12px 10px 12px;
}

.fecha-dia {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.fecha-mes {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Indicador SPMyCM dentro del badge */
.spmycm-indicator {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: -10px;
    padding: 6px 8px;
    border-radius: 0 0 15px 15px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulseGlow 2s ease-in-out infinite;
}

.spmycm-indicator i {
    font-size: 0.75rem;
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.7);
    }
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Contenido del evento */
.evento-home-contenido {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.evento-home-titulo {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.evento-home-card:hover .evento-home-titulo {
    color: #01ace4;
}

/* Información con iconos */
.evento-home-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.evento-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.evento-info-item i {
    color: #01ace4;
    font-size: 0.95rem;
    margin-top: 2px;
    min-width: 16px;
}

.evento-info-item strong {
    color: #2c3e50;
}

/* Descripción */
.evento-home-descripcion {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Footer de la card */
.evento-home-footer {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.evento-leer-mas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #01ace4;
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.evento-home-card:hover .evento-leer-mas {
    gap: 0.8rem;
}

.evento-leer-mas i {
    transition: transform 0.3s ease;
}

.evento-home-card:hover .evento-leer-mas i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .eventos-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .eventos-home-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .evento-home-imagen {
        height: 180px;
    }
    
    .evento-home-titulo {
        font-size: 1.2rem;
    }
    
    .evento-fecha-badge {
        top: 10px;
        right: 10px;
        min-width: 60px;
        padding: 10px;
    }
    
    .evento-fecha-badge.con-spmycm {
        padding: 10px 10px 8px 10px;
    }
    
    .fecha-dia {
        font-size: 20px;
    }
    
    .fecha-mes {
        font-size: 10px;
    }
    
    .spmycm-indicator {
        margin-top: 6px;
        padding-top: 6px;
        padding: 5px 6px;
        margin-left: -10px;
        margin-right: -10px;
        margin-bottom: -8px;
        font-size: 0.65rem;
        gap: 3px;
    }
    
    .spmycm-indicator i {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .eventos-home-grid {
        gap: 1rem;
    }
    
    .evento-home-card {
        border-radius: 15px;
    }
    
    .evento-home-imagen {
        height: 160px;
    }
    
    .evento-home-contenido {
        padding: 1.2rem;
    }
    
    .evento-home-titulo {
        font-size: 1.1rem;
        min-height: auto;
    }
    
    .evento-info-item {
        font-size: 0.85rem;
    }
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

/* Estados de loading */
.evento-home-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Accesibilidad */
.evento-home-card:focus {
    outline: 3px solid #01ace4;
    outline-offset: 2px;
}

/* Sin eventos */
.eventos-home-vacio {
    text-align: center;
    padding: 3rem 2rem;
    grid-column: 1 / -1;
}

.eventos-home-vacio i {
    font-size: 3rem;
    color: #01ace4;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.eventos-home-vacio h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.eventos-home-vacio p {
    color: #666;
}
