:root {
    --azul-900: #12385f;
    --azul-800: #194d7d;
    --azul-700: #2268a8;
    --azul-100: #e7f1fb;
    --azul-050: #f4f8fc;
    --dorado: #d9a629;
    --tinta: #17283a;
    --texto: #3c4f63;
    --borde: #d8e2ec;
    --blanco: #ffffff;
    --verde: #167349;
    --rojo: #a32929;
    --sombra: 0 18px 48px rgba(20, 56, 95, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--tinta);
    background: var(--azul-050);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.contenedor {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.salto-contenido {
    position: absolute;
    top: -80px;
    left: 16px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--blanco);
    background: var(--azul-900);
}

.salto-contenido:focus {
    top: 12px;
}

.barra-superior {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(216, 226, 236, 0.85);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.navegacion {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.marca {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    color: var(--azul-900);
}

.marca img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.marca-texto {
    display: grid;
    line-height: 1.1;
}

.marca-texto small {
    margin-top: 5px;
    color: #64778b;
    font-size: 0.72rem;
    font-weight: 600;
}

.menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.menu > a:not(.boton) {
    color: #40556a;
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}

.menu > a:not(.boton):hover,
.menu > a:not(.boton):focus-visible {
    color: var(--azul-700);
}

.boton {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.boton:hover {
    transform: translateY(-1px);
}

.boton-primario {
    color: var(--blanco);
    background: var(--azul-800);
    box-shadow: 0 8px 18px rgba(25, 77, 125, 0.18);
}

.boton-primario:hover,
.boton-primario:focus-visible {
    background: var(--azul-700);
}

.boton-secundario {
    color: var(--azul-900);
    border-color: #b9cce0;
    background: var(--blanco);
}

.boton:disabled {
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.58;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 76px;
    background:
        radial-gradient(circle at 88% 18%, rgba(217, 166, 41, 0.16), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #eaf3fb 100%);
}

.hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -170px;
    width: 420px;
    height: 420px;
    border: 74px solid rgba(34, 104, 168, 0.08);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: 64px;
}

.etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--azul-800);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.etiqueta::before {
    content: "";
    width: 30px;
    height: 3px;
    border-radius: 10px;
    background: var(--dorado);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 22px;
    color: var(--azul-900);
    font-size: clamp(2.55rem, 6vw, 4.65rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 650px;
    margin-bottom: 30px;
    color: var(--texto);
    font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.acciones-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tarjeta-identidad {
    position: relative;
    padding: 34px;
    border: 1px solid rgba(185, 204, 224, 0.82);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--sombra);
}

.tarjeta-identidad img {
    display: block;
    width: min(250px, 74%);
    max-height: 250px;
    margin: 0 auto;
    object-fit: contain;
}

.lema-institucional {
    display: grid;
    gap: 4px;
    margin: 22px 0 0;
    color: var(--azul-900);
    text-align: center;
}

.lema-institucional strong {
    font-size: 1.12rem;
}

.lema-institucional span {
    color: #64778b;
    font-size: 0.9rem;
}

.datos-rapidos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.dato-rapido {
    padding: 13px 8px;
    border-radius: 10px;
    color: var(--azul-900);
    background: var(--azul-100);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

.seccion {
    padding: 82px 0;
}

.seccion-blanca {
    background: var(--blanco);
}

.encabezado-seccion {
    max-width: 760px;
    margin-bottom: 38px;
}

.encabezado-seccion h2 {
    margin-bottom: 14px;
    color: var(--azul-900);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.encabezado-seccion p {
    color: var(--texto);
    font-size: 1.04rem;
}

.grilla-tarjetas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tarjeta {
    padding: 26px;
    border: 1px solid var(--borde);
    border-radius: 16px;
    background: var(--blanco);
    box-shadow: 0 8px 26px rgba(18, 56, 95, 0.06);
}

.tarjeta-numero {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 12px;
    color: var(--blanco);
    background: var(--azul-800);
    font-weight: 850;
}

.tarjeta h3 {
    margin-bottom: 10px;
    color: var(--azul-900);
    font-size: 1.2rem;
}

.tarjeta p {
    margin-bottom: 0;
    color: var(--texto);
}

.valores {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 58px;
}

.lista-valores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.valor {
    padding: 20px;
    border-left: 4px solid var(--dorado);
    border-radius: 8px;
    background: var(--blanco);
    box-shadow: 0 8px 24px rgba(18, 56, 95, 0.06);
}

.valor strong {
    display: block;
    margin-bottom: 5px;
    color: var(--azul-900);
}

.valor span {
    color: var(--texto);
    font-size: 0.92rem;
}

.seccion-cv {
    background: linear-gradient(150deg, var(--azul-900), #1a5689);
}

.cv-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: start;
    gap: 54px;
}

.cv-intro,
.cv-intro h2 {
    color: var(--blanco);
}

.cv-intro h2 {
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    line-height: 1.1;
}

.cv-intro p {
    color: #dceaf7;
}

.pasos-cv {
    display: grid;
    gap: 13px;
    margin-top: 28px;
}

.paso-cv {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #f0f7ff;
}

.paso-cv b {
    display: grid;
    flex: 0 0 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--azul-900);
    background: var(--dorado);
}

.formulario-cv {
    padding: 32px;
    border-radius: 20px;
    background: var(--blanco);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2);
}

.formulario-cv h3 {
    margin-bottom: 6px;
    color: var(--azul-900);
    font-size: 1.45rem;
}

.ayuda-formulario {
    margin-bottom: 24px;
    color: #617387;
    font-size: 0.9rem;
}

.grilla-formulario {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.campo {
    min-width: 0;
}

.campo-completo {
    grid-column: 1 / -1;
}

.campo label,
.etiqueta-campo {
    display: block;
    margin-bottom: 7px;
    color: #243b52;
    font-size: 0.9rem;
    font-weight: 750;
}

.campo input,
.campo textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #b9c8d7;
    border-radius: 9px;
    color: var(--tinta);
    background: var(--blanco);
    font: inherit;
}

.campo textarea {
    min-height: 104px;
    resize: vertical;
}

.campo input:focus,
.campo textarea:focus {
    outline: 3px solid rgba(34, 104, 168, 0.16);
    border-color: var(--azul-700);
}

.campo input[type="file"] {
    padding: 9px;
    background: #f8fafc;
}

.campo small {
    display: block;
    margin-top: 6px;
    color: #6b7c8e;
}

.consentimiento {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #45596d;
    font-size: 0.88rem;
}

.consentimiento input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--azul-700);
}

.aviso {
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 9px;
    font-size: 0.92rem;
}

.aviso-exito {
    color: #0f5d3b;
    border-color: #8bd2b1;
    background: #eaf8f1;
}

.aviso-error {
    color: #8a2424;
    border-color: #efaaaa;
    background: #fff0f0;
}

.aviso-configuracion {
    color: #684d05;
    border-color: #e8cf80;
    background: #fff8dc;
}

.campo-trampa {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.pie {
    padding: 34px 0;
    color: #c6d6e5;
    background: #0b2947;
}

.pie-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pie strong {
    color: var(--blanco);
}

.pie p {
    margin: 4px 0 0;
    font-size: 0.88rem;
}

.pie a {
    font-weight: 700;
}

.pagina-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
    background: var(--blanco);
}

.login-identidad {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(38px, 7vw, 96px);
    color: var(--blanco);
    background: linear-gradient(145deg, var(--azul-900), #1f659f);
}

.login-identidad::after {
    content: "";
    position: absolute;
    right: -150px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 70px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.login-identidad-contenido {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.login-identidad img {
    width: min(250px, 62%);
    margin-bottom: 36px;
}

.login-identidad h1 {
    color: var(--blanco);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.login-identidad p {
    max-width: 520px;
    color: #dbeaf7;
    font-size: 1.08rem;
}

.login-area {
    display: flex;
    align-items: center;
    padding: 40px;
    background: var(--azul-050);
}

.login-panel {
    width: min(430px, 100%);
    margin: 0 auto;
    padding: 34px;
    border: 1px solid var(--borde);
    border-radius: 18px;
    background: var(--blanco);
    box-shadow: var(--sombra);
}

.login-panel h2 {
    margin-bottom: 8px;
    color: var(--azul-900);
    font-size: 1.8rem;
}

.login-panel > p {
    margin-bottom: 24px;
    color: #617387;
}

.login-panel .campo {
    margin-bottom: 17px;
}

.login-panel .boton {
    width: 100%;
}

.volver-inicio {
    display: inline-block;
    margin-top: 20px;
    color: var(--azul-700);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .menu > a:not(.boton) {
        display: none;
    }

    .hero-grid,
    .valores,
    .cv-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 38px;
    }

    .tarjeta-identidad {
        max-width: 620px;
    }

    .grilla-tarjetas {
        grid-template-columns: 1fr;
    }

    .pagina-login {
        grid-template-columns: 1fr;
    }

    .login-identidad {
        min-height: 340px;
    }

    .login-identidad img {
        width: 220px;
        margin-bottom: 20px;
    }
}

@media (max-width: 620px) {
    .contenedor {
        width: min(100% - 28px, 1160px);
    }

    .navegacion {
        min-height: 68px;
    }

    .marca img {
        width: 46px;
        height: 46px;
    }

    .marca-texto small {
        display: none;
    }

    .menu {
        gap: 8px;
    }

    .menu .boton {
        min-height: 42px;
        padding: 9px 12px;
        font-size: 0.86rem;
    }

    .hero,
    .seccion {
        padding: 58px 0;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    h1 {
        font-size: 2.65rem;
    }

    .tarjeta-identidad,
    .formulario-cv {
        padding: 23px;
    }

    .datos-rapidos,
    .lista-valores,
    .grilla-formulario {
        grid-template-columns: 1fr;
    }

    .campo-completo {
        grid-column: auto;
    }

    .pie-contenido {
        display: grid;
    }

    .login-identidad {
        min-height: 290px;
        padding: 34px 24px;
    }

    .login-identidad h1 {
        font-size: 2.35rem;
    }

    .login-identidad p {
        display: none;
    }

    .login-area {
        padding: 26px 16px 42px;
    }

    .login-panel {
        padding: 26px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .boton {
        transition: none;
    }
}
