:root{
    --forma-primary: #143d7a;
    --forma-primary-dark: #0a0c32;
    --forma-secondary: #5b63f0;
    --forma-accent: #00d300;
    --forma-light: #d9d9de;
    --forma-white: #ffffff;
    --forma-text: #1f2937;
    --forma-muted: #6b7280;
    --forma-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    --forma-radius-pill: 50rem;
    --forma-radius-lg: 1.25rem;
}

body{
    font-family: 'Montserrat', sans-serif;
    color: var(--forma-text);
    background-color: #f5f7fb;
}

/*  FOOTER FORMA*/
.forma-footer{
    background: linear-gradient(135deg, #0b1f4d 0%, #102b63 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 28px 0;
    font-family: 'Montserrat', sans-serif;
    margin-top: auto;
}

.forma-footer__content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.forma-footer__copy{
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: .4px;
}

.forma-footer__text{
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255,255,255,0.72);
    letter-spacing: .2px;
}

@media (max-width: 576px){
    .forma-footer{
        padding: 22px 0;
    }

    .forma-footer__copy{
        font-size: 0.98rem;
    }

    .forma-footer__text{
        font-size: 0.88rem;
        padding: 0 12px;
    }
}


/* HEADER DE MODULOS FORMA */
.forma-module-header{
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -40px 60px rgba(0, 0, 0, 0.10);
}

.forma-module-header h1{
    letter-spacing: .5px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.20);
}

.forma-module-header p{
    color: rgba(255, 255, 255, 0.88) !important;
}

.forma-module-header .btn{
    backdrop-filter: blur(3px);
    transition: all .25s ease;
    border-width: 1.5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.forma-module-header .btn:hover{
    transform: translateY(-1px);
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
}

.forma-module-header .btn:focus{
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.18);
}

.forma-module-back-btn{
    min-width: 160px;
}

@media (max-width: 767.98px){
    .forma-module-header{
        min-height: 240px;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .forma-module-header h1{
        font-size: clamp(1.6rem, 8vw, 2.3rem) !important;
    }

    .forma-module-header p{
        font-size: 1rem !important;
    }

    .forma-module-header .btn{
        width: 100%;
        max-width: 320px;
    }

    .forma-module-back-btn{
        min-width: unset;
    }
}


/* MODALES FORMA */
.forma-modal{
    border-radius: 1.25rem;
    overflow: hidden;
    background: #ffffff;
}

.forma-modal-header{
    background: linear-gradient(135deg, #0a0c32 0%, #143d7a 100%);
    border-bottom: 4px solid #00d300;
    color: #ffffff;
    padding: 1rem 1.25rem;
}

.forma-modal-title{
    color: #143d7a;
    font-weight: 700;
    font-size: 1.5rem;
}

.forma-modal-text{
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
}

.forma-modal-icon-wrap{
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 61, 122, 0.10), rgba(0, 211, 0, 0.12));
}

.forma-modal-icon{
    font-size: 3.2rem;
    color: #143d7a;
}

@media (max-width: 767.98px){
    .forma-modal-title{
        font-size: 1.25rem;
        text-align: center;
    }

    .forma-modal-text{
        text-align: center;
    }

    .forma-modal-header{
        padding: .9rem 1rem;
    }
}

/* AJUSTES VISUALES MODAL Y TOAST*/

/* Título del encabezado del modal */
.forma-modal-header .modal-title{
    color: #ffffff !important;
    margin-bottom: 0;
    letter-spacing: .3px;
}

/* Botón cerrar del modal */
.forma-modal-header .btn-close{
    opacity: .9;
}

.forma-modal-header .btn-close:hover{
    opacity: 1;
}

/* Toast: encabezado y texto */
.jq-toast-wrap .jq-toast-single h2{
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: .35rem;
}

.jq-toast-wrap .jq-toast-single{
    font-family: 'Montserrat', sans-serif;
}

.jq-toast-wrap .jq-toast-single,
.jq-toast-wrap .jq-toast-single p,
.jq-toast-wrap .jq-toast-single span{
    color: inherit !important;
}


/*  HOME / WELCOME FORMA*/
.forma-welcome-card{
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.forma-welcome-title{
    color: #143d7a;
    font-weight: 800;
    letter-spacing: .3px;
}

.forma-welcome-subtitle{
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto;
}

.forma-welcome-panel{
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
    border: 1px solid rgba(20, 61, 122, 0.08);
    border-radius: 1.25rem;
}

.forma-welcome-panel-title{
    color: #143d7a;
    font-weight: 700;
}

.forma-welcome-panel-text{
    color: #6b7280;
    line-height: 1.8;
}

.forma-welcome-logo{
    max-width: 220px;
    filter: drop-shadow(0 10px 25px rgba(20, 61, 122, 0.12));
}

@media (max-width: 767.98px){
    .forma-welcome-card{
        border-radius: 1.15rem;
    }

    .forma-welcome-title{
        font-size: 1.7rem;
    }

    .forma-welcome-subtitle{
        font-size: .98rem;
    }

    .forma-welcome-panel{
        padding: 1.25rem !important;
    }

    .forma-welcome-logo{
        max-width: 170px;
    }
}

/*  AJUSTE DE LAYOUT HOME */
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container.py-5{
    flex: 1;
}

.forma-welcome-card{
    padding: 1rem 0;
}

.forma-welcome-card .card-body{
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.forma-welcome-title{
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.forma-welcome-subtitle{
    margin-bottom: 1rem;
}

.forma-welcome-logo{
    max-width: 300px;
}

.forma-welcome-panel{
    padding: 2rem !important;
    box-shadow: 0 10px 24px rgba(20, 61, 122, 0.06);
}

@media (max-width: 991.98px){
    .forma-welcome-logo{
        max-width: 220px;
    }

    .forma-welcome-panel{
        text-align: center;
    }

    .forma-welcome-panel .d-flex{
        justify-content: center;
    }
}

@media (max-width: 767.98px){
    .forma-welcome-card .card-body{
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .forma-welcome-title{
        font-size: 1.8rem;
    }

    .forma-welcome-logo{
        max-width: 180px;
    }

    .forma-welcome-panel{
        padding: 1.25rem !important;
    }
}

/* =========================
   TOASTS FORMA
========================= */
.forma-toast-container{
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1085;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(380px, calc(100vw - 32px));
}

.forma-toast-overlay-container{
    position: fixed;
    inset: 0;
    z-index: 1090;
    pointer-events: none;
}

.forma-toast-overlay{
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 50, 0.35);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: auto;
    animation: formaToastFadeIn .28s ease;
}

.forma-toast{
    position: relative;
    font-family: 'Montserrat', sans-serif;
    animation: formaToastSlideIn .10s ease;
}

.forma-toast.is-hiding{
    animation: formaToastFadeOut .28s ease forwards;
}

.forma-toast--small{
    width: 100%;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(20, 61, 122, 0.08);
}

.forma-toast__accent{
    height: 6px;
    width: 100%;
}

.forma-toast__body{
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px 18px 18px;
}

.forma-toast__icon{
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.forma-toast__content{
    flex: 1;
    min-width: 0;
}

.forma-toast__title{
    margin: 0 0 6px 0;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
}

.forma-toast__message{
    margin: 0;
    font-size: .93rem;
    line-height: 1.6;
    color: #5f6b7a;
}

.forma-toast__close{
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: #7b8794;
    font-size: .8rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
    transition: all .2s ease;
}

.forma-toast__close:hover{
    color: #143d7a;
    transform: scale(1.08);
}

/* Variantes small */
.forma-toast--success .forma-toast__accent{
    background: linear-gradient(90deg, #0fbf72 0%, #32d583 100%);
}

.forma-toast--success .forma-toast__icon{
    background: rgba(15, 191, 114, 0.12);
    color: #0fbf72;
}

.forma-toast--success .forma-toast__title{
    color: #0a7a4d;
}

.forma-toast--error .forma-toast__accent{
    background: linear-gradient(90deg, #ff5a5f 0%, #ff3b30 100%);
}

.forma-toast--error .forma-toast__icon{
    background: rgba(255, 90, 95, 0.12);
    color: #ff4d4f;
}

.forma-toast--error .forma-toast__title{
    color: #cc2f2f;
}

.forma-toast--warning .forma-toast__accent{
    background: linear-gradient(90deg, #f4b400 0%, #ffd54f 100%);
}

.forma-toast--warning .forma-toast__icon{
    background: rgba(244, 180, 0, 0.14);
    color: #d89c00;
}

.forma-toast--warning .forma-toast__title{
    color: #9a6b00;
}

.forma-toast--info .forma-toast__accent{
    background: linear-gradient(90deg, #143d7a 0%, #2457a8 100%);
}

.forma-toast--info .forma-toast__icon{
    background: rgba(20, 61, 122, 0.10);
    color: #143d7a;
}

.forma-toast--info .forma-toast__title{
    color: #143d7a;
}

/* Toast grande */
.forma-toast--large{
    width: min(560px, 100%);
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.28);
}

.forma-toast__large-top{
    height: 110px;
    position: relative;
}

.forma-toast__large-body{
    position: relative;
    padding: 0 38px 34px 38px;
    margin-top: -54px;
    text-align: center;
}

.forma-toast__large-icon-wrap{
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.forma-toast__large-icon{
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.forma-toast__large-title{
    margin: 0 0 10px 0;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
}

.forma-toast__large-message{
    margin: 0 auto;
    max-width: 420px;
    font-size: 1rem;
    line-height: 1.8;
    color: #667085;
}

.forma-toast__large-actions{
    margin-top: 24px;
}

.forma-toast__action-btn{
    min-width: 180px;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.forma-toast__action-btn:hover{
    transform: translateY(-1px);
}

.forma-toast__close--large{
    top: 18px;
    right: 18px;
    color: rgba(255,255,255,.88);
    font-size: .95rem;
}

.forma-toast__close--large:hover{
    color: #ffffff;
}

/* Variantes large */
.forma-toast--large.forma-toast--success .forma-toast__large-top{
    background: linear-gradient(135deg, #16c47f 0%, #7bdc4c 100%);
}

.forma-toast--large.forma-toast--success .forma-toast__large-icon{
    color: #16c47f;
}

.forma-toast--large.forma-toast--success .forma-toast__large-title{
    color: #0f8d5b;
}

.forma-toast--large.forma-toast--success .forma-toast__action-btn{
    background: linear-gradient(135deg, #16c47f 0%, #32d583 100%);
}

.forma-toast--large.forma-toast--error .forma-toast__large-top{
    background: linear-gradient(135deg, #ff5a5f 0%, #ff3b30 100%);
}

.forma-toast--large.forma-toast--error .forma-toast__large-icon{
    color: #ff4d4f;
}

.forma-toast--large.forma-toast--error .forma-toast__large-title{
    color: #d92d20;
}

.forma-toast--large.forma-toast--error .forma-toast__action-btn{
    background: linear-gradient(135deg, #ff5a5f 0%, #ff3b30 100%);
}

.forma-toast--large.forma-toast--warning .forma-toast__large-top{
    background: linear-gradient(135deg, #f4b400 0%, #ffd54f 100%);
}

.forma-toast--large.forma-toast--warning .forma-toast__large-icon{
    color: #d89c00;
}

.forma-toast--large.forma-toast--warning .forma-toast__large-title{
    color: #9a6b00;
}

.forma-toast--large.forma-toast--warning .forma-toast__action-btn{
    background: linear-gradient(135deg, #f4b400 0%, #ffd54f 100%);
    color: #1f2937;
}

.forma-toast--large.forma-toast--info .forma-toast__large-top{
    background: linear-gradient(135deg, #143d7a 0%, #2457a8 100%);
}

.forma-toast--large.forma-toast--info .forma-toast__large-icon{
    color: #143d7a;
}

.forma-toast--large.forma-toast--info .forma-toast__large-title{
    color: #143d7a;
}

.forma-toast--large.forma-toast--info .forma-toast__action-btn{
    background: linear-gradient(135deg, #143d7a 0%, #2457a8 100%);
}

@keyframes formaToastSlideIn{
    from{
        opacity: 0;
        transform: translateY(-12px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes formaToastFadeIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@keyframes formaToastFadeOut{
    from{
        opacity: 1;
        transform: scale(1);
    }
    to{
        opacity: 0;
        transform: scale(.98);
    }
}

@media (max-width: 576px){
    .forma-toast-container{
        top: 14px;
        right: 14px;
        left: 14px;
        width: auto;
    }

    .forma-toast--large{
        border-radius: 22px;
    }

    .forma-toast__large-top{
        height: 95px;
    }

    .forma-toast__large-body{
        padding: 0 22px 24px 22px;
        margin-top: -46px;
    }

    .forma-toast__large-icon{
        width: 92px;
        height: 92px;
        font-size: 2.5rem;
    }

    .forma-toast__large-title{
        font-size: 1.35rem;
    }

    .forma-toast__large-message{
        font-size: .95rem;
    }

    .forma-toast__action-btn{
        width: 100%;
    }
}

.forma-modal-logo{
    max-width: 190px;
    width: 100%;
    height: auto;
    display: block;
}