/* =====================================================
   QUÉ BOLÁ SHOP 🛒
   EMPLEADOS / BUSCO EMPLEO
   DISEÑO PROFESIONAL
   ===================================================== */


/* =====================================================
   PÁGINA
   ===================================================== */

.empleados-page {

    width: 100%;

}


.empleados-section {

    padding-top: 35px;
    padding-bottom: 70px;

}


.empleados-intro {

    max-width: 650px;

    margin-top: 8px;

    color: #666;

}


/* =====================================================
   ENCABEZADO
   ===================================================== */

.empleados-section .section-header {

    align-items: flex-end;

    margin-bottom: 30px;

}


/* =====================================================
   ESTADOS
   ===================================================== */

.empleados-status {

    min-height: 180px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 14px;

    padding: 30px;

    background: #fff;

    border: 1px solid #e3e5e8;

    border-radius: 16px;

    color: #666;

}


.empleados-status p {

    margin: 0;

}


/* =====================================================
   SPINNER
   ===================================================== */

.empleados-spinner {

    width: 34px;

    height: 34px;

    border: 3px solid #e5e5e5;

    border-top-color: #171717;

    border-radius: 50%;

    animation:
        empleados-spin
        .8s linear infinite;

}


@keyframes empleados-spin {

    from {

        transform: rotate(0deg);

    }

    to {

        transform: rotate(360deg);

    }

}


/* =====================================================
   GRID
   ===================================================== */

.empleados-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    width: 100%;

}


/* =====================================================
   TARJETA
   ===================================================== */

.empleado-card {

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e3e5e8;

    border-radius: 16px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.empleado-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(
            0,
            0,
            0,
            .08
        );

}


/* =====================================================
   FOTO
   ===================================================== */

.empleado-photo {

    width: 100%;

    height: 125px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #f1f2f4;

    color: #171717;

}


.empleado-photo img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

}


/* Avatar cuando no existe foto */

.empleado-photo > span {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 64px;

    height: 64px;

    border-radius: 50%;

    background: #171717;

    color: #fff;

    font-size: 27px;

    font-weight: 800;

}


/* =====================================================
   CONTENIDO
   ===================================================== */

.empleado-content {

    display: flex;

    flex-direction: column;

    gap: 13px;

    padding: 18px;

}


/* =====================================================
   NOMBRE
   ===================================================== */

.empleado-name {

    margin: 0;

    font-size: 22px;

    line-height: 1.2;

    letter-spacing: -.3px;

    color: #171717;

}


/* =====================================================
   DATOS BÁSICOS
   ===================================================== */

.empleado-basic {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: -3px;

}


.empleado-basic span {

    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    background: #f4f5f6;

    border: 1px solid #e7e8ea;

    border-radius: 8px;

    color: #555;

    font-size: 13px;

    font-weight: 600;

}


/* =====================================================
   BLOQUES DE INFORMACIÓN
   ===================================================== */

.empleado-detail {

    padding: 11px 12px;

    background: #f8f9fa;

    border: 1px solid #eceef0;

    border-radius: 10px;

}


.empleado-detail-title {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 5px;

    color: #171717;

    font-size: 13px;

    font-weight: 700;

}


.empleado-detail-title span {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 15px;

}


.empleado-detail p {

    margin: 0;

    color: #555;

    font-size: 13px;

    line-height: 1.5;

    white-space: pre-line;

    overflow-wrap: anywhere;

}


/* =====================================================
   DESCRIPCIÓN
   ===================================================== */

.empleado-description {

    margin: 0;

    padding: 12px;

    background: #fafafa;

    border: 1px solid #eceef0;

    border-radius: 10px;

    color: #555;

    font-size: 13px;

    line-height: 1.55;

    white-space: pre-line;

    overflow-wrap: anywhere;

}


/* =====================================================
   ACCIONES
   ===================================================== */

.empleado-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 3px;

}


.empleado-actions .button {

    width: 100%;

}


.empleado-own-label {

    width: 100%;

    padding: 10px 14px;

    text-align: center;

    background: #f4f5f6;

    border: 1px solid #e1e3e6;

    border-radius: 9px;

    color: #555;

    font-size: 13px;

    font-weight: 700;

}


/* =====================================================
   ESTADO VACÍO
   ===================================================== */

.empleados-empty {

    margin-top: 0;

    padding: 55px 25px;

}


.empleados-empty-icon {

    margin-bottom: 12px;

    font-size: 42px;

}


.empleados-empty h2 {

    margin-top: 0;

}


.empleados-empty p {

    max-width: 500px;

    margin-left: auto;

    margin-right: auto;

}


/* =====================================================
   PAGINACIÓN
   ===================================================== */

.empleados-pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-top: 35px;

}


.empleados-page-info {

    min-width: 100px;

    text-align: center;

    color: #555;

    font-size: 14px;

    font-weight: 700;

}


/* =====================================================
   BOTONES DESHABILITADOS
   ===================================================== */

.empleados-pagination .button:disabled {

    opacity: .45;

    cursor: not-allowed;

}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1000px) {

    .empleados-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* =====================================================
   MÓVIL
   ===================================================== */

@media (max-width: 700px) {

    .empleados-section {

        padding-top: 25px;

        padding-bottom: 50px;

    }


    .empleados-section
    .section-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 18px;

    }


    .empleados-section
    .section-header
    .button {

        width: 100%;

    }


    .empleados-grid {

        grid-template-columns: 1fr;

        gap: 16px;

    }


    .empleado-card {

        border-radius: 14px;

    }


    /* Foto todavía más compacta en móvil */

    .empleado-photo {

        height: 105px;

    }


    .empleado-content {

        padding: 16px;

        gap: 11px;

    }


    .empleado-name {

        font-size: 21px;

    }


    .empleado-detail {

        padding: 10px 11px;

    }


    .empleado-detail p {

        font-size: 13px;

    }


    .empleados-pagination {

        gap: 10px;

    }


    .empleados-pagination
    .button {

        min-width: 0;

        padding-left: 13px;

        padding-right: 13px;

    }

}


/* =====================================================
   TELÉFONOS PEQUEÑOS
   ===================================================== */

@media (max-width: 400px) {

    .empleados-section {

        padding-top: 20px;

    }


    .empleado-photo {

        height: 90px;

    }


    .empleado-content {

        padding: 15px;

    }


    .empleado-name {

        font-size: 20px;

    }


    .empleados-pagination {

        justify-content: space-between;

    }


    .empleados-page-info {

        min-width: auto;

    }

}