/* =========================================================
   PORTAL PARA PADRES UAT
   Diseño homologado con Prácticas Profesionales
   ========================================================= */


/* =========================================================
   FUENTE INSTITUCIONAL
   ========================================================= */

@font-face {
    font-family: 'Visby';
    src: url('../fonts/VisbyCF-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


/* =========================================================
   CONFIGURACIÓN GENERAL
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body,
form {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Visby', 'Segoe UI', Tahoma, sans-serif;
}


/* =========================================================
   CONTENEDOR PRINCIPAL / FONDO
   ========================================================= */

.login-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('../Imagenes/PortalPadresFondo1920x945.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
}


    /* Oscurecimiento ligero de la fotografía */

    .login-wrapper::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient( 90deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .02) 58%, rgba(0, 0, 0, .06) 100% );
        pointer-events: none;
    }


/* =========================================================
   BANNER SUPERIOR IZQUIERDO
   ========================================================= */

.header-banner {
    position: absolute;
    top: 30px;
    left: 0;
    z-index: 40;
    min-width: 610px;
    padding: 20px 50px;
    color: #fff;
    background: rgba(0, 30, 50, .88);
    border-radius: 0 35px 35px 0;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, .40);
}

    .header-banner h1 {
        margin: 0 0 5px;
        font-size: 2.8rem;
        font-weight: 900;
        line-height: 1;
    }

        .header-banner h1 span {
            color: #E25622;
        }

    .header-banner p {
        margin: 0;
        font-size: 1rem;
        font-weight: 300;
        letter-spacing: 1.5px;
    }


/* =========================================================
   BANDA NARANJA DERECHA
   ========================================================= */

.login-panel {
    position: absolute;
    top: 0;
    right: 50px;
    z-index: 30;
    width: 35%;
    min-width: 430px;
    max-width: 500px;
    height: 100vh;
    padding: 0 34px 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    /*
       Transparencia únicamente sobre el fondo.
       No usar opacity porque afectaría texto y controles.
    */
    background: rgba(190, 75, 30, .86);
    /*
       Sin scrollbar interno.
    */
    overflow: hidden;
    box-shadow: 0 0 22px rgba(0, 0, 0, .08);
}


/* =========================================================
   ESCUDO UAT
   ========================================================= */

.logo-box {
    flex: 0 0 auto;
    width: 205px;
    margin: 0 auto 16px;
    padding: 15px 22px;
    text-align: center;
    background: #fff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}

    .logo-box img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 135px;
        margin: auto;
        object-fit: contain;
    }


/* =========================================================
   TÍTULO INICIAR SESIÓN
   ========================================================= */

.login-panel h2 {
    flex: 0 0 auto;
    margin: 0 0 14px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.1;
}


/* =========================================================
   TABS
   ========================================================= */

.login-panel .login-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    flex: 0 0 58px !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .35) !important;
    border-radius: 9px !important;
    overflow: hidden !important;
}


    /* =========================================================
   BOTONES DE LOS TABS
   ========================================================= */

    .login-panel .login-tabs .login-tab {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2px;
        width: 100% !important;
        height: 58px !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 4px 3px !important;
        border: 0 !important;
        border-right: 1px solid rgba(255, 255, 255, .28) !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, .04);
        color: #fff;
        font-family: inherit;
        line-height: normal !important;
        cursor: pointer;
        overflow: visible !important;
        transition: background .20s ease, color .20s ease;
    }

        .login-panel .login-tabs .login-tab:last-child {
            border-right: 0 !important;
        }

        .login-panel .login-tabs .login-tab:hover {
            background: rgba(255, 255, 255, .12);
        }

        .login-panel .login-tabs .login-tab.active {
            background: #fff !important;
            color: #17364a !important;
        }


    /* =========================================================
   ICONOS DE LOS TABS
   ========================================================= */

    .login-panel .login-tabs .tab-icon {
        display: block !important;
        flex: 0 0 auto;
        height: 16px !important;
        margin: 0 0 2px !important;
        padding: 0 !important;
        color: inherit;
        font-size: 15px !important;
        line-height: 16px !important;
    }


    /* Si posteriormente utilizas SVG/PNG */

    .login-panel .login-tabs .tab-icon-img {
        display: block !important;
        flex: 0 0 auto;
        width: 16px !important;
        height: 16px !important;
        margin: 0 0 2px !important;
        padding: 0 !important;
        object-fit: contain;
    }


    /* =========================================================
   TEXTO DE LOS TABS
   ========================================================= */

    .login-panel .login-tabs .tab-text {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        color: inherit;
        font-size: 14px !important;
        font-weight: 500;
        line-height: 12px !important;
        text-align: center;
        white-space: normal !important;
        overflow: visible !important;
    }


/* =========================================================
   CONTENEDOR DE FORMULARIOS
   ========================================================= */

.login-forms {
    width: 100%;
}


/* Cada formulario */

.login-form {
    display: none;
    width: 100%;
}

    .login-form.active {
        display: block;
    }


/* =========================================================
   DESCRIPCIÓN GENERAL
   ========================================================= */

.login-description {
    display: block;
    width: 100%;
    margin: 0 0 13px;
    padding: 0 0 11px;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}

    .login-description h3 {
        display: block;
        margin: 0 0 4px;
        padding: 0;
        color: #fff;
        font-size: .90rem;
        font-weight: 700;
        line-height: 1.15;
        text-align: left;
        text-transform: uppercase;
    }

    .login-description p {
        display: block;
        margin: 0;
        padding: 0;
        color: rgba(255, 255, 255, .97);
        font-size: .76rem;
        font-weight: 400;
        line-height: 1.24;
        text-align: left;
    }


/* =========================================================
   PADRES UAT
   Lista compacta en dos columnas
   ========================================================= */

.login-description-list {
    margin-bottom: 13px;
    padding-bottom: 11px;
}

    .login-description-list p {
        margin-bottom: 6px;
        font-size: .794rem;
        line-height: 1.20;
    }

    .login-description-list ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 14px;
        row-gap: 1px;
        margin: 5px 0 0;
        padding-left: 16px;
        color: rgba(255, 255, 255, .97);
        font-size: .85rem;
        line-height: 1.12;
    }

    .login-description-list li {
        margin: 0 0 1px;
        padding-right: 2px;
    }


/* =========================================================
   AVISO USUARIOS UAT
   ========================================================= */

.login-important {
    margin-top: 8px !important;
    padding: 7px 9px !important;
    background: rgba(0, 30, 50, .17);
    border-left: 3px solid rgba(255, 255, 255, .75);
    border-radius: 3px;
}

    .login-important strong {
        font-weight: 700;
    }


/* =========================================================
   GRUPOS DE CAMPOS
   ========================================================= */

.form-group {
    display: block;
    clear: both;
    width: 100%;
    margin: 0 0 11px;
}

    .form-group label {
        display: block;
        margin: 0 0 5px;
        color: #fff;
        font-size: .84rem;
        font-weight: 500;
        line-height: 1.15;
    }


/* =========================================================
   INPUTS
   ========================================================= */

.input-control {
    display: block;
    width: 100% !important;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #555;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .07);
}

    .input-control:focus {
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, .07), 0 0 0 3px rgba(255, 255, 255, .22);
    }

input[type="password"].input-control {
    letter-spacing: 3px;
}


/* =========================================================
   TEXTO AUXILIAR
   ========================================================= */

.field-note,
.form-group small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .92);
    font-size: .68rem;
    line-height: 1.15;
}


/* =========================================================
   RECAPTCHA
   ========================================================= */

.recaptcha-wrap {
    width: 100%;
    margin: 0 0 9px;
    overflow: hidden;
}


/* =========================================================
   CHECKBOX PRIVACIDAD
   ========================================================= */

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 0 0 13px;
    color: #fff;
    font-size: .76rem;
}

    .checkbox-group input[type="checkbox"] {
        flex: 0 0 auto;
        width: 16px;
        height: 16px;
        margin: 0;
        cursor: pointer;
        accent-color: #ba5122;
    }

    .checkbox-group label {
        margin: 0;
        line-height: 1.15;
        cursor: pointer;
    }


/* =========================================================
   BOTÓN INGRESAR
   ========================================================= */

.btn-wrap,
.btn-submit-wrap {
    position: relative;
    width: 170px;
    height: 45px;
    margin: 0 auto;
}


    /* Parte visual */

    .btn-wrap > span,
    .btn-submit-visual {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 9px;
        background: #fff;
        color: #4CAF50;
        border-radius: 25px;
        font-size: 1rem;
        font-weight: 700;
        box-shadow: 0 5px 15px rgba(0, 0, 0, .18);
        pointer-events: none;
        transition: transform .20s ease, background .20s ease;
    }


/* ImageButton ASP.NET real */

.btn-overlay,
.btn-submit-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 170px !important;
    height: 45px !important;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.btn-wrap:hover > span,
.btn-submit-wrap:hover .btn-submit-visual {
    transform: scale(1.035);
    background: #f9f9f9;
}


/* =========================================================
   ACCESOS RÁPIDOS
   Calendario / Preguntas Frecuentes / Tutorial
   ========================================================= */


.quick-links {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 25px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.25);
}


/* Contenedor individual */

.quick-link-wrap {
    position: relative;
    width: 95px;
    height: 62px;
    flex: 0 0 95px;
    cursor: pointer;
}


/* Parte que ve el usuario */

.quick-link-visual {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    text-align: center;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
}


/* Icono */

.quick-icon {
    display: block;
    margin-bottom: 7px;
    color: #fff !important;
    font-size: 32px;
    line-height: 1;
}


/* Texto */

.quick-text {
    display: block;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.05;
    text-align: center;
}


/* ImageButton ASP.NET transparente */

.quick-link-button {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    opacity: 0;
    cursor: pointer;
}


/* Hover */

.quick-link-wrap:hover .quick-link-visual {
    transform: translateY(-3px);
    opacity: .80;
}


/* Click */

.quick-link-wrap:active .quick-link-visual {
    transform: translateY(-1px) scale(.97);
}

/* Focus */

.quick-link:focus,
.quick-link:active,
.quick-link:visited {
    color: #fff !important;
    text-decoration: none !important;
}


/* =========================================================
   SUPER USUARIO
   ========================================================= */

.superusuario {
    width: 100%;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .25);
}


/* =========================================================
   OLAS
   Ocupan todo el ancho de la pantalla
   ========================================================= */

.footer-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    width: 100vw;
    background: transparent;
    pointer-events: none;
}

.waves-container {
    position: relative;
    width: 100vw;
    height: 10vh;
    min-height: 80px;
    max-height: 120px;
    margin-bottom: -7px;
}

.waves {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100%;
}


/* =========================================================
   ANIMACIÓN DE LAS OLAS
   ========================================================= */

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

    .parallax > use:nth-child(1) {
        animation-delay: -2s;
        animation-duration: 7s;
    }

    .parallax > use:nth-child(2) {
        animation-delay: -3s;
        animation-duration: 10s;
    }

    .parallax > use:nth-child(3) {
        animation-delay: -4s;
        animation-duration: 13s;
    }

    .parallax > use:nth-child(4) {
        animation-delay: -5s;
        animation-duration: 20s;
    }

@keyframes move-forever {

    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}


/* =========================================================
   FOOTER BLANCO
   ========================================================= */

.footer-content {
    width: 100vw;
    min-height: 105px;
    display: flex;
    align-items: center;
    padding: 12px calc(35% + 70px) 12px 20px;
    background: rgba(255, 255, 255, .98);
}

.footer-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    flex-wrap: nowrap;
}

    .footer-section img {
        display: block;
        width: auto;
        height: clamp(32px, 4vw, 50px);
        object-fit: contain;
    }

        .footer-section img:first-child {
            height: clamp(50px, 6vw, 78px);
        }


/* =========================================================
   PANTALLAS MEDIANAS
   ========================================================= */

@media screen and (max-width: 1200px) {

    .login-panel {
        right: 0;
        width: 40%;
        min-width: 400px;
        padding-left: 28px;
        padding-right: 28px;
    }

    .footer-content {
        padding-right: calc(40% + 25px);
    }

    .header-banner {
        min-width: 520px;
    }

        .header-banner h1 {
            font-size: 2.25rem;
        }

    .login-description-list ul {
        column-gap: 10px;
        font-size: .63rem;
    }
}


/* =========================================================
   TABLET
   En pantallas pequeñas dejamos crecer el contenido.
   No usamos scrollbar dentro de la banda.
   ========================================================= */

@media screen and (max-width: 900px) {

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .login-wrapper {
        min-height: 100vh;
        height: auto;
        padding: 25px 0 210px;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: visible;
    }

    .header-banner {
        position: relative;
        top: auto;
        left: auto;
        width: 92%;
        min-width: 0;
        padding: 17px 25px;
        border-radius: 20px;
        text-align: center;
    }

        .header-banner h1 {
            font-size: 1.9rem;
        }

        .header-banner p {
            font-size: .80rem;
        }

    .login-panel {
        position: relative;
        top: auto;
        right: auto;
        width: 92%;
        min-width: 0;
        max-width: 520px;
        height: auto;
        min-height: 0;
        margin-top: 28px;
        padding: 0 30px 40px;
        border-radius: 25px;
        background: rgba(190, 75, 30, .90);
        overflow: visible;
    }

    .logo-box {
        width: 190px;
        padding: 15px 20px;
        margin-bottom: 16px;
    }

    .login-description-list ul {
        grid-template-columns: 1fr;
        row-gap: 2px;
        font-size: .72rem;
        line-height: 1.2;
    }

    .quick-links {
        margin-top: 20px;
    }

    .footer-wave {
        position: absolute;
    }

    .footer-content {
        padding: 15px 20px;
        justify-content: center;
    }

    .footer-section {
        gap: 3vw;
    }

        .footer-section img {
            max-width: 25%;
            max-height: 28px;
        }

            .footer-section img:first-child {
                max-width: 50%;
                max-height: 48px;
            }
}


/* =========================================================
   TELÉFONOS
   ========================================================= */

@media screen and (max-width: 520px) {

    .login-panel {
        width: 94%;
        padding-left: 18px;
        padding-right: 18px;
    }


        /* Tabs */

        .login-panel .login-tabs {
            height: 60px !important;
            min-height: 60px !important;
            flex: 0 0 60px !important;
        }

            .login-panel .login-tabs .login-tab {
                height: 60px !important;
                min-height: 60px !important;
                padding: 4px 2px !important;
            }

            .login-panel .login-tabs .tab-text {
                font-size: 10px !important;
                line-height: 11px !important;
            }


    /* Descripción */

    .login-description h3 {
        font-size: .84rem;
    }

    .login-description p {
        font-size: .73rem;
    }


    /* Campos */

    .input-control {
        height: 42px;
    }


    /* Accesos rápidos */

    .quick-links {
        gap: 20px;
        margin-top: 15px;
        padding-top: 12px;
    }

    .quick-link {
        width: 72px;
    }

    .quick-icon {
        font-size: 23px;
        margin-bottom: 4px;
    }

    .quick-text {
        font-size: 9.5px;
    }


    /* reCAPTCHA */

    .recaptcha-wrap {
        transform: scale(.88);
        transform-origin: left top;
        width: 114%;
        margin-bottom: -5px;
    }
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .parallax > use {
        animation: none;
    }
}
