/* events.css - Diseño Vertical con Café Lector */

/* LAYOUT PRINCIPAL */
.events-layout {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    gap: 30px;
    padding: 0 20px;
    min-height: calc(100vh - 100px);
}

/* --- BARRA LATERAL IZQUIERDA --- */
.events-sidebar {
    width: 260px;
    flex-shrink: 0; /* No se encoge */
    background-color: var(--color-tarjeta);
    border-radius: 12px;
    padding: 25px;
    height: fit-content; /* Se ajusta al contenido */
    border: 1px solid var(--color-borde);
    position: sticky; /* Se queda fija al hacer scroll */
    top: 90px; 
}

.sidebar-header h2 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: var(--color-texto);
}
.sidebar-header p {
    color: var(--color-suave);
    margin-bottom: 25px;
    font-size: 0.9em;
}

/* Menú Vertical */
.filter-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-item {
    background: transparent;
    border: none;
    color: var(--color-suave);
    padding: 12px 15px;
    text-align: left;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-item i { width: 20px; text-align: center; }

.filter-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-texto);
}

.filter-item.active {
    background-color: var(--color-principal);
    color: #000; /* Texto oscuro sobre color brillante */
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- CONTENIDO DERECHA --- */
.events-content {
    flex-grow: 1;
}

/* Grid de Eventos (Igual que antes pero adaptado) */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* --- TARJETAS DE EVENTO --- */
.event-card {
    background-color: var(--color-tarjeta);
    border-radius: 12px;
    border: 1px solid var(--color-borde);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-principal);
}

.event-date-badge {
    background-color: rgba(255,255,255,0.03);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-borde);
}

.event-content { padding: 20px; flex-grow: 1; }

.event-tag {
    display: inline-block;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 4px;
    background: #333;
    color: #bbb;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* COLORES DE ETIQUETAS */
.tag-reto { background: #6a1b9a; color: white; }     /* Morado */
.tag-evento { background: #00695c; color: white; }   /* Verde Azulado */
.tag-taller { background: #e65100; color: white; }   /* Naranja */
.tag-cafe { background: #795548; color: white; }     /* Café (Marrón) */

.event-content h3 { margin-bottom: 10px; font-size: 1.2em; line-height: 1.3; }
.event-location { color: var(--color-suave); font-size: 0.9em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.event-desc { font-size: 0.9em; color: var(--color-texto); line-height: 1.5; opacity: 0.8; }

.event-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--color-borde);
    font-size: 0.85em;
    color: var(--color-suave);
}

/* RESPONSIVE MOVIL */
@media (max-width: 768px) {
    .events-layout { flex-direction: column; }
    .events-sidebar { width: 100%; position: static; margin-bottom: 20px; }
    .filter-menu { flex-direction: row; overflow-x: auto; padding-bottom: 10px; }
    .filter-item { white-space: nowrap; }
}

/* Modal Styles (Reutilizados) */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
}
.modal-box {
    background: var(--color-tarjeta); padding: 30px;
    border-radius: 12px; width: 90%; max-width: 500px;
    border: 1px solid var(--color-borde);
}
.modal-box form { display: flex; flex-direction: column; gap: 15px; margin-top: 15px; }
.modal-box label { font-weight: bold; font-size: 0.9em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }