* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        #f4f7fb;

    color: #333;
}


/* =========================================================
   CONTENEDOR
========================================================= */

.contenedor {
    width: 100%;
    max-width: 1100px;

    margin: 40px auto;

    padding: 20px;
}


/* =========================================================
   TARJETA
========================================================= */

.tarjeta {

    background: #ffffff;

    border-radius: 16px;

    padding: 35px;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.08);

}


/* =========================================================
   LOGIN
========================================================= */

.login-contenedor {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;
}

.login-card {

    width: 100%;

    max-width: 430px;

    background: #ffffff;

    padding: 40px;

    border-radius: 18px;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.10);

    text-align: center;
}


/* =========================================================
   LOGO
========================================================= */

.logo {

    max-width: 180px;

    max-height: 90px;

    object-fit: contain;
}

.logo-container {

    margin-bottom: 20px;
}

.logo-formulario {

    max-width: 150px;

    max-height: 70px;

    object-fit: contain;
}

.logo-centro {

    text-align: center;

    margin-bottom: 25px;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.encabezado {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    border-bottom:
        4px solid #FDB813;

    padding-bottom: 25px;

    margin-bottom: 30px;
}

h1 {

    color: #0056B3;

    margin-bottom: 8px;
}

h2 {

    color: #0056B3;
}


/* =========================================================
   FORMULARIOS
========================================================= */

.grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.campo {

    display: flex;

    flex-direction: column;
}

.campo-completo {

    grid-column:
        1 / -1;
}

label {

    font-weight: bold;

    margin-bottom: 8px;

    color: #333;
}

input,
select,
textarea {

    width: 100%;

    padding: 13px;

    border:
        1px solid #ccd4df;

    border-radius: 8px;

    font-size: 15px;

    background: #fff;
}

input:focus,
select:focus,
textarea:focus {

    outline: none;

    border-color: #0056B3;

    box-shadow:
        0 0 0 3px rgba(0,86,179,0.10);
}


/* =========================================================
   SECCIONES
========================================================= */

.seccion {

    margin-bottom: 35px;

    padding-bottom: 30px;

    border-bottom:
        1px solid #e3e8ef;
}

.titulo-seccion {

    font-size: 20px;

    font-weight: bold;

    color: #0056B3;

    border-left:
        6px solid #FDB813;

    padding-left: 12px;

    margin-bottom: 20px;
}

.ayuda {

    color: #666;

    margin-bottom: 20px;
}


/* =========================================================
   ACTIVIDADES
========================================================= */

.actividades {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}

.checkbox-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px;

    border:
        1px solid #e1e5ea;

    border-radius: 8px;

    cursor: pointer;
}

.checkbox-item:hover {

    background:
        #f5f9ff;

    border-color:
        #0056B3;
}

.checkbox-item input {

    width: auto;
}


/* =========================================================
   BOTONES
========================================================= */

.acciones {

    margin-top: 30px;

    text-align: center;
}

.boton {

    border: none;

    background: #0056B3;

    color: #ffffff;

    padding:
        15px 30px;

    border-radius: 8px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.boton:hover {

    background: #00458f;

    transform: translateY(-1px);
}

.salir {

    color: #0056B3;

    text-decoration: none;

    font-weight: bold;
}


/* =========================================================
   ALERTAS
========================================================= */

.alerta-error {

    background: #ffe7e7;

    color: #a40000;

    padding: 12px;

    border-radius: 8px;

    margin-bottom: 20px;
}


/* =========================================================
   CONSENTIMIENTO
========================================================= */

.documentos {

    display: grid;

    gap: 12px;

    margin: 25px 0;
}

.documentos a {

    display: block;

    padding: 15px;

    border-radius: 8px;

    background: #f2f7fd;

    color: #0056B3;

    text-decoration: none;

    font-weight: bold;
}

.checkbox-consentimiento {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin: 25px 0;

    font-weight: normal;
}

.checkbox-consentimiento input {

    width: auto;

    margin-top: 4px;
}

.form-rechazo {

    margin-top: 15px;
}

.boton-rechazar {

    background: #777;
}


/* =========================================================
   ESTADOS
========================================================= */

.mensaje-final {

    max-width: 650px;

    margin: auto;

    text-align: center;
}

.estado-ok {

    background: #e4f7e8;

    color: #19732a;

    padding: 15px;

    border-radius: 8px;

    font-weight: bold;

    margin-top: 20px;
}

.estado-error {

    background: #ffe6e6;

    color: #a00000;

    padding: 15px;

    border-radius: 8px;

    font-weight: bold;

    margin-top: 20px;
}


/* =========================================================
   DOCUMENTOS
========================================================= */

.documento {

    max-width: 850px;

    margin: auto;

    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .grid {

        grid-template-columns: 1fr;
    }

    .actividades {

        grid-template-columns: 1fr;
    }

    .encabezado {

        flex-direction: column;
    }

    .tarjeta {

        padding: 22px;
    }

}