/* =====================================
   TABLA DE HORARIOS
===================================== */

.tabla-horarios {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

/* CABECERA */

.tabla-horarios thead th {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b7280;
    font-weight: 600;
}

/* FILAS */

.tabla-horarios tbody tr {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    transition: .2s ease;
}

.tabla-horarios tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

/* BORDES REDONDEADOS */

.tabla-horarios tbody tr td:first-child {
    border-radius: 12px 0 0 12px;
}

.tabla-horarios tbody tr td:last-child {
    border-radius: 0 12px 12px 0;
}

/* CELDAS */

.tabla-horarios th,
.tabla-horarios td {
    padding: 18px;
    vertical-align: middle;
}

/* DÍA */

.tabla-horarios td:first-child {
    width: 160px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

/* CHECKBOX */

.trabaja {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2563eb;
}

/* CONTENEDOR DE TURNOS */

.contenedor-turnos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TURNO */

.turno {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    width: fit-content;
}

/* INPUTS DE HORA */

.turno input[type="time"] {
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: .2s;
}

.turno input[type="time"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* SEPARADOR */

.turno span {
    font-weight: bold;
    color: #6b7280;
}

/* BOTÓN QUITAR */

.turno .btn.red {
    margin-top: 0;
    padding: 7px 10px;
    font-size: 13px;
    border-radius: 7px;
}

/* SIN TURNOS */

.sin-turnos {
    color: #9ca3af;
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

/* BOTÓN AÑADIR */

.agregar-turno {
    margin-top: 8px;
    font-size: 13px;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 768px) {

    .tabla-horarios {
        display: block;
        overflow-x: auto;
    }

    .tabla-horarios thead,
    .tabla-horarios tbody,
    .tabla-horarios tr {
        width: 100%;
    }

    .tabla-horarios th,
    .tabla-horarios td {
        padding: 12px;
    }

    .tabla-horarios td:first-child {
        width: auto;
        min-width: 110px;
    }

    .turno {
        width: 100%;
    }

    .turno input[type="time"] {
        flex: 1;
        min-width: 100px;
    }

}