:root {
    --primary-color: #974f99;
    --secondary-color: #239bd7;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cabin', 'Fira Sans', sans-serif;
}

/* Usar Fira Sans para títulos y textos destacados */
h1,
h2,
h3,
h4,
h5,
h6,
.programacion-header h1,
.calendar-nav h2,
.day-header h3,
.event-content h4,
.event-time,
.btn {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
}

/* Usar Cabin para textos normales */
body,
.programacion-header .fecha-rango,
.day-date,
.event-details,
.event-description,
.filter-group label,
.search-box input,
.filter-group select,
.tag {
    font-family: 'Cabin', sans-serif;
}

.ciudad-libro-programacion {
    background-color: #f5f5f5;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.programacion-header {
    text-align: center;
    margin-bottom: 30px;
}

.programacion-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.programacion-header .fecha-rango {
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 500;
}

.calendar-nav {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;

}

.calendar-nav h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
}

.day-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.day-filter {
    padding: 10px 18px;
    background-color: #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-family: 'Fira Sans', sans-serif;
    font-size: 0.95rem;
}

.day-filter:hover {
    background-color: #dee2e6;
}

.day-filter.active {
    background-color: var(--primary-color);
    color: white;
}

.filters {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: white;
    font-family: 'Cabin', sans-serif;
    font-size: 0.9rem;
}

.search-box {
    display: flex;
    flex: 2;
    min-width: 300px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border-right: none;
    font-family: 'Cabin', sans-serif;
    font-size: 0.9rem;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
}

.search-box button:hover {
    background-color: #154360;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.day-section {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.day-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
}

.day-header h3 {
    font-size: 1.5rem;
    margin: 0;
    text-transform: capitalize;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.day-date {
    font-weight: 400;
    font-size: 1.1rem;
    font-family: 'Cabin', sans-serif;
}

.events-grid {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.event-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.event-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.event-card.taller {
    border-left-color: var(--secondary-color);
}

.event-time {
    background-color: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-family: 'Fira Sans', sans-serif;
    font-size: 0.9rem;
}

.event-time i {
    margin-right: 8px;
}

.event-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-content h4 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 600;
    font-family: 'Fira Sans', sans-serif;
}

.event-details {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
    font-family: 'Cabin', sans-serif;
}

.event-details p {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
}

.event-details i {
    margin-right: 8px;
    color: var(--primary-color);
    min-width: 16px;
    margin-top: 2px;
}

.event-description {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    font-family: 'Cabin', sans-serif;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background-color: #e9ecef;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'Cabin', sans-serif;
    font-weight: 500;
}

.tag.taller {
    background-color: var(--secondary-color);
    color: white;
}

.event-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-family: 'Fira Sans', sans-serif;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #154360;
}

.btn-disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled:hover {
    background-color: #e9ecef;
    color: #6c757d;
}

.no-events {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.no-events h3 {
    font-family: 'Fira Sans', sans-serif;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.no-events p {
    font-family: 'Cabin', sans-serif;
    color: #666;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--primary-color);
}

.loading h3 {
    font-family: 'Fira Sans', sans-serif;
}

@media (max-width: 1200px) {
    .event-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .event-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ciudad-libro-programacion {
        padding: 15px;
    }

    .programacion-header h1 {
        font-size: 2rem;
    }

    .programacion-header .fecha-rango {
        font-size: 1.2rem;
    }

    .day-filters {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group,
    .search-box {
        min-width: 100%;
    }

    .event-row {
        grid-template-columns: 1fr;
    }

    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .events-grid {
        padding: 15px;
    }
}