/**
 * Public styles for Box44 Horarios
 * Optimized for dark backgrounds
 */

.box44-horario-wrapper {
    margin: 30px 0;
}

.box44-horario-header {
    margin-bottom: 20px;
    text-align: center;
}

.box44-horario-title {
    font-size: 2em;
    margin-bottom: 10px;
    color: #ffffff;
}

.box44-horario-description {
    font-size: 1.1em;
    color: #cccccc;
}

.box44-horario-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
}

.box44-horario-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.box44-horario-table th,
.box44-horario-table td {
    padding: 15px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.box44-horario-table thead th {
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box44-horario-table .hora-column {
    min-width: 100px;
    background-color: rgba(0, 0, 0, 0.2);
}

.box44-horario-table .dia-column {
    min-width: 140px;
}

.box44-horario-table .hora-cell {
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.box44-horario-table .hora-range {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box44-horario-table .hora-inicio {
    font-size: 16px;
    color: #ffffff;
}

.box44-horario-table .hora-separador {
    margin: 2px 0;
    color: #999999;
}

.box44-horario-table .hora-fin {
    font-size: 14px;
    color: #cccccc;
}

.box44-horario-table .dia-cell {
    vertical-align: middle;
    min-height: 80px;
    background-color: rgba(255, 255, 255, 0.02);
}

.box44-clase {
    padding: 12px 8px;
    border-radius: 6px;
    color: #fff;
    text-align: center;
    font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.box44-clase:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.box44-clase .clase-nombre {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box44-clase .clase-instructor {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 5px;
}

.box44-clase .clase-instructor:before {
    content: "👤 ";
}

.box44-clase .clase-duracion {
    font-size: 11px;
    margin-top: 3px;
    opacity: 0.85;
}

.box44-clase .clase-duracion:before {
    content: "⏱ ";
}

.box44-clase .clase-capacidad {
    font-size: 11px;
    margin-top: 3px;
    opacity: 0.85;
}

.box44-clase-vacia {
    color: #666666;
    font-size: 18px;
}

/* Tabs styles */
.box44-horarios-tabs {
    margin: 30px 0;
}

.box44-tabs-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.box44-tab-btn {
    padding: 12px 24px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #999999;
    transition: all 0.3s;
}

.box44-tab-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.box44-tab-btn.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.box44-tabs-content {
    min-height: 400px;
}

.box44-tab-panel {
    display: none;
}

.box44-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

/* Actividades grid */
.box44-actividades-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.box44-actividades-grid[data-columnas="2"] {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.box44-actividades-grid[data-columnas="3"] {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.box44-actividades-grid[data-columnas="4"] {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.box44-actividad-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.box44-actividad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.box44-actividad-card .actividad-imagen img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.box44-actividad-card .actividad-content {
    padding: 20px;
}

.box44-actividad-card .actividad-titulo {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.box44-actividad-card .actividad-descripcion {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.box44-actividad-card .actividad-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #999999;
}

.box44-actividad-card .actividad-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000000;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 600;
}

.box44-actividad-card .actividad-link:hover {
    background-color: #ffffff;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .box44-horario-table {
        font-size: 13px;
    }

    .box44-horario-table th,
    .box44-horario-table td {
        padding: 10px 6px;
    }

    .box44-clase {
        padding: 10px 6px;
        font-size: 12px;
    }

    .box44-clase .clase-nombre {
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .box44-horario-wrapper {
        margin: 20px 0;
    }

    .box44-horario-title {
        font-size: 1.6em;
    }

    .box44-horario-description {
        font-size: 1em;
    }

    .box44-horario-table-wrapper {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .box44-horario-table {
        min-width: 700px;
        font-size: 11px;
    }

    .box44-horario-table th,
    .box44-horario-table td {
        padding: 8px 4px;
    }

    .box44-horario-table thead th {
        font-size: 11px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .box44-horario-table .hora-column {
        min-width: 70px;
        position: sticky;
        left: 0;
        z-index: 5;
        background-color: rgba(0, 0, 0, 0.3);
    }

    .box44-horario-table thead .hora-column {
        z-index: 15;
    }

    .box44-horario-table .dia-column {
        min-width: 90px;
    }

    .box44-horario-table .hora-inicio {
        font-size: 12px;
    }

    .box44-horario-table .hora-fin {
        font-size: 10px;
    }

    .box44-clase {
        padding: 8px 4px;
        font-size: 10px;
        border-radius: 4px;
    }

    .box44-clase .clase-nombre {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .box44-clase .clase-instructor,
    .box44-clase .clase-duracion {
        font-size: 9px;
        margin-top: 2px;
    }

    .box44-clase .clase-instructor:before,
    .box44-clase .clase-duracion:before {
        content: "";
    }

    .box44-tabs-navigation {
        flex-direction: row;
        justify-content: flex-start;
        gap: 5px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .box44-tab-btn {
        padding: 10px 20px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .box44-actividades-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Scroll indicator */
    .box44-horario-table-wrapper::after {
        content: "⟶";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: rgba(255, 255, 255, 0.5);
        pointer-events: none;
        padding: 10px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.3));
    }
}

@media screen and (max-width: 480px) {
    .box44-horario-title {
        font-size: 1.3em;
    }

    .box44-horario-description {
        font-size: 0.9em;
    }

    .box44-horario-table {
        min-width: 600px;
        font-size: 10px;
    }

    .box44-horario-table th,
    .box44-horario-table td {
        padding: 6px 3px;
    }

    .box44-horario-table thead th {
        font-size: 10px;
        padding: 8px 3px;
    }

    .box44-horario-table .hora-column {
        min-width: 60px;
    }

    .box44-horario-table .dia-column {
        min-width: 75px;
    }

    .box44-horario-table .hora-inicio {
        font-size: 11px;
    }

    .box44-horario-table .hora-fin {
        font-size: 9px;
    }

    .box44-horario-table .hora-separador {
        font-size: 9px;
    }

    .box44-clase {
        padding: 6px 3px;
        font-size: 9px;
        border-radius: 3px;
    }

    .box44-clase .clase-nombre {
        font-size: 10px;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .box44-clase .clase-instructor,
    .box44-clase .clase-duracion {
        display: none;
    }

    .box44-tabs-navigation {
        flex-direction: row;
        gap: 5px;
    }

    .box44-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .box44-actividades-grid {
        gap: 15px;
        margin: 20px 0;
    }

    .box44-actividad-card .actividad-content {
        padding: 15px;
    }

    .box44-actividad-card .actividad-titulo {
        font-size: 18px;
    }
}

@media screen and (max-width: 360px) {
    .box44-horario-table {
        min-width: 550px;
        font-size: 9px;
    }

    .box44-horario-table .hora-column {
        min-width: 55px;
    }

    .box44-horario-table .dia-column {
        min-width: 70px;
    }

    .box44-horario-table .hora-inicio {
        font-size: 10px;
    }

    .box44-horario-table .hora-fin {
        font-size: 8px;
    }

    .box44-clase {
        padding: 5px 2px;
        font-size: 8px;
    }

    .box44-clase .clase-nombre {
        font-size: 9px;
        line-height: 1.1;
    }

    .box44-tab-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}
