* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Source Sans 3", Arial, sans-serif;
    color: #111;
}

.portada-body {
    background: #efefef;
    min-height: 100vh;
}

.portada-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 16px 40px;
}

.portada-card {
    width: 100%;
    max-width: 980px;
    text-align: center;
}

.logos-superiores {
    margin-top: 6px;
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-facultad {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.banner-titulo {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 95px;
    background: linear-gradient(to bottom, #0d4d74, #083f61);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 0.3px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 3px solid #143347;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.15), 0 3px 0 rgba(0,0,0,0.2);
}

.titulo-universidad {
    max-width: 900px;
    margin: 0 auto 150px;
    font-size: 30px;
    line-height: 1.9;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: "Source Sans 3", Arial, sans-serif;
}

.sublinea-titulo {
    display: block;
    margin-top: 14px;
    font-size: 0.95em;
    font-weight: 700;
}

.texto-intro {
    font-size: 18px;
    margin-bottom: 18px;
}

.privacidad-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.privacidad-box {
    margin-bottom: 24px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.link-privacidad {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.link-privacidad:hover {
    color: #0066cc;
    text-decoration: underline;
}

.btn-continuar {
    background: #0b5d8a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-continuar:hover:not(:disabled) {
    background: #084766;
}

.btn-continuar:disabled {
    background: #9aa8b3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .logos-superiores {
        gap: 20px;
    }

    .logo-facultad {
        width: 100px;
    }

    .banner-titulo {
        font-size: 17px;
        padding: 14px 16px;
        margin-bottom: 70px;
    }

    .titulo-universidad {
        font-size: 22px;
        margin-bottom: 110px;
    }

    .texto-intro,
    .checkbox-label {
        font-size: 16px;
    }
}

/* =========================
   IDENTIFICACIÓN
========================= */

.identificacion-body {
    background: #eef1f4;
    min-height: 100vh;
    font-family: "Source Sans 3", Arial, sans-serif;
}

.identificacion-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 18px;
}

.identificacion-card {
    width: 100%;
    max-width: 920px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 38px 34px;
}

.encabezado-identificacion {
    text-align: center;
    margin-bottom: 32px;
}

.encabezado-identificacion h1 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.15;
    color: #113f61;
    font-weight: 900;
}

.encabezado-identificacion p {
    margin: 0;
    font-size: 19px;
    color: #49545c;
}

.form-identificacion {
    width: 100%;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
    margin-bottom: 30px;
}

.grupo {
    display: flex;
    flex-direction: column;
}

.grupo label {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1c2730;
}

.grupo input[type="text"],
.grupo input[type="email"],
.grupo input[type="date"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cfd8df;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 17px;
    font-family: "Source Sans 3", Arial, sans-serif;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.grupo input[type="text"]:focus,
.grupo input[type="email"]:focus,
.grupo input[type="date"]:focus {
    outline: none;
    border-color: #0b5d8a;
    box-shadow: 0 0 0 3px rgba(11, 93, 138, 0.12);
}

.grupo-completo {
    grid-column: 1 / -1;
}

.grupo-mapa {
    grid-column: 1 / -1;
}

#mapaClinica {
    width: 100%;
    height: 420px;
    border: 1px solid #cfd8df;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 8px;
}

.mapa-ayuda {
    margin-top: 10px;
    font-size: 16px;
    color: #49545c;
    line-height: 1.5;
}

.coordenadas-box {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f7f9fb;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    font-size: 15px;
    color: #1c2730;
}

.seccion-eje {
    margin-top: 8px;
    margin-bottom: 34px;
}

.label-bloque {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #123f5f;
    margin-bottom: 16px;
}

.opciones-seccion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.opcion-seccion {
    display: block;
    cursor: pointer;
}

.opcion-seccion input {
    display: none;
}

.opcion-seccion span {
    display: block;
    border: 2px solid #cdd7de;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    background: #f7fafc;
    color: #1d2a33;
    transition: all 0.2s ease;
}

.opcion-seccion:hover span {
    border-color: #7aa6bf;
    background: #f1f7fb;
}

.opcion-seccion input:checked + span {
    border-color: #0b5d8a;
    background: #e8f2f8;
    box-shadow: 0 0 0 3px rgba(11, 93, 138, 0.12);
    color: #0b4f77;
}

.acciones-form {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-principal {
    background: #0b5d8a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 800;
    font-family: "Source Sans 3", Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-principal:hover {
    background: #084766;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .identificacion-card {
        padding: 28px 20px;
    }

    .encabezado-identificacion h1 {
        font-size: 34px;
    }

    .encabezado-identificacion p {
        font-size: 17px;
    }

    .grid-form {
        grid-template-columns: 1fr;
    }

    .grupo-completo {
        grid-column: auto;
    }

    .opciones-seccion {
        grid-template-columns: 1fr;
    }

    #mapaClinica {
        height: 360px;
    }
}

/* =========================
   SECCIONES DEL CUESTIONARIO
========================= */

.cuestionario-body {
    background: #eef1f4;
    min-height: 100vh;
    font-family: "Source Sans 3", Arial, sans-serif;
}

.cuestionario-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 38px 18px 50px;
}

.cuestionario-card {
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 34px 32px 40px;
}

.cuestionario-header {
    text-align: center;
    margin-bottom: 28px;
}

.cuestionario-header h1 {
    margin: 0 0 6px;
    font-size: 42px;
    line-height: 1.15;
    color: #123f5f;
    font-weight: 900;
}

.cuestionario-header p {
    margin: 0;
    font-size: 19px;
    color: #56626b;
}

.cuestionario-banner {
    background: linear-gradient(to bottom, #0d4d74, #083f61);
    color: #fff;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 20px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 3px solid #143347;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.15), 0 3px 0 rgba(0,0,0,0.2);
    letter-spacing: 0.3px;
}

.cuestionario-bloque {
    margin-bottom: 36px;
}

.cuestionario-bloque h2 {
    margin: 0 0 12px;
    font-size: 34px;
    color: #111;
    font-weight: 800;
}

.cuestionario-instrucciones {
    font-size: 18px;
    line-height: 1.55;
    color: #39444d;
    margin-bottom: 10px;
}

.cuestionario-instrucciones em {
    font-style: italic;
}

.cuestionario-pregunta {
    padding: 22px 0 24px;
    border-bottom: 1px solid #e3e8ec;
}

.cuestionario-pregunta p {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.5;
    color: #1d2730;
}

.opciones-likert {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.opcion-likert {
    display: block;
    width: 100%;
    cursor: pointer;
}

.opcion-likert input {
    display: none;
}

.opcion-likert span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    border: 2px solid #cfd8df;
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #1f2b34;
    background: #f7fafc;
    transition: all 0.2s ease;
    line-height: 1.25;
}

.opcion-likert:hover span {
    border-color: #7aa6bf;
    background: #f1f7fb;
}

.opcion-likert input:checked + span {
    border-color: #0b5d8a;
    background: #e8f2f8;
    box-shadow: 0 0 0 3px rgba(11, 93, 138, 0.12);
    color: #0b4f77;
}

.opciones-radio-lista {
    display: grid;
    gap: 12px;
}

.opcion-radio {
    display: block;
    cursor: pointer;
}

.opcion-radio input {
    display: none;
}

.opcion-radio span {
    display: block;
    border: 2px solid #cfd8df;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 600;
    color: #1f2b34;
    background: #f7fafc;
    transition: all 0.2s ease;
}

.opcion-radio:hover span {
    border-color: #7aa6bf;
    background: #f1f7fb;
}

.opcion-radio input:checked + span {
    border-color: #0b5d8a;
    background: #e8f2f8;
    box-shadow: 0 0 0 3px rgba(11, 93, 138, 0.12);
    color: #0b4f77;
}

.cuestionario-textarea {
    margin-top: 22px;
}

.cuestionario-textarea label {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 800;
    color: #123f5f;
}

.cuestionario-textarea textarea {
    width: 100%;
    min-height: 150px;
    border: 1px solid #cfd8df;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 17px;
    font-family: "Source Sans 3", Arial, sans-serif;
    resize: vertical;
}

.cuestionario-textarea textarea:focus {
    outline: none;
    border-color: #0b5d8a;
    box-shadow: 0 0 0 3px rgba(11, 93, 138, 0.12);
}

.cuestionario-acciones {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-cuestionario {
    background: #0b5d8a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 800;
    font-family: "Source Sans 3", Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-cuestionario:hover {
    background: #084766;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cuestionario-card {
        padding: 26px 18px 32px;
    }

    .cuestionario-header h1 {
        font-size: 34px;
    }

    .cuestionario-header p {
        font-size: 17px;
    }

    .cuestionario-banner {
        font-size: 17px;
        padding: 14px 16px;
    }

    .cuestionario-bloque h2 {
        font-size: 28px;
    }

    .cuestionario-pregunta p {
        font-size: 17px;
    }

    .opciones-likert {
        grid-template-columns: 1fr;
    }
}

.cuestionario-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.grupo-archivo {
    border: 1px solid #d7e0e7;
    border-radius: 14px;
    background: #f8fbfd;
    padding: 18px;
}

.grupo-archivo label {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #123f5f;
    margin-bottom: 8px;
}

.grupo-archivo p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.45;
    color: #4a565f;
}

.grupo-archivo input[type="file"] {
    width: 100%;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 15px;
}

@media (max-width: 900px) {
    .cuestionario-upload-grid {
        grid-template-columns: 1fr;
    }
}

.cuestionario-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.grupo-archivo {
    border: 1px solid #d7e0e7;
    border-radius: 14px;
    background: #f8fbfd;
    padding: 18px;
}

.grupo-archivo label {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #123f5f;
    margin-bottom: 8px;
}

.grupo-archivo p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.45;
    color: #4a565f;
}

.archivo-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.input-archivo-personalizado {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.btn-archivo,
label.btn-archivo,
.grupo-archivo .btn-archivo {
    display: inline-block;
    background: #0b5d8a;
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    padding: 14px 22px;
    min-width: 220px;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    font-family: "Source Sans 3", Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn-archivo:hover,
label.btn-archivo:hover,
.grupo-archivo .btn-archivo:hover {
    background: #084766;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-archivo:visited,
.btn-archivo:active,
.btn-archivo:focus,
label.btn-archivo:visited,
label.btn-archivo:active,
label.btn-archivo:focus,
.grupo-archivo .btn-archivo:visited,
.grupo-archivo .btn-archivo:active,
.grupo-archivo .btn-archivo:focus {
    color: #ffffff !important;
    text-decoration: none;
}

.archivo-nombre {
    font-size: 15px;
    color: #4e5b65;
    line-height: 1.4;
    word-break: break-word;
}

@media (max-width: 900px) {
    .cuestionario-upload-grid {
        grid-template-columns: 1fr;
    }
}

.grupo-archivo label.btn-archivo {
    color: #ffffff !important;
}