* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --azul: #1B396A;
    --azul-oscuro: #0b2742;
    --azul-claro: #eaf1f8;
    --gris-fondo: #f4f6f8;
    --gris-borde: #d9dee5;
    --gris-texto: #5c6570;
    --blanco: #e8e8e8 ;
    --texto: #1f2933;
    --verde: #2f855a;
    --rojo: #b83232;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--gris-fondo);
    color: var(--texto);
    line-height: 1.6;

    margin: 0;
    padding: 0;

}


/* ==============================
   CONTENEDORES GENERALES
================================ */

.contenedor {
    width: 90%;
    max-width: 850px;
    margin: 25px auto 40px;
}

.seccion {
    background: var(--blanco);
    padding: 22px 25px;
    margin-bottom: 18px;
    border-radius: 9px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.seccion h2 {
    color: var(--azul);
    font-size: 19px;
    margin-bottom: 16px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--azul-claro);
}


/* ==============================
   ENCABEZADO ENCUESTA
================================ */

.encabezado {
    background: linear-gradient(
        135deg,
        var(--azul-oscuro),
        var(--azul)
    );

    color: var(--blanco);
    border-radius: 14px;
    padding: 35px 30px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.encabezado h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.encabezado p {
    font-size: 16px;
    opacity: 0.95;
}


/* ==============================
   INTRODUCCIÓN
================================ */

.introduccion {
    background: var(--blanco);
    padding: 22px 28px;
    text-align: justify;
    border-left: 5px solid var(--azul);
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.introduccion p + p {
    margin-top: 10px;
}


/* ==============================
   CAMPOS
================================ */

.campo {
    margin-bottom: 15px;
}

.campo label,
.campo-filtro label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--azul-oscuro);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gris-borde);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

select {
    height: 38px;
}

textarea {
    min-height: 80px;
}

/* ==============================
   INSTRUCCIONES
================================ */

.instrucciones-encuesta {
    background: var(--azul-claro);
    border-left: 4px solid var(--azul);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 16px;
}

.instrucciones-encuesta p + p {
    margin-top: 5px;
}

.tabla-escala {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tabla-escala span {
    background: white;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid #dbe4ed;
    font-size: 15px;
}


/* ==============================
   PREGUNTAS
================================ */

.pregunta {
    padding: 12px 0;
    border-bottom: 1px solid #edf0f3;
}

.pregunta:last-child {
    border-bottom: none;
}

.pregunta p {
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.45;
}

.escala {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.opcion-escala {
    position: relative;
    cursor: pointer;
}

.opcion-escala input {
    position: absolute;
    opacity: 0;
}

.opcion-escala span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--gris-borde);
    border-radius: 50%;
    background: white;
    transition: 0.2s ease;
    font-size: 13px;
    font-weight: 600;
}

.opcion-escala input:checked + span {
    background: var(--azul);
    color: white;
    border-color: var(--azul);
    transform: scale(1.05);
}

.opcion-escala span:hover {
    border-color: var(--azul);
}


/* ==============================
   OPCIONES VERTICALES
================================ */

.opciones-verticales {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}

.opciones-verticales label {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fafbfc;
    padding: 7px 10px;
    border: 1px solid #e4e8ed;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}


/* ==============================
   CHECKBOXES
================================ */

.checkbox-lista {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.checkbox-lista label {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fafbfc;
    padding: 7px 9px;
    border: 1px solid #e4e8ed;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}

.nota {
    color: var(--gris-texto);
    font-size: 14px;
    margin-bottom: 10px;
}


/* ==============================
   BOTONES
================================ */

.contenedor-boton {
    text-align: center;
    margin: 30px 0 50px;
}

.boton-enviar,
.boton-admin,
.boton-exportar {
    display: inline-block;
    background: var(--azul);
    color: var(--blanco);
    padding: 12px 26px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
}

.boton-enviar:hover,
.boton-admin:hover,
.boton-exportar:hover {
    background: var(--azul-oscuro);
    transform: translateY(-1px);
}

.boton-secundario,
.boton-ver {
    display: inline-block;
    background: #e9edf2;
    color: var(--texto);
    padding: 10px 16px;
    border-radius: 7px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.boton-secundario:hover,
.boton-ver:hover {
    background: #dde3ea;
}


/* ==============================
   LOGIN
================================ */

.contenedor-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--blanco);
    width: 100%;
    max-width: 430px;
    padding: 38px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
    color: var(--azul);
    text-align: center;
    margin-bottom: 8px;
}

.login-card > p {
    text-align: center;
    color: var(--gris-texto);
    margin-bottom: 28px;
}

.login-card .boton-enviar {
    width: 100%;
}

.mensaje-error {
    background: #fde8e8;
    color: var(--rojo);
    border: 1px solid #f5c2c2;
    padding: 11px;
    border-radius: 7px;
    margin-bottom: 18px;
}


/* ==============================
   BARRA ADMIN
================================ */
.barra-admin {
    background: var(--azul-oscuro);
    color: rgb(255, 255, 255);
    min-height: 72px;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.marca-admin {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.titulo-admin-barra {
    font-size: 18px;
    font-weight: 700;
}

.subtitulo-admin-barra {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.75;
}

.menu-superior-admin {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-superior-admin a {
    color: white;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.menu-superior-admin a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nombre-usuario-admin {
    margin-left: 8px;
    padding: 7px 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.menu-superior-admin .cerrar-sesion-admin {
    margin-left: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.menu-superior-admin .cerrar-sesion-admin:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ==============================
   MENÚ ADMIN
================================ */

.menu-admin {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.opcion-admin {
    background: #fff;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
    padding: 24px;
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

.opcion-admin:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.07);
}

.opcion-admin h3 {
    color: var(--azul);
    margin-bottom: 8px;
}


/* ==============================
   FILTROS
================================ */

.admin-contenedor {
    max-width: 1400px;
}

.form-filtros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding: 20px;
    background: #f7f9fb;
    border-radius: 10px;
}

.acciones-filtro {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
}


/* ==============================
   TABLAS
================================ */

.barra-resultados {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 14px;
}

.tabla-contenedor {
    overflow-x: auto;
    border-radius: 9px;
    border: 1px solid #e2e6ea;
}

.tabla-admin {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.tabla-admin th {
    background: var(--azul);
    color: var(--blanco);
    font-weight: 600;
    padding: 12px;
    text-align: left;
}

.tabla-admin td {
    padding: 12px;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
}

.tabla-admin tbody tr:hover td {
    background: #f8fafc;
}

.centrado {
    text-align: center !important;
}

.sin-resultados {
    text-align: center !important;
    padding: 30px !important;
    color: var(--gris-texto);
}


/* ==============================
   DETALLE
================================ */

.detalle-admin {
    max-width: 1150px;
}

.encabezado-detalle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.grid-detalle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dato-detalle {
    background: #f8fafc;
    border: 1px solid #e5e9ed;
    padding: 15px;
    border-radius: 8px;
}

.etiqueta-detalle {
    display: block;
    color: var(--azul);
    font-weight: 600;
    margin-bottom: 6px;
}

.respuesta-detalle {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 17px 0;
    border-bottom: 1px solid #edf0f3;
}

.texto-pregunta {
    flex: 1;
}

.valor-respuesta {
    min-width: 220px;
    text-align: right;
}

.valor-respuesta strong {
    color: var(--azul);
    display: block;
}

.valor-respuesta span {
    color: var(--gris-texto);
}

.bloque-retroalimentacion {
    margin-bottom: 26px;
}

.bloque-retroalimentacion h3 {
    color: var(--azul);
    font-size: 17px;
    margin-bottom: 10px;
}

.lista-aspectos {
    padding-left: 22px;
}

.sin-respuesta {
    color: var(--gris-texto);
    font-style: italic;
}


/* ==============================
   CONFIRMACIÓN
================================ */

.mensaje-confirmacion {
    text-align: center;
    padding: 50px 30px;
}

.mensaje-confirmacion h1 {
    color: var(--verde);
    margin-bottom: 15px;
}

.mensaje-confirmacion .boton-enviar {
    margin-top: 20px;
}


/* ==============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {

    .tabla-escala {
        grid-template-columns: 1fr;
    }

    .form-filtros {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-admin,
    .grid-detalle,
    .checkbox-lista {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .contenedor {
        width: 95%;
    }

    .seccion {
        padding: 22px 18px;
    }

    .encabezado {
        padding: 28px 18px;
    }

    .encabezado h1 {
        font-size: 24px;
    }

    .barra-admin {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .usuario-admin {
        flex-wrap: wrap;
        justify-content: center;
    }

    .respuesta-detalle {
        flex-direction: column;
        gap: 8px;
    }

    .valor-respuesta {
        min-width: auto;
        text-align: left;
    }

    .encabezado-detalle {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .form-filtros {
        grid-template-columns: 1fr;
    }

    .barra-resultados {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 700px) {

    .seccion .campo input[type="text"],
    .seccion .campo input[type="tel"],
    .seccion .campo input[type="email"] {
        width: 100%;
        max-width: none;
    }

}

@media (max-width: 700px) {

    #sector,
    #sector_otro,
    #tamano_organizacion,
    #carrera,
    #area_desempeno,
    #area_otro,
    #tiempo_laborando {
        width: 100%;
        max-width: none;
    }

}

@media (max-width: 750px) {

    .barra-admin {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 5%;
        gap: 14px;
    }

    .menu-superior-admin {
        width: 100%;
        flex-wrap: wrap;
    }

    .nombre-usuario-admin {
        border-left: none;
        margin-left: 0;
        padding-left: 8px;
    }
}

@media (max-width: 850px) {

    .encabezado {
        padding: 25px 20px;

        flex-direction: column;

        min-height: auto;
    }

    .logo-encabezado {
        position: static;

        transform: none;

        margin-bottom: 12px;
    }

    .logo-encabezado-izq {
        width: 85px;
    }

    .logo-encabezado-der {
        width: 75px;
    }

    .contenido-encabezado h1 {
        font-size: 25px;
    }

    .contenido-encabezado p {
        font-size: 14px;
    }
}

@media (max-width: 850px) {

    .franja-lateral {
        display: none;
    }

    body {
        padding-left: 0;
        padding-right: 0;
    }

}

/* =================================
   TAMAÑO DE CAMPOS DATOS GENERALES
================================= */

/* Empresa, nombre y cargo */
.seccion .campo input[type="text"] {
    width: 65%;
    max-width: 650px;
}

/* Teléfono */
.seccion .campo input[type="tel"] {
    width: 35%;
    max-width: 300px;
}

/* Correo */
.seccion .campo input[type="email"] {
    width: 55%;
    max-width: 550px;
}

/* =================================
   TAMAÑO DE SELECTS - PREGUNTAS 6-10
================================= */

/* 6. Sector */
#sector {
    width: 55%;
    max-width: 500px;
}

/* Campo que aparece al seleccionar "Otro" */
#sector_otro {
    width: 55%;
    max-width: 500px;
}

/* 7. Tamaño de la organización */
#tamano_organizacion {
    width: 40%;
    max-width: 350px;
}

/* 8. Carrera */
#carrera {
    width: 60%;
    max-width: 550px;
}

/* 9. Área principal de desempeño */
#area_desempeno {
    width: 55%;
    max-width: 500px;
}

/* Campo que aparece al seleccionar "Otra" */
#area_otro {
    width: 55%;
    max-width: 500px;
}

/* 10. Tiempo laborando */
#tiempo_laborando {
    width: 45%;
    max-width: 400px;
}

.cerrar-sesion-admin {
    display: inline-block;

    padding: 9px 15px;

    color: white;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);

    border-radius: 6px;

    transition: 0.2s ease;
}

.cerrar-sesion-admin:hover {
    background: rgba(255, 255, 255, 0.20);
}

/*SUBTITULO DE CAPACIDAD PARA: */
.titulo-capacidad {
    margin-top: 20px;
    margin-bottom: 8px;

    font-size: 18px;
    font-weight: 700;

    color: var(--azul-oscuro);

    padding: 8px 12px;

    border-left: 4px solid var(--azul);
}
/*SUBTITULO DE CAPACIDAD PARA: */

/*PREGUNTAS DE CONVENIO */
.opciones-inline {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.opciones-inline label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.campo-condicional {
    margin: 12px 0 22px 20px;
    padding: 15px 18px;
    background: #f8fafc;
    border-left: 3px solid var(--azul);
    border-radius: 6px;
}

.informacion-convenio {
    margin: 15px 0 25px 20px;
    padding: 20px;
    background: var(--azul-claro);
    border-left: 4px solid var(--azul);
    border-radius: 8px;
}

.informacion-convenio h3 {
    color: var(--azul-oscuro);
    margin-bottom: 10px;
}

.informacion-convenio p {
    margin-bottom: 8px;
}

.informacion-convenio a {
    color: var(--azul);
    font-weight: 600;
}

.botones-formatos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.boton-formato {
    display: inline-block;
    padding: 9px 15px;
    background: var(--azul);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
}

.boton-formato:hover {
    background: var(--azul-oscuro);
}

.boton-formato-secundario {
    background: #5d6874;
}
/*PREGUNTAS DE CONVENIO */

.informacion-convenio a {
    color: var(--azul);
    font-weight: 600;
    text-decoration: none;
}


/*TABLA DE TRABAJADORES */
.tabla-trabajadores-contenedor {
    width: 100%;
    overflow-x: auto;
    margin-top: 18px;
}

.tabla-trabajadores {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.tabla-trabajadores th {
    background: var(--azul);
    color: white;
    padding: 10px;
    text-align: left;
    font-size: 13px;
}

.tabla-trabajadores td {
    padding: 10px;
    border-bottom: 1px solid #e4e8ed;
    vertical-align: top;
}

.tabla-trabajadores select,
.tabla-trabajadores input {
    width: 100%;
    min-width: 170px;
}

.numero-trabajador {
    font-weight: 600;
    color: var(--azul-oscuro);
    white-space: nowrap;
}

.area-otro-trabajador {
    margin-top: 7px;
}

.contenedor-agregar-trabajador {
    margin-top: 15px;
}

.boton-eliminar-trabajador {
    border: 1px solid #d5d9de;
    background: white;
    padding: 7px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.boton-eliminar-trabajador:hover:not(:disabled) {
    background: #f2f3f5;
}

.boton-eliminar-trabajador:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/*TABLA DE TRABAJADORES */


/*TABLA DE TRABAJADORES / DETALLE ENCUESTA */

.tabla-trabajadores-detalle {
    min-width: 700px;
}

.tabla-trabajadores-detalle th,
.tabla-trabajadores-detalle td {
    padding: 10px 12px;
}

.tabla-trabajadores-detalle td:first-child {
    font-weight: 600;
    white-space: nowrap;
}
/*TABLA DE TRABAJADORES / DETALLE ENCUESTA */


/*PASO ENCUESTA */
.paso-encuesta {
    display: none;
}

.paso-encuesta.activo {
    display: block;
}
/*PASO ENCUESTA */


/*NAVEGACION ENCUESTA */

.navegacion-encuesta {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.navegacion-encuesta button {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
/*NAVEGACION ENCUESTA */


/*BARRA PROGRESO NAVEGACION */
.progreso-encuesta {
    background: #e8e8e8;
    padding: 12px 18px;
    margin-bottom: 16px;

    border-radius: 8px;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.04);
}

.texto-progreso {
    font-size: 13px;
    font-weight: 600;
    color: var(--azul-oscuro);

    margin-bottom: 7px;
}

.barra-progreso {
    width: 100%;
    height: 7px;

    background: #ffe9b6;

    border-radius: 10px;

    overflow: hidden;
}

.barra-progreso-activa {
    width: 16.67%;
    height: 100%;
    background: var(--azul);
    border-radius: 10px;
    transition: width 0.3s ease;
}
/*BARRA PROGRESO NAVEGACION */


/*INSTRUCCIONES GENERALES*/
.instrucciones-generales {
    margin: 18px 0 25px;
    padding: 14px 18px;

    background: #f4f7fa;
    border-left: 4px solid #123f69;
    border-radius: 6px;

    font-size: 16px;
    line-height: 1.6;
}

.instrucciones-generales strong {
    color: #0d3153;
}

.instrucciones-generales p {
    margin: 5px 0;
}
/*INSTRUCCIONES GENERALES*/


/*BOTON SOLO SIGUIENTE SECCION I*/
.navegacion-encuesta.solo-siguiente {
    justify-content: flex-end;
}
/*BOTON SOLO SIGUIENTE SECCION I*/


/*BOTON SIGUIENTE Y ANTERIOR*/

.boton-siguiente {
    background-color: #123f69;
    color: white;
}

.boton-siguiente:hover {
    background-color: #0d3153;
}

.boton-anterior {
    background-color: #0d3153;
    color: white;
}

.boton-anterior:hover {
    background-color: #0d3153;
}
/*BOTON SIGUIENTE Y ANTERIOR*/

/* BOTÓN ENVIAR */
.boton-enviar {
    background-color: #c49104;
    color: white;
}

.boton-enviar:hover {
    background-color: #0d2253;
}


/* Pregunta que tiene un error */
.pregunta.campo-error {
    border-left: 4px solid #c62828;
    background-color: #fff7f7;

    padding: 12px 15px;
    border-radius: 6px;

    transition: all 0.2s ease;
}


/* Mensaje debajo de la pregunta 
.mensaje-error {
    margin-top: 10px;

    color: #b42318;

    font-size: 14px;
    font-weight: 600;
}

*/
.campo-error {
    border-left: 4px solid #c62828 !important;
    background-color: #fff7f7 !important;

    padding: 12px 15px;
    border-radius: 6px;

    transition: all 0.2s ease;
}

.mensaje-validacion {
    margin-top: 8px;

    color: #b42318;

    font-size: 13px;
    font-weight: 600;
}

/* =====================================
   ENCABEZADO INSTITUCIONAL
===================================== */

.encabezado {
    position: relative;

    background: linear-gradient(
        135deg,
        var(--azul-oscuro),
        var(--azul)
    );

    color: white;

    border-radius: 14px;

    padding: 45px 150px;

    text-align: center;

    margin-bottom: 25px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);

    min-height: 260px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contenido-encabezado {
    width: 100%;
}

.contenido-encabezado h1 {
    font-size: 34px;
    line-height: 1.4;
    margin-bottom: 18px;
}

.contenido-encabezado p {
    font-size: 18px;
    line-height: 1.6;
}

.logo-encabezado {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    object-fit: contain;
}

.logo-encabezado-izq {
    left: 35px;

    width: 105px;
    max-height: 150px;
}

.logo-encabezado-der {
    right: 35px;

    width: 100px;
    max-height: 150px;
}


/* =====================================
   LAYOUT PRINCIPAL
===================================== */

.layout-encuesta {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1450px;

    margin: 0 auto;

    padding-top: 25px;

    display: grid;

    grid-template-columns: 39% 57%;

    gap: 30px;

    justify-content: center;
    align-items: start;

    box-sizing: border-box;

    
}


/* SIDEBAR */

.sidebar-encuesta {
    position: sticky;
    top: 20px;

    height: calc(100vh - 40px);
}

.sidebar-imagen {
    width: 100%;
    height: 100%;
}

.sidebar-imagen img {
    width: 100%;
    height: 97.5%;

    object-fit: cover;
    object-position: center;

    border-radius: 16px;

    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.12);

    transition: opacity 0.8s ease;
}


/* CONTENIDO DERECHO */

.contenido-principal {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.contenido-principal .contenedor {
    width: 100%;
    max-width: none;
    margin: 0;
}


/* =====================================
   FOOTER
===================================== */

.footer-institucional {
    width: 100%;

    margin-top: 0;

    background: #f3f7fb;

    border-top: 4px solid #123f72;

    box-sizing: border-box;
}

.footer-contenido {
    width: 92%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 45px 20px;

    display: grid;

    grid-template-columns: 1fr 1.2fr 1.8fr;

    gap: 50px;
}


/* TITULOS */

.footer-columna h3 {
    color: #123f72;

    font-size: 20px;

    margin-bottom: 18px;
}


/* REDES SOCIALES */

.redes-sociales {
    display: flex;
    gap: 16px;

    flex-wrap: wrap;
}


.icono-red {
    width: 46px;
    height: 46px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    color: white;

    text-decoration: none;

    font-size: 22px;

    transition: 0.2s ease;
}


.icono-red:hover {
    transform: translateY(-3px);
}


/* COLORES */

.facebook {
    background: #1877f2;
}

.instagram {
    background: #e4405f;
}

.twitter-x {
    background: #000000;
}

.youtube {
    background: #ff0000;
}

.sitio-web {
    background: #123f72;
}


/* CONTACTO */

.dato-contacto {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 15px;
}


.dato-contacto i {
    margin-top: 4px;

    color: #123f72;

    font-size: 18px;

    width: 20px;
}


.dato-contacto p {
    margin: 0;

    line-height: 1.6;

    font-size: 14px;
}


/* MAPA */

.footer-mapa iframe {
    width: 100%;

    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}


/* PARTE INFERIOR */

.footer-inferior {
    background: #123f72;

    color: white;

    text-align: center;

    padding: 15px;
}


.footer-inferior p {
    margin: 0;

    font-size: 13px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .footer-contenido {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}


/* =====================================
   FRANJAS LATERALES
===================================== */

.zona-encuesta {
    position: relative;

    width: 100%;

    /* espacio para las barras + separación */
    padding-left: 75px;
    padding-right: 75px;

    box-sizing: border-box;

    background: #f4f6f8;
}

.zona-encuesta::before,
.zona-encuesta::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    width: 55px;

    background-color: #1B396A;

    z-index: 0;
}

.zona-encuesta::before {
    left: 0;
}

.zona-encuesta::after {
    right: 0;
}



/*ASPECTOS DEL LOGIN */
.login-logos {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 35px;

    margin-bottom: 22px;
}


/* LOGO TECNM */

.login-logo-tecnm {
    width: 180px;
    height: 100px;

    object-fit: contain;

    display: block;
}


/* LOGO ITO */

.login-logo-ito {
    width: 180px;
    height: 100px;

    object-fit: contain;

    display: block;
}

.login-card {
    width: 100%;
    max-width: 450px;

    background: rgba(255, 255, 255, 0.96);

    padding: 20px 48px;

    border-radius: 16px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.25);

    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}


.contenedor-login {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    box-sizing: border-box;

    background:
        linear-gradient(
            rgba(12, 42, 73, 0.48),
            rgba(12, 42, 73, 0.48)
        ),
        url("../img/fondo-login.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-card .campo {
    margin-bottom: 18px;
}


.login-card .campo input {
    width: 100%;
    height: 44px;

    padding: 8px 12px;

    box-sizing: border-box;

    border: 1px solid #d5dbe3;
    border-radius: 6px;
}

.login-card h1 {
    text-align: center;

    margin: 0 0 8px;

    color: #123f72;

    font-size: 28px;
}


.login-card > p {
    text-align: center;

    margin: 0 0 28px;

    color: #667085;

    font-size: 15px;
}

.contenedor-boton {
    display: flex;
    justify-content: center;

    margin-top: 22px;
}


.login-card .boton-enviar {
    width: auto;

    min-width: 190px;

    padding: 10px 24px;

    background: #d39b00;

    color: white;

    border: none;
    border-radius: 7px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    /* MOVER EL BOTÓN HACIA ABAJO */
    transform: translateY(20px);
}

/* */

.campo-validacion {
    width: 100%;
}

.mensaje-validacion {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #c62828;
    line-height: 1.3;
}

.campo-validacion.error .mensaje-validacion {
    display: block;
}

.campo-validacion.error select,
.campo-validacion.error input {
    border: 1.5px solid #c62828;
    background-color: #fff8f8;
}

.campo-validacion.error select:focus,
.campo-validacion.error input:focus {
    outline: none;
    border-color: #a91515;
}


.mensaje-validacion-dinamico {
    margin-top: 8px;
    padding: 8px 12px;

    color: #c62828;
    background-color: #fff4f4;

    border-left: 4px solid #d32f2f;
    border-radius: 5px;

    font-size: 14px;
    font-weight: 600;
}




/*MENSAJE DE AGRADECIMIENTO*/


.gracias-contenedor {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
    box-sizing: border-box;
}

.gracias-card {
    width: 100%;
    max-width: 720px;

    background: white;

    padding: 55px 60px;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12);

    border-top: 6px solid #123f72;
}

.icono-check {
    width: 85px;
    height: 85px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e8f5ee;

    color: #238653;

    font-size: 48px;
    font-weight: bold;
}

.gracias-card h1 {
    margin: 0 0 20px;

    color: #123f72;

    font-size: 34px;
    font-weight: 700;
}

.mensaje-principal {
    margin: 0 0 12px;

    font-size: 19px;
    font-weight: 600;

    color: #243447;
}

.mensaje-secundario {
    max-width: 600px;

    margin: 0 auto;

    font-size: 16px;
    line-height: 1.6;

    color: #5d6875;
}

.separador {
    width: 80px;
    height: 3px;

    margin: 28px auto;

    background: #d39b00;

    border-radius: 10px;
}

.mensaje-final {
    margin-bottom: 28px;

    font-size: 15px;

    color: #667085;
}

.boton-volver {
    display: inline-block;

    padding: 12px 28px;

    background: #123f72;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;

    transition: 0.2s ease;
}

.boton-volver:hover {
    background: #0d3159;
    transform: translateY(-2px);
}

