* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}

.contenedor {
    width: min(1100px, 94%);
    margin: auto;
    padding: 30px 0 60px;
}


/* ENCABEZADO */

.encabezado {
    text-align: center;
    margin-bottom: 30px;
}

.encabezado h1 {
    font-size: 36px;
    margin-bottom: 7px;
}

.encabezado p {
    color: #6b7280;
    margin: 0;
}


/* TARJETAS */

.tarjeta {
    background: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 22px;

    box-shadow:
        0 4px 16px
        rgba(0, 0, 0, 0.07);
}

.tarjeta h2 {
    margin-top: 0;
}


/* CAMPOS */

.campo {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.campo label {
    font-weight: bold;
}

input,
select {
    width: 100%;
    padding: 14px;

    font-size: 17px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    background: white;
}

input:focus,
select:focus {
    outline: none;
    border-color: #374151;
}


/* FILAS */

.fila-horas,
.rango-fechas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


/* BOTONES */

button {
    cursor: pointer;
}

.boton-principal {
    width: 100%;

    padding: 15px;

    border: none;
    border-radius: 10px;

    background: #111827;
    color: white;

    font-size: 17px;
    font-weight: bold;
}

.boton-principal:hover {
    background: #374151;
}

.boton-secundario {
    padding: 13px 18px;

    border: none;
    border-radius: 10px;

    background: #374151;
    color: white;

    font-weight: bold;
}

.boton-cancelar {
    width: 100%;

    margin-top: 10px;
    padding: 13px;

    border: none;
    border-radius: 10px;

    background: #e5e7eb;
    color: #111827;

    font-weight: bold;
}

.boton-pequeno {
    padding: 9px 13px;

    border: none;
    border-radius: 8px;

    background: #e5e7eb;

    font-weight: bold;
}

.boton-exportar {
    width: 100%;

    padding: 15px;

    border: none;
    border-radius: 10px;

    background: #166534;
    color: white;

    font-size: 17px;
    font-weight: bold;
}


/* TRABAJADORES */

.agregar-trabajador {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.lista-trabajadores {
    margin-top: 18px;

    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}

.trabajador-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    background: #f3f4f6;

    padding: 11px 12px;

    border-radius: 10px;
}

.trabajador-item span {
    font-weight: bold;

    overflow: hidden;

    text-overflow: ellipsis;
}

.boton-eliminar-trabajador {
    border: none;

    background: #fee2e2;
    color: #991b1b;

    padding: 7px 10px;

    border-radius: 7px;

    font-weight: bold;

    cursor: pointer;
}

.boton-eliminar-trabajador:hover {
    background: #fecaca;
}


/* TITULOS */

.titulo-seccion {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;
}

.titulo-seccion h2 {
    margin-bottom: 4px;
}

.titulo-seccion input {
    max-width: 210px;
}

.texto-secundario {
    color: #6b7280;
    margin-top: 5px;
}


/* RESUMEN */

.lista-resumen {
    margin-top: 15px;
}

.fila-resumen {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 20px;

    padding: 14px 5px;

    border-bottom:
        1px solid #e5e7eb;
}

.fila-resumen:last-child {
    border-bottom: none;
}

.total-destacado {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    margin-top: 18px;

    padding: 18px;

    border-radius: 12px;

    background: #f3f4f6;
}

.total-destacado span {
    font-weight: bold;
}

.total-destacado strong {
    font-size: 24px;
}


/* SELECTOR DE TRABAJADORES */

.selector-botones {
    display: flex;
    gap: 10px;

    margin-bottom: 15px;
}

.selector-trabajadores {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin-bottom: 20px;
}

.opcion-trabajador {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px;

    border:
        1px solid #e5e7eb;

    border-radius: 10px;

    background: #fafafa;
}

.opcion-trabajador input {
    width: 20px;
    height: 20px;
}

.resultado-seleccion {
    margin-top: 25px;
}


/* TABLA */

.tabla-contenedor {
    overflow-x: auto;
}

table {
    width: 100%;

    min-width: 760px;

    border-collapse: collapse;
}

th,
td {
    padding: 13px 9px;

    text-align: center;

    border-bottom:
        1px solid #e5e7eb;
}

th {
    background: #f9fafb;
}

.boton-editar,
.boton-eliminar {
    padding: 8px 10px;

    border: none;
    border-radius: 7px;

    font-weight: bold;

    margin: 2px;
}

.boton-editar {
    background: #dbeafe;
    color: #1e40af;
}

.boton-eliminar {
    background: #fee2e2;
    color: #991b1b;
}


/* MENSAJES */

.sin-registros {
    text-align: center;
    color: #6b7280;
    padding: 20px;
}

.oculto {
    display: none;
}


/* IPAD */

@media (max-width: 800px) {

    .contenedor {
        width: 95%;
    }

    .selector-trabajadores,
    .lista-trabajadores {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* TELEFONO */

@media (max-width: 600px) {

    .encabezado h1 {
        font-size: 29px;
    }

    .tarjeta {
        padding: 18px;
    }

    .fila-horas,
    .rango-fechas {
        grid-template-columns:
            1fr;
    }

    .agregar-trabajador {
        grid-template-columns:
            1fr;
    }

    .titulo-seccion {
        flex-direction: column;
        align-items: stretch;
    }

    .titulo-seccion input {
        max-width: none;
    }

    .selector-trabajadores,
    .lista-trabajadores {
        grid-template-columns:
            1fr;
    }

    .total-destacado {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

}

/* ==========================================
   LOGIN MONROE HOTEL
========================================== */

.pantalla-login {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 25px;

    background: #f3f4f6;
}


.login-tarjeta {
    width: min(430px, 100%);

    background: white;

    padding: 35px;

    border-radius: 18px;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.12);
}


.login-tarjeta h1 {
    text-align: center;

    margin-bottom: 5px;

    font-size: 32px;
}


.login-tarjeta > p {
    text-align: center;

    color: #6b7280;

    margin-top: 0;

    margin-bottom: 30px;
}


.login-icono {
    text-align: center;

    font-size: 55px;

    margin-bottom: 10px;
}


.error-login {
    margin-top: 15px;

    padding: 12px;

    border-radius: 8px;

    background: #fee2e2;

    color: #991b1b;

    text-align: center;

    font-weight: bold;
}


.barra-usuario {
    margin-top: 20px;

    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;
}


.barra-usuario span {
    font-size: 14px;

    color: #4b5563;
}


.boton-salir {
    padding: 9px 13px;

    border: none;

    border-radius: 8px;

    background: #fee2e2;

    color: #991b1b;

    font-weight: bold;
}


.boton-salir:hover {
    background: #fecaca;
}


button:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}


@media (max-width: 600px) {

    .login-tarjeta {
        padding: 25px 20px;
    }


    .barra-usuario {
        flex-direction: column;
    }


    .barra-usuario button {
        width: 100%;
    }

}