
/* =========================================================
   CONSULTA DE AUDITORES - peritos.css
   Compatible con PHP 7.4 / HTML actual
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f5f7;
    color: #102f52;
}

.auditores-page {
    min-height: 100vh;
}

/* =========================
   CABECERA
   ========================= */

.auditores-header {
    width: 100%;
    background: linear-gradient(135deg, #a90000, #d00000);
    border-bottom: 5px solid #e4b21d;
    color: #fff;
}

.auditores-header-contenido {
    width: 100%;
    min-height: 150px;
    padding: 18px 45px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.auditores-logo {
    width: 115px;
    height: 115px;
    flex: 0 0 115px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auditores-logo img {
    max-width: 115px;
    max-height: 115px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.auditores-colegio h1 {
    margin: 0 0 8px;
    font-size: 31px;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
}

.auditores-colegio p {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

/* =========================
   CONTENIDO
   ========================= */

.auditores-main {
    width: min(1200px, calc(100% - 70px));
    margin: 0 auto;
    padding: 38px 0 55px;
}

/* =========================
   VOLVER
   ========================= */

.volver-container {
    margin-bottom: 28px;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 55px;
    padding: 0 24px;
    border: 2px solid #b90000;
    border-radius: 9px;
    background: #fff;
    color: #b00000;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: .2s ease;
}

.btn-volver:hover {
    background: #b90000;
    color: #fff;
}

.btn-volver i {
    font-size: 22px;
}

/* =========================
   TITULO
   ========================= */

.auditores-titulo {
    text-align: center;
    margin: 5px auto 38px;
}

.auditores-icono-principal {
    width: 74px;
    height: 74px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #c90000;
    border: 6px solid #e2b21c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.auditores-icono-principal i {
    color: #fff;
    font-size: 34px;
}

.auditores-titulo h2 {
    margin: 0;
    color: #b50000;
    font-size: 45px;
    font-weight: 800;
}

.auditores-titulo p {
    margin: 12px 0 15px;
    color: #62748a;
    font-size: 20px;
}

.linea-dorada {
    width: 95px;
    height: 4px;
    margin: 0 auto;
    border-radius: 10px;
    background: #e0ad16;
}

/* =========================
   CONTENEDOR
   ========================= */

.auditores-contenedor {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(30, 45, 60, .10);
}

/* =========================
   TABS
   ========================= */

.auditores-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #e1e4e8;
}

.auditores-tab {
    min-height: 135px;
    padding: 18px 28px;
    border: 0;
    border-right: 1px solid #e1e4e8;
    background: #fff;
    color: #b40000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: .2s ease;
}

.auditores-tab:last-child {
    border-right: 0;
}

.auditores-tab:hover {
    background: #fff7f7;
}

.auditores-tab.activo {
    background: #d00000;
    color: #fff;
    border-bottom: 5px solid #e3b31b;
}

.tab-icono {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icono i {
    font-size: 28px;
}

.tab-texto {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tab-texto small {
    font-size: 16px;
    font-weight: 400;
}

.tab-texto strong {
    font-size: 25px;
    line-height: 1.1;
}

/* =========================
   FORMULARIO
   ========================= */

.auditores-formulario {
    width: min(900px, calc(100% - 80px));
    margin: 0 auto;
    padding: 50px 0 45px;
}

.titulo-consulta {
    text-align: center;
    margin-bottom: 35px;
}

.titulo-consulta h3 {
    margin: 0;
    color: #b40000;
    font-size: 32px;
    font-weight: 800;
}

.titulo-consulta p {
    margin: 10px 0 0;
    color: #63758a;
    font-size: 19px;
}

.label-consulta {
    display: block;
    margin-bottom: 10px;
    color: #132f50;
    font-size: 18px;
    font-weight: 700;
}

.input-consulta {
    width: 100%;
    height: 66px;
    display: flex;
    align-items: stretch;
    border: 1px solid #d2dbe5;
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
}

.input-icono {
    width: 70px;
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d00000;
    color: #fff;
}

.input-icono i {
    font-size: 25px;
}

.aa-icono {
    font-size: 21px;
    font-weight: 800;
}

.input-consulta input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 20px;
    color: #243b53;
    font-family: inherit;
    font-size: 19px;
    background: #fff;
}

.input-consulta input::placeholder {
    color: #9aa7b4;
}

.btn-buscar {
    width: 100%;
    height: 70px;
    margin-top: 28px;
    border: 0;
    border-bottom: 5px solid #e0ad16;
    border-radius: 13px;
    background: #d00000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 23px;
    font-weight: 800;
    transition: .2s ease;
}

.btn-buscar:hover {
    background: #b70000;
}

.btn-buscar i {
    color: #ffd21a;
    font-size: 23px;
}

/* =========================
   MENSAJE
   ========================= */

.mensaje-consulta {
    margin-top: 25px;
    padding: 17px 20px;
    border-left: 5px solid #c90000;
    border-radius: 8px;
    background: #fff1f1;
    color: #b00000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.mensaje-consulta i {
    font-size: 20px;
}

/* =========================
   RESULTADO
   ========================= */

.resultado-consulta {
    margin-top: 35px;
    border: 1px solid #d8dfe6;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.resultado-cabecera {
    padding: 25px 32px;
    background: #fafbfc;
    border-bottom: 1px solid #dfe4e9;
}

.resultado-cabecera h3 {
    margin: 0;
    color: #b40000;
    font-size: 30px;
    font-weight: 800;
}

.resultado-fila {
    min-height: 85px;
    padding: 18px 32px;
    display: grid;
    grid-template-columns: 230px 1fr;
    align-items: center;
    border-bottom: 1px solid #e5e8ec;
}

.resultado-fila:last-child {
    border-bottom: 0;
}

.resultado-etiqueta {
    font-size: 19px;
    font-weight: 700;
    color: #132f50;
}

.resultado-valor {
    text-align: right;
    font-size: 20px;
    color: #243b53;
}

.estado-contenedor {
    display: flex;
    justify-content: flex-end;
}

.estado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 11px 20px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 800;
}

.estado-habil {
    background: #e4f7ec;
    color: #078442;
}

.estado-inhabil {
    background: #fde8e8;
    color: #bd2929;
}

/* =========================
   IMPORTANTE
   ========================= */

.auditores-importante {
    margin-top: 28px;
    min-height: 80px;
    padding: 18px 25px;
    border: 1px solid #d6dde5;
    border-left: 5px solid #c90000;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #526b85;
    font-size: 17px;
}

.auditores-importante strong {
    color: #1c3047;
}

.importante-icono {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 50%;
    background: #c90000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

    .auditores-header-contenido {
        padding: 15px 25px;
    }

    .auditores-colegio h1 {
        font-size: 24px;
    }

    .auditores-colegio p {
        font-size: 16px;
    }

    .auditores-main {
        width: min(94%, 900px);
    }

    .auditores-titulo h2 {
        font-size: 36px;
    }

    .auditores-tabs {
        grid-template-columns: 1fr;
    }

    .auditores-tab {
        min-height: 95px;
        justify-content: flex-start;
        padding-left: 30px;
        border-right: 0;
        border-bottom: 1px solid #e1e4e8;
    }

    .auditores-tab.activo {
        border-bottom: 4px solid #e3b31b;
    }

    .auditores-formulario {
        width: calc(100% - 40px);
    }
}

@media (max-width: 600px) {

    .auditores-header-contenido {
        min-height: 105px;
        padding: 12px 15px;
        gap: 12px;
    }

    .auditores-logo,
    .auditores-logo img {
        width: 75px;
        height: 75px;
        flex-basis: 75px;
    }

    .auditores-colegio h1 {
        font-size: 17px;
    }

    .auditores-colegio p {
        font-size: 12px;
    }

    .auditores-main {
        width: calc(100% - 24px);
        padding-top: 22px;
    }

    .btn-volver {
        font-size: 14px;
        min-height: 48px;
        padding: 0 17px;
    }

    .auditores-icono-principal {
        width: 60px;
        height: 60px;
    }

    .auditores-titulo h2 {
        font-size: 29px;
    }

    .auditores-titulo p {
        font-size: 16px;
    }

    .auditores-formulario {
        width: calc(100% - 30px);
        padding-top: 35px;
    }

    .titulo-consulta h3 {
        font-size: 25px;
    }

    .titulo-consulta p {
        font-size: 16px;
    }

    .tab-texto strong {
        font-size: 21px;
    }

    .resultado-fila {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px 20px;
    }

    .resultado-valor,
    .estado-contenedor {
        justify-content: flex-start;
        text-align: left;
    }

    .auditores-importante {
        font-size: 14px;
    }
}
/* =========================================================
   AJUSTE COMPACTO - CONSULTA DE AUDITORES
   ========================================================= */

/* Contenedor principal */
.auditores-contenedor {
    max-width: 950px;
    margin: 25px auto;
    border-radius: 18px;
}

/* Pestañas */
.auditores-tabs {
    min-height: 105px;
}

.auditores-tab {
    padding: 16px 20px;
    min-height: 105px;
}

.auditores-tab .tab-icono {
    width: 58px;
    height: 58px;
    min-width: 58px;
}

.auditores-tab .tab-icono i {
    font-size: 24px;
}

.auditores-tab .tab-texto small {
    font-size: 13px;
}

.auditores-tab .tab-texto strong {
    font-size: 20px;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.auditores-formulario {
    padding: 38px 55px 42px;
}

/* Título */
.titulo-consulta h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.titulo-consulta p {
    font-size: 16px;
    margin-bottom: 28px;
}


/* =========================================================
   CAMPO
   ========================================================= */

.label-consulta {
    font-size: 15px;
    margin-bottom: 8px;
}

.input-consulta {
    height: 58px;
}

.input-icono {
    width: 65px;
    min-width: 65px;
}

.input-icono i {
    font-size: 22px;
}

.input-consulta input {
    font-size: 16px;
    padding: 0 16px;
}


/* =========================================================
   BOTÓN BUSCAR
   ========================================================= */

.btn-buscar {
    height: 58px;
    margin-top: 22px;
    font-size: 19px;
}


/* =========================================================
   RESULTADO
   ========================================================= */

.resultado-consulta {
    margin-top: 32px;
    border-radius: 16px;
}

.resultado-cabecera {
    padding: 20px 28px;
}

.resultado-cabecera h3 {
    font-size: 24px;
}

.resultado-fila {
    padding: 18px 28px;
    min-height: 62px;
}

.resultado-etiqueta {
    font-size: 16px;
}

.resultado-valor {
    font-size: 16px;
}


/* =========================================================
   MENSAJE
   ========================================================= */

.mensaje-consulta {
    margin-top: 25px;
    padding: 15px 20px;
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.auditores-importante {
    max-width: 950px;
    margin: 18px auto;
    font-size: 14px;
}


/* =========================================================
   PANTALLAS PEQUEÑAS
   ========================================================= */

@media (max-width: 800px) {

    .auditores-contenedor {
        width: 94%;
        margin: 20px auto;
    }

    .auditores-formulario {
        padding: 30px 28px;
    }

    .auditores-tab .tab-texto strong {
        font-size: 17px;
    }

    .auditores-tab .tab-texto small {
        font-size: 11px;
    }
}


/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 600px) {

    .auditores-tabs {
        min-height: auto;
    }

    .auditores-tab {
        min-height: 85px;
        padding: 10px;
    }

    .auditores-tab .tab-icono {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .auditores-tab .tab-icono i {
        font-size: 18px;
    }

    .auditores-tab .tab-texto strong {
        font-size: 14px;
    }

    .auditores-formulario {
        padding: 25px 20px 30px;
    }

    .titulo-consulta h3 {
        font-size: 23px;
    }

    .titulo-consulta p {
        font-size: 14px;
    }

    .resultado-fila {
        padding: 15px 18px;
    }
}
/* ==========================================
   AJUSTE PARA NOMBRES Y APELLIDOS
   ========================================== */

.resultado-fila {
    display: flex;
    align-items: center;
    gap: 30px;
}

.resultado-etiqueta {
    flex: 0 0 120px;
}

.resultado-valor {
    flex: 1;
    padding-left: 20px;
    line-height: 1.5;
    word-break: break-word;
}

/* Nombre largo */
.resultado-fila:first-of-type .resultado-valor {
    text-align: left;
    padding-left: 35px;
}


/* En pantallas pequeñas */
@media (max-width: 600px) {

    .resultado-fila {
        gap: 15px;
    }

    .resultado-etiqueta {
        flex: 0 0 85px;
    }

    .resultado-valor {
        padding-left: 10px;
        font-size: 15px;
    }

}
/* ==========================================
   ESPACIADO CORRECTO EN NOMBRES
   ========================================== */

.resultado-valor {
    letter-spacing: 0.3px !important;
    word-spacing: 2px !important;
    line-height: 1.6 !important;
    font-weight: 400;
}

/* Nombre completo */
.resultado-fila .resultado-valor {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
/* ==========================================
   MOVER CONTENIDO DEL ENCABEZADO A LA DERECHA
   ========================================== */

.auditores-header-contenido {
    max-width: 1250px;
    margin: 0 auto;
    padding-left: 45px;
    padding-right: 45px;
}

.auditores-logo {
    margin-left: 35px;
}

.auditores-colegio {
    margin-left: 20px;
}
/* ==========================================
   MOVER CONTENIDO DEL ENCABEZADO A LA DERECHA
   ========================================== */

.auditores-header-contenido {
    max-width: 1250px;
    margin: 0 auto;
    padding-left: 45px;
    padding-right: 45px;
}

.auditores-logo {
    margin-left: 20px;
}

.auditores-colegio {
    margin-left: 20px;
}
/* ==========================================
   LOGO GRANDE A LA DERECHA
   ========================================== */

.marca-agua-logo {
    position: fixed;
    top: 50%;
    right: -8%;

    transform: translateY(-50%);

    width: 950px;
    height: 950px;

    opacity: 0.055;

    z-index: 0;
    pointer-events: none;
}