

/* =====================================================
    VARIABLES INSTITUCIONALES
===================================================== */

:root {
    --azul: #171c70;
    --azul-profundo: #10154e;
    --naranja: #ec780f;
    --texto: #252a37;
    --muted: #596173;
    --borde: #e5e8ef;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texto);
    background: #f4f6fb;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #f3a64c;
    outline-offset: 3px;
}

/* =====================================================
    ENCABEZADO INSTITUCIONAL
===================================================== */

.franja-superior {
    height: 7px;
    background: var(--azul);
}

.cabecera {
    background: #fff;
    border-bottom: 3px solid var(--naranja);
}

.cabecera-contenido {
    max-width: 1180px;
    min-height: 94px;
    margin: auto;
    padding: 8px 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-usb {
    display: block;
    max-width: 430px;
    max-height: 83px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cabecera-contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.separador-logos {
    width: 2px;
    height: 55px;
    background-color: #d1d5db;
    border-radius: 2px;
    flex-shrink: 0;
}

/* =====================================================
    ESCENARIO Y FONDO INSTITUCIONAL
===================================================== */

.escenario {
    position: relative;

    min-height: calc(100vh - 104px);
    min-height: calc(100dvh - 104px);

    isolation: isolate;
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

.escenario::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image:
        linear-gradient(
            100deg,
            rgba(9, 22, 57, .48),
            rgba(15, 24, 57, .12) 55%,
            rgba(10, 18, 48, .25)
        ),
        var(--imagen-campus);

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.escenario::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, .13),
        transparent 35%,
        rgba(8, 15, 37, .20)
    );

    pointer-events: none;
}

/* =====================================================
    CONTENIDO PRINCIPAL
===================================================== */

.principal {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 24px 22px;

    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================
   TÍTULO PRINCIPAL DEL PORTAL
========================================== */

.titulo-portal {
    margin: 0 0 6px;

    text-align: center;
    color: var(--azul);

    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.8px;

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 1),
        0 2px 8px rgba(255, 255, 255, 0.95),
        0 4px 18px rgba(255, 255, 255, 0.75);

    transition: all 0.3s ease;
}

/* ==========================================
   SUBTÍTULO INSTITUCIONAL
========================================== */

.subtitulo-portal {
    margin: 8px auto 22px;
    max-width: 850px;
    padding: 0 16px;

    text-align: center;
    color: #404650;

    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.3px;

    text-shadow:
        0 1px 3px rgba(255, 255, 255, 0.95),
        0 2px 8px rgba(255, 255, 255, 0.85);
}



.contenido {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(330px, 400px);

    gap: 32px;
    align-items: center;
}

.paneles {
    display: flex;
    flex-direction: column;
    gap: 12px;

    grid-column: 2;
}

/* =====================================================
    TARJETAS
===================================================== */

.tarjeta {
    background: #fff;
    border-radius: 12px;

    box-shadow:
        0 14px 42px rgba(7, 15, 45, .23);

    padding: 22px 25px;
}

.linea-naranja {
    width: 49px;
    height: 3px;

    background: var(--naranja);
    border-radius: 10px;

    margin: 0 auto 11px;
}

.tarjeta h2 {
    color: var(--azul-profundo);
    text-align: center;

    font-size: 22px;
    margin: 0 0 10px;
}

.tituloLogin {
    font-weight: 900;
    color: #170e62;
}

.tarjeta .descripcion {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;

    text-align: center;
    margin: 0 0 17px;
}

/* =====================================================
    BOTON MICROSOFT 365
===================================================== */

.boton {
    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 1px solid #d9dfe8;
    border-radius: 7px;

    padding: 10px 15px;

    background: #fff;
    color: #202538;

    font: 700 14px Arial, Helvetica, sans-serif;

    text-decoration: none;
    cursor: pointer;

    transition:
        background .18s,
        border-color .18s,
        transform .18s;
}

.boton:hover {
    background: #f5f7fd;
    border-color: #adb7d4;
    transform: translateY(-1px);
}

.microsoft {
    display: grid;

    grid-template-columns: repeat(2, 9px);
    grid-template-rows: repeat(2, 9px);

    gap: 2px;

    width: 20px;
    height: 20px;

    flex: none;
}

.microsoft i:nth-child(1) {
    background: #f25022;
}

.microsoft i:nth-child(2) {
    background: #7fba00;
}

.microsoft i:nth-child(3) {
    background: #00a4ef;
}

.microsoft i:nth-child(4) {
    background: #ffb900;
}

.boton-microsoft {
    position: relative;

    gap: 0;

    padding-right: 32px;
    padding-left: 32px;
}

.boton-microsoft .grupo-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.boton-microsoft .flecha {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 21px;
    line-height: 1;
    font-weight: 400;
}

/* =====================================================
    AVISO INSTITUCIONAL
===================================================== */

.aviso {
    margin-top: 14px;
    padding: 11px 12px;

    border-radius: 7px;
    background: #fff7ee;

    display: flex;
    gap: 10px;
    align-items: flex-start;

    color: #41414a;
    font-size: 12px;
    line-height: 1.5;
}

.aviso .icono {
    width: 19px;
    height: 19px;

    background: var(--naranja);
    color: #fff;

    border-radius: 50%;

    text-align: center;
    font-weight: bold;
    line-height: 19px;

    flex: none;
}

/* =====================================================
    MENSAJES DE ERROR
===================================================== */

.mensaje-error {
    margin: 0 0 15px;
    padding: 12px 14px;

    background: #fff0ee;

    border-left: 4px solid #bf3434;
    border-radius: 5px;

    font-size: 13px;
    line-height: 1.5;
    color: #7c2020;
}

/* =====================================================
    SOPORTE POR CORREO
===================================================== */

.soporte-integrado {
    margin-top: 15px;
    padding-top: 14px;

    border-top: 1px solid var(--borde);
}

.soporte-contacto {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.soporte-contacto .icono-auriculares {
    width: 32px;
    height: 32px;

    object-fit: contain;
    flex-shrink: 0;

    display: block;
}

.soporte-contacto p {
    margin: 0;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.soporte-contacto .link-orange {
    color: var(--naranja);
    font-weight: 700;
    text-decoration: none;

    overflow-wrap: anywhere;
}

.soporte-contacto .link-orange:hover {
    color: #c65e00;
    text-decoration: underline;
}

/* =====================================================
    TARJETA SECUNDARIA - GLPI
===================================================== */

.tarjeta-banner-soporte {
    padding: 12px 20px;
}

.enlace-banner {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
}

.banner-soporte {
    display: block;

    width: 100%;
    max-width: 270px;
    height: auto;

    margin: 0 auto;

    object-fit: contain;
}

.enlace-banner:focus-visible {
    outline: 3px solid var(--naranja);
    outline-offset: 4px;
    border-radius: 5px;
}

/* =====================================================
    PIE DE PAGINA
===================================================== */

.pie {
    background: var(--azul);
    color: #fff;

    text-align: center;

    padding: 10px 20px 11px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.pie p {
    margin: 2px 0;
}

.pie a {
    color: #fff;
}

/* =====================================================
    PORTATILES CON PANTALLAS DE MENOR ALTURA
===================================================== */

@media (max-width: 600px) {

    .titulo-portal {
        font-size: 29px;
        letter-spacing: -0.5px;
    }

    .subtitulo-portal {
        font-size: 16px;
        margin-top: 6px;
    }
}


@media (min-width: 801px) and (max-height: 800px) {

    .cabecera-contenido {
        min-height: 78px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .logo-usb {
        max-height: 68px;
    }

    .escenario {
        min-height: calc(100vh - 88px);
        min-height: calc(100dvh - 88px);
    }

    .principal {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .titulo-portal {
        font-size: 36px;
        margin-bottom: 14px;
    }

    .paneles {
        gap: 9px;
    }

    .tarjeta {
        padding: 17px 22px;
    }

    .tarjeta .descripcion {
        margin-bottom: 13px;
    }

    .aviso {
        margin-top: 11px;
        padding: 9px 11px;
    }

    .soporte-integrado {
        margin-top: 11px;
        padding-top: 11px;
    }

    .tarjeta-banner-soporte {
        padding: 9px 18px;
    }

    .banner-soporte {
        max-width: 245px;
    }

    .pie {
        padding: 7px 16px;
        font-size: 10px;
    }
}

/* =====================================================
    TABLETAS Y PANTALLAS ESTRECHAS
===================================================== */

@media (max-width: 800px) {

    .principal {
        padding: 24px 20px 30px;
        justify-content: flex-start;
    }

    .contenido {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .paneles {
        max-width: 510px;
        width: 100%;

        margin: auto;
        grid-column: 1;
    }

    .titulo-portal {
        margin-bottom: 22px;
    }

    .escenario {
        min-height: calc(100vh - 104px);
        min-height: calc(100dvh - 104px);
    }
}

/* =====================================================
    CELULARES
===================================================== */

@media (max-width: 520px) {

    .cabecera-contenido {
        min-height: 80px;
        padding: 10px 15px;
    }

    .logo-usb {
        max-width: min(90vw, 320px);
        max-height: 65px;
    }

    .escenario {
        min-height: calc(100vh - 90px);
        min-height: calc(100dvh - 90px);
    }

    .principal {
        padding: 20px 15px 26px;
    }

    .titulo-portal {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .tarjeta {
        padding: 22px 19px;
    }

    .tarjeta h2 {
        font-size: 21px;
    }

    .tarjeta .descripcion {
        font-size: 13px;
    }

    .soporte-contacto {
        gap: 10px;
    }

    .soporte-contacto .icono-auriculares {
        width: 30px;
        height: 30px;
    }

    .tarjeta-banner-soporte {
        padding: 12px 18px;
    }

    .banner-soporte {
        max-width: 250px;
    }

    .pie {
        padding: 12px 15px;
        font-size: 10px;
    }
}

/* =====================================================
    ACCESIBILIDAD
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
