/***********************************************************/
/*                                                         */
/* Plataforma e-ducativa INFD - Argentina                  */
/*                                                         */
/* Copyright (c) 2026 de e-ducativa Educación Virtual S.A. */
/*                                                         */
/***********************************************************/
/*  Estilos especificos del skin redinfod en vista de usuario
    sobreescribe propiedades de otras hojas de estilos */

/* Variables: el footer de redinfod tiene 2 filas (logos + powered by) */
:root {
    --footer-height: 100px;
}

/* Links INFD */
.infd_links {
    width: 100%;
    margin-bottom: -26px;
    text-align: right;
    transition-duration: 1s;
    box-sizing: border-box;
}

.not-logged .infd_links {
    margin-top: -43px;
}

.infd_links a {
    display: inline-block;
    border-bottom: 2px solid transparent;
    padding: 10px 14px;
    font-size: .81rem;
    color: #2f2f2f;
    text-decoration: none;
}

.infd_links a:hover {
    border-bottom: 2px solid #757575;
    background-color: rgb(255, 255, 255);
}

.infd_links a.video-tutoriales {
    color: var(--variable-color-plataforma-contraste);
    background-color: var(--variable-color-plataforma);
}

.infd_links a.video-tutoriales:hover {
    color: var(--variable-color-plataforma-contraste);
    background-color: var(--variable-color-plataforma-gamma2);
}

@media only screen and (max-width : 480px) {
    .infd_links {
        text-align: center;
    }
}

@media only screen and (max-width : 435px) {
    .infd_links a {
        padding: 10px 5px;
    }
}

/* Nuevo style login 2020 (reescribe acceso.css) */
#wrapper {
    min-height: calc(100% - var(--footer-height));
}

.con_imagen>#wrapper {
    min-height: calc(100% - var(--footer-height));
}

#wrapper.login_style_2 .infd_links {
    margin-top: 0px;
    position: absolute;
    right: 0;
    z-index: 1;
}

#acceso_frame.login_style_2 {
    min-height: calc(100vh - 300px);
    max-width: 360px;
}

#acceso_frame.login_style_2>#titulo_portada_login {
    padding: 26px 20px 8px;
}

#acceso_frame.login_style_2>#menu_login {
    margin-top: 28px;
}

body.not-logged #wrapper {
    margin-top: 0;
}

/* Footer */
#footer a {
    opacity: 1;
    margin: 0;
    padding: 0;
}

#footer a:hover {
    padding: 0;
}

/* ========================================
   Footer especifico para redinfod
   Estructura de dos filas dentro de powered_by
   ======================================== */

footer.footer { box-shadow: 0 -2px 6px rgba(0, 0, 0, .1); }

/* Asegurar que footer_wrapper sea block para layout correcto */
.footer_wrapper {
    display: block;
}

/* Resetear estilos de base.css (axis) y aplicar estructura de columna */
#footer .powered_by {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    background-color: transparent;
    box-sizing: border-box;
}

/* Primera fila: logos institucionales con fondo blanco */
#footer .powered_by .infd_logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
    width: 100%;
    padding: 10px 20px;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* display block saca el espacio del baseline: la fila mide exacto el logo mas alto */
#footer .powered_by .infd_logos img {
    display: block;
}

/* Alturas explicitas: conservan entre si la proporcion original de cada logo */
#footer .powered_by .infd_logos .logo_ministerio { height: 49px; }

#footer .powered_by .infd_logos .logo_infd { height: 24px; }

/* Segunda fila: footer text + powered by con fondo oscuro */
#footer .powered_by .powered {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 8px 20px;
    background-color: #232323;
    box-sizing: border-box;
}

#footer .powered_by .footer_text {
    flex: 0 1 auto;
    font-weight: 300;
    font-size: .8125rem;
    text-align: center;
    color: #ffffff;
}

/* Separador entre los dos textos: al vivir dentro de footer_text, desaparece
   solo cuando la plataforma no tiene nombre configurado. El texto alternativo
   vacio lo deja fuera del arbol de accesibilidad: es decorativo */
#footer .powered_by .footer_text::before {
    margin-right: 14px;
    color: #d7d7d7;
    content: "\00b7" / "";
}

#footer .powered_by .powered_text {
    font-size: .8125rem;
    color: #d7d7d7;
    white-space: nowrap;
}

#footer .powered_by .powered_text a {
    color: #d7d7d7;
    text-decoration: none;
}

#footer .powered_by .powered_text a:hover {
    color: #ffffff;
}

/* Responsive: los logos siguen en fila pero escalados, porque apilarlos agrandaba
   el pie mas que en desktop; los textos si se apilan */
@media only screen and (max-width: 768px) {
    #footer .powered_by .infd_logos {
        gap: 20px;
    }

    #footer .powered_by .infd_logos .logo_ministerio { height: 38px; }

    #footer .powered_by .infd_logos .logo_infd { height: 18px; }

    #footer .powered_by .powered {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    #footer .powered_by .powered_text {
        white-space: normal;
    }

    #footer .powered_by .footer_text::before { display: none; }
}

/* Indice de programa */
.prg_indice .dot.visible::before {
    visibility: hidden;
}

/* Indice resumido de programa */
@media only screen and (min-width : 961px) {
    .indice_resumido .infd_links {
        width: 80%;
    }
}

/* responsive.css */
@media only screen and (max-width : 1200px) {
    #section {
        border-bottom: none;
    }

    #footer {
        border-top: 1px solid #e2e2e2;
    }
}

/* Landing page de validacion de certificados
No se muestra nombre de aula para INFD */
.cert_validate .info_box .course {
    display: none;
}
