/* ================================
   AGENDA - DISEÑO MODERNO
   ================================ */

/* Container principal */
.agenda-moderna-container {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 40px 0;
    position: relative;
}

/* ::before decorativo eliminado - causaba conflicto visual con menú fijo */

/* Buscador moderno */
.agenda-buscar {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(1, 172, 228, 0.1);
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(1, 172, 228, 0.1);
}

.agenda-buscar-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.agenda-buscar-input {
    flex: 1;
    min-width: 300px;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fbff;
}

.agenda-buscar-input:focus {
    outline: none;
    border-color: #01ace4;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(1, 172, 228, 0.2);
}

.agenda-buscar-btn {
    background: linear-gradient(135deg, #01ace4 0%, #0d8dc4 100%);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agenda-buscar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(1, 172, 228, 0.3);
}

.agenda-buscar-label {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agenda-buscar-label i {
    color: #01ace4;
    font-size: 20px;
}

/* Grid de eventos */
.agenda-eventos-grid {
    display: grid;
    gap: 30px;
}

/* Cards de eventos */
.agenda-evento-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(1, 172, 228, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    border: 1px solid rgba(1, 172, 228, 0.1);
}

.agenda-evento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(1, 172, 228, 0.2);
    text-decoration: none;
    color: inherit;
}

.agenda-evento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #01ace4 0%, #0d8dc4 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.agenda-evento-card:hover::before {
    transform: scaleX(1);
}

/* Estructura del evento */
.agenda-evento-contenido {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    padding: 25px;
    align-items: center;
}

/* Fecha del evento */
.agenda-evento-fecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 20px;
    background: linear-gradient(135deg, #01ace4 0%, #0d8dc4 100%);
    color: #ffffff;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(1, 172, 228, 0.3);
}

.agenda-evento-fecha-dia {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.agenda-evento-fecha-mes {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

.agenda-evento-fecha-anno {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Información del evento */
.agenda-evento-info {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
}

.agenda-evento-imagen {
    width: 150px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4f8 100%);
}

.agenda-evento-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.agenda-evento-card:hover .agenda-evento-imagen img {
    transform: scale(1.05);
}

.agenda-evento-imagen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 172, 228, 0.2) 0%, rgba(13, 141, 196, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agenda-evento-card:hover .agenda-evento-imagen::after {
    opacity: 1;
}

.agenda-evento-detalles {
    flex: 1;
}

.agenda-evento-titulo {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.agenda-evento-card:hover .agenda-evento-titulo {
    color: #01ace4;
}

.agenda-evento-resumen {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.agenda-evento-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.agenda-evento-tag {
    background: linear-gradient(135deg, #01ace4 0%, #0d8dc4 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agenda-evento-leer {
    display: flex;
    align-items: center;
    color: #01ace4;
    font-size: 14px;
    font-weight: 600;
    margin-left: auto;
}

.agenda-evento-leer i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.agenda-evento-card:hover .agenda-evento-leer i {
    transform: translateX(5px);
}

/* Estados alternados */
.agenda-evento-card:nth-child(even) .agenda-evento-fecha {
    background: linear-gradient(135deg, #0d8dc4 0%, #01ace4 100%);
}

.agenda-evento-card:nth-child(even) .agenda-evento-tag {
    background: linear-gradient(135deg, #0d8dc4 0%, #01ace4 100%);
}

/* Responsive */
@media (max-width: 992px) {
    .agenda-evento-info {
        grid-template-columns: 120px 1fr;
        gap: 15px;
    }
    
    .agenda-evento-imagen {
        width: 120px;
        height: 80px;
    }
    
    .agenda-evento-titulo {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .agenda-buscar-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .agenda-buscar-input {
        min-width: auto;
    }
    
    .agenda-evento-contenido {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .agenda-evento-fecha {
        align-self: center;
        min-width: 100px;
    }
    
    .agenda-evento-info {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .agenda-evento-imagen {
        width: 100%;
        height: 120px;
        margin: 0 auto;
    }
    
    .agenda-evento-meta {
        justify-content: center;
    }
    
    .agenda-evento-leer {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .agenda-moderna-container {
        padding: 20px 0;
    }
    
    .agenda-buscar {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .agenda-buscar-label {
        font-size: 16px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .agenda-evento-contenido {
        padding: 20px;
    }
    
    .agenda-evento-titulo {
        font-size: 16px;
    }
}

/* Indicadores visuales */
.agenda-punto {
    display: none; /* Ocultamos el punto original ya que usamos la fecha moderna */
}

/* Loading y estados */
.agenda-sin-eventos {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.agenda-sin-eventos i {
    font-size: 64px;
    color: #01ace4;
    margin-bottom: 20px;
    opacity: 0.5;
}

.agenda-sin-eventos h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Efectos adicionales */
.agenda-evento-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.agenda-evento-card:hover {
    transform: translateY(-8px) rotateX(2deg);
}