/* Ajusta según la altura real del header */
:root { --header-h: 90px; }

/* Header fijo */
#header-iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    border: 0;
    z-index: 1000;
    display: block;
}

/* Contenedor principal: dejar espacio para header */
.page-wrapper {
    min-height: 100vh;            /* ocupa toda la ventana */
    display: flex;
    flex-direction: column;
    /*padding-top: var(--header-h);*/ /* evita que el contenido quede bajo el header */
}

/* Zona de contenido que crece */
#app {
    flex: 1 0 auto;               /* ocupa el espacio disponible y crece con contenido */
    padding: 1rem;                /* opcional */
}

/* Footer normal, después del contenido */
#footer-iframe {
    width: 100%;
    height: 300px;                /* ajusta si necesitas otro tamaño */
    border: 0;
    flex-shrink: 0;
}

/* Si quieres que el footer quede visible siempre en pantalla cuando el contenido sea corto:
    añade .page-wrapper { justify-content: space-between; } */

/* Modales del flujo de asesoria dentro del layout institucional. */
.modal {
    z-index: 1055 !important;
}

.modal.show,
.modal.in {
    display: block !important;
    opacity: 1 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-backdrop.show,
.modal-backdrop.in {
    opacity: .5 !important;
}

.asesoria-modal .modal-dialog {
    width: auto;
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
}

.asesoria-modal .modal-content {
    overflow: hidden;
    background-color: #fff;
    border: 0;
    border-radius: .5rem;
}

.asesoria-modal .modal-header {
    padding: 1.25rem 1.5rem;
    /* color: #fff; */
    color: #611232 ;
    /* background-color: #3a3437; */
    background-color: #393c3e;
    border-bottom: 0;
}

.asesoria-modal .modal-title {
    margin: 0;
    line-height: 1.4;
}

.asesoria-modal .modal-body {
    padding: 1.5rem;
}

.asesoria-modal .modal-action {
    display: block;
    width: 100%;
    margin: .75rem 0 !important;
    padding: .75rem 1rem !important;
    color: #611232 !important;
    white-space: normal;
    background-color: #fff !important;
    border: 2px solid #3a3437 !important;
    border-radius: .375rem;
}

.asesoria-modal .modal-action:hover,
.asesoria-modal .modal-action:focus {
    color: #3a3437 !important;
    background-color: #fff !important;
}

@media (max-width: 767.98px) {
    .asesoria-modal .modal-dialog {
        margin: .75rem;
    }
}
