/* Estilos generales */
.cormudep-calendar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cormudep-title {
    color: #1a3a5c;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 4px solid #2e7d32;
}

/* Tabs de recintos */
.cormudep-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 2px solid #e8edf2;
}

.cormudep-tab-link {
    padding: 12px 22px;
    background: #f5f7fa;
    color: #4a5568;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-bottom: none;
}

.cormudep-tab-link:hover {
    background: #e8f0fe;
    color: #1a3a5c;
}

.cormudep-tab-link.active {
    background: #fff;
    color: #2e7d32;
    border-color: #2e7d32;
    font-weight: 600;
}

/* Contenido de recintos */
.cormudep-venues-content {
    position: relative;
}

.cormudep-venue-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.cormudep-venue-content.active {
    display: block;
}

/* Tabs de días */
.cormudep-day-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid #e2e8f0;
}

.cormudep-day-tab-link {
    padding: 8px 18px;
    background: #f8fafc;
    color: #4a5568;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-bottom: none;
}

.cormudep-day-tab-link:hover {
    background: #edf2f7;
    color: #1a3a5c;
}

.cormudep-day-tab-link.active {
    background: #fff;
    color: #2e7d32;
    border-color: #2e7d32;
    border-bottom: 2px solid #fff;
    font-weight: 600;
}

/* Contenido de días */
.cormudep-days-content {
    padding: 10px 0;
    max-height: 700px;
    overflow-y: auto;
    padding-right: 10px;
}

.cormudep-days-content::-webkit-scrollbar {
    width: 6px;
}

.cormudep-days-content::-webkit-scrollbar-thumb {
    background: #a0aec0;
    border-radius: 10px;
}

.cormudep-day-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.cormudep-day-content.active {
    display: block;
}

.cormudep-day-title {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding: 6px 14px;
    background: #edf2f7;
    border-radius: 6px;
    display: inline-block;
}

/* Grid de horarios */
.cormudep-schedule-grid {
    display: grid;
    gap: 6px;
}

.cormudep-schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.cormudep-schedule-item:hover {
    background: #edf7ed;
    transform: translateX(4px);
}

.cormudep-time {
    font-weight: 700;
    color: #1a3a5c;
    font-size: 14px;
    min-width: 120px;
    flex-shrink: 0;
}

.cormudep-activity {
    font-weight: 500;
    color: #1a202c; /* Negro */
    font-size: 14px;
    word-break: break-word;
}

/* Error */
.cormudep-error {
    background: #fff5f5;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #c62828;
    font-weight: 500;
}

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

/* Responsive */
@media (max-width: 768px) {
    .cormudep-tabs-nav {
        flex-direction: column;
    }
    .cormudep-tab-link {
        border-radius: 8px;
        text-align: center;
        border: 2px solid #e2e8f0;
    }
    .cormudep-tab-link.active {
        border-color: #2e7d32;
        background: #e8f5e9;
    }
    .cormudep-day-tabs-nav {
        flex-wrap: wrap;
        gap: 4px;
    }
    .cormudep-day-tab-link {
        font-size: 13px;
        padding: 6px 12px;
    }
    .cormudep-schedule-item {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
    .cormudep-time {
        min-width: auto;
        font-size: 15px;
        width: 100%;
    }
    .cormudep-activity {
        font-size: 14px;
        width: 100%;
    }
}