/* =========================================
   1. VARIABLES & GLOBALES
   ========================================= */
:root {
    --bg-color-base: #0166f2;
    --bg-color-blue-alt: #121B60;
    --ff-base: 'Mosvita', sans-serif;
}

.bg-primary {
    background-color: var(--bg-color-base);
}

.bg-alt {
    background-color: var(--bg-color-blue-alt);
}

/* Espaciados Generales */
.header-box {
    width: fit-content;
}

.container-padding {
    padding: 36px;
}

@media(min-width: 1024px) {
    .container-padding {
        padding: 96px 48px;
    }
}

@media(min-width: 1224px) {
    .container-padding {
        padding: 96px 64px;
    }
}

/* =========================================
   2. TIPOGRAFÍA
   ========================================= */
.section-title {
    font-family: var(--ff-base);
    font-size: 28px;
    line-height: 127%;
}

.section-subtitle {
    font-family: var(--ff-base);
    font-size: 21px;
    line-height: 127%;
}

.section-text {
    padding: 16px 0;
    font-family: var(--ff-base);
    font-size: 16px;
    font-weight: 600;
}

.section-text-footer {
    font-family: var(--ff-base);
    font-size: 21px;
    /* Corregido de font-size-adjust */
    font-weight: 600;
    text-align: center;
    color: white;
}

/* Tipografía Responsive */
@media(min-width: 1024px) {
    .section-title {
        font-size: 36px;
    }

    .section-text {
        font-size: 21px;
    }
}

@media(min-width: 1224px) {
    .section-title {
        font-size: 48px;
    }

    .section-text {
        font-size: 21px;
    }
}

/* =========================================
   3. ELEMENTOS UI (Divisores, Logos)
   ========================================= */
.divider {
    border: 0;
    height: 1px;
    margin: 24px 0;
    background-color: white;
}

.divider-alt {
    border: 0;
    height: 1px;
    margin: 24px 0;
    background-color: var(--bg-color-base);
}

.brand-short {
    width: 100%;
}

.brand-short img {
    margin: auto;
    width: 100px;
}

/* =========================================
   4. NAVBAR (INTACTO)
   ========================================= */
.nav-bar-container {
    width: 100%;
    height: 84px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    background-color: var(--bg-color-base);
}

.nav-bar {
    padding: 24px 36px;
    max-width: 1440px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-bar-brand .logo-full {
    display: none;
}

.nav-bar-brand .logo-short {
    width: 20px;
}

.nav-bar-links {
    display: none;
}

/* Menú Mobile */
.nav-bar-menu {
    position: fixed;
    top: 80px;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 48px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 99;
    text-align: end;
    font-family: var(--ff-base);
    font-size: 21px;
    font-weight: 700;
    line-height: 124%;
    box-shadow: 0px 6px 8px 0px rgba(0, 0, 0, 0.2);
    background-color: var(--bg-color-base);
    color: white;
    transition: all 0.2s ease, opacity 0.5s ease;
}

.nav-bar-menu li .active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Estados JS */
.nav-closed {
    height: 100%;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.nav-open {
    height: 100%;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.burger-btn {
    position: relative;
    z-index: 99;
}

/* Scroll Effect */
.scrolled {
    background-color: #0165f2d4;
    backdrop-filter: blur(14px);
    transition: all ease-in .3s;
}

/* Navbar Desktop - Lógica Original */
@media(min-width: 1024px) {
    .nav-bar-container {
        height: 64px;
        max-height: 84px;
        box-shadow: 0px 6px 8px 0px rgba(0, 0, 0, 0.2);
    }

    .nav-bar{
        padding: 24px 56px;
    }

    .nav-bar-brand .logo-full {
        display: inline;
    }

    .nav-bar-brand .logo-short {
        display: none;
    }

    .burger-btn {
        display: none;
    }

    .nav-bar-menu {
        display: none;
    }

    .nav-bar-links {
        display: flex;
        justify-content: space-around;
        gap: 3rem;
        padding-bottom: 5px;
        height: 45px;
        text-align: center;
        font-family: var(--ff-base);
        font-size: 16px;
        font-weight: 500;
        line-height: 124%;
        list-style-type: none;
        color: white;
    }

    .nav-bar-link {
        padding: 0 15px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: .5rem;
        transition: all ease-in-out .3s;
    }

    .nav-rectangle {
        position: absolute;
        top: 38px;
        width: 100%;
        height: 3px;
        background-color: white;
        transition: all ease-in-out .3s;
    }

    .nav-bar-link:hover a,
    .nav-bar-link.active a {
        position: relative;
        z-index: 10;
        color: var(--bg-color-blue-alt);
        transition: all ease-in-out .5s;
    }

    .nav-bar-link:hover .nav-rectangle,
    .nav-bar-link.active .nav-rectangle {
        height: 100%;
        top: 0;
        z-index: 9;
        border-radius: 3px;
        transition: all ease-in-out .3s;
    }
}

/* =========================================
   5. SECCIÓN HERO
   ========================================= */
.hero {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-color-base);
    height: 100dvh;
}

.hero-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.hero-header .hero-title {
    width: 276px;
    font-family: var(--ff-base);
    font-size: 18px;
    font-weight: 500;
    color: white;
    line-height: 127%;
    text-align: center;
}

.hero .proactiva-logo {
    width: 275px;
}

.hero .hero-img {
    flex-shrink: 1;
    min-height: 40%;
    display: flex;
    align-items: flex-end;
}

.hero .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón CTA */
.btn-cta {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid white;
    padding: 6px 10px;
    border-radius: 16px;
    background-color: var(--bg-color-base);
    transition: all 0.3s ease;
}

.btn-cta img {
    height: 12px;
}

.btn-cta p {
    z-index: 2;
    margin: 0;
    padding-top: 2px;
    align-self: center;
    width: max-content;
    font-family: var(--ff-base);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: start;
    line-height: 1;
    color: white;
}

/* .btn-cta:hover {
    border: 1px solid var(--bg-color-blue-alt);
    background-color: var(--bg-color-blue-alt);
    transition: all 0.3s ease;
} */

@media(min-width: 768px) {
    .hero {
        background-color: var(--bg-color-base);
        background: url("../assets/img/hero-img-dsk.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        position: relative;
        z-index: 1;
        display: block;
    }

    .hero .hero-header {
        height: 100%;
        margin: auto auto;
        position: relative;
        z-index: 99;
    }

    .hero .hero-header .hero-title {
        font-size: 28px;
        width: 450px;
    }

    .hero .proactiva-logo {
        width: 500px;
    }

    .hero .hero-img {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        max-width: 100%;
        z-index: 1;
    }

    .hero .hero-img img {
        object-fit: cover;
    }

    .btn-cta {
        margin-top: 12px;
        display: flex;
        align-items: center;
        gap: .4rem;
        border: none;
        padding: 6px 10px;
        border-radius: 16px;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    .btn-cta p {
        font-weight: 600;
    }

    .btn-cta img {
        opacity: 0;
        transition: all ease-in-out .5s;
        transform: translateX(-2px);
    }

    .btn-cta:hover img {
        opacity: 1;
        transition: all ease-in-out .5s;
        transform: translateX(2px);
    }
}

/* =========================================
   6. SECCIONES: IMPACTO & CARD DELEGAR
   ========================================= */
.section-impacto {
    position: relative;
    z-index: 5;
    overflow: hidden;
    background-color: white;
}

/* .section-impacto-content {
    padding: 36px 36px;
} */

.card-delegar {
    background-color: white;
    border-radius: 6px;
    padding: 24px 24px;
    margin: auto;
    margin-top: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-delegar h3 {
    margin-left: -3px;
    font-family: var(--ff-base);
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    color: var(--bg-color-blue-alt);
}

.card-delegar p {
    font-family: var(--ff-base);
    color: var(--bg-color-base);
    font-weight: 700;
}

.card-delegar span {
    color: var(--bg-color-blue-alt);
    font-weight: 800;
    text-decoration: underline;
}

.badge-delega-wrapper {
    margin-top: 48px;
    margin-bottom: 48px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-delega {
    width: 300px;
    object-fit: cover;
    height: 300px;
}

@media(min-width: 1024px) {
    .section-impacto-content {
        margin: auto;
        max-width: 1440px;
        display: flex;
        /* justify-content: space-between; */
        height: 100%;
    }

    .section-impacto-header {
        display: flex;
        align-items: center;
        width: 60%;
        margin-right: 0;
    }

    .badge-delega-wrapper {
        width: 40%;
        margin-top: 0;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
    }

    .badge-delega {
        width: 350px;
        height: 350px;
    }

    .card-delegar {
        width: 40%;
        margin: 0 0 0 auto;
        border-radius: 0;
    }

    .card-delegar div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 450px;
        position: relative;
        z-index: 2;
    }

    .card-delegar h3 {
        font-size: 48px;
    }

    .card-delegar p {
        font-size: 36px;
    }
}

/* =========================================
   7. SECCIÓN QUÉ HACEMOS
   ========================================= */
.card-que-hacemos {
    /* margin: auto; */
    position: relative;
}

.card-que-hacemos-areas {
    padding: 16px;
    margin-top: 36px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--bg-color-base);
    box-shadow: 4px 4px 14px -4px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.desarrollamos-talento .card-que-hacemos-areas {
    box-shadow: none;
    align-items: flex-start;
    gap: 2rem;
}

@media(min-width: 1024px) {
    .section-que-hacemos {
        margin-bottom: 25px;
    }

    .card-que-hacemos {
        background-color: white;
        position: relative;
        z-index: 9;
        width: 100%;
        margin: auto;
    }

    .card-que-hacemos h2 {
        margin: auto;
        text-align: center;
    }

    .card-que-hacemos div {
        padding: 48px 0;
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .card-que-hacemos .text-wrapper {
        padding: 8px 0;
        width: 55%;
    }

    .card-que-hacemos-areas {
        margin: auto;
        width: 350px;
        padding: 24px 28px;
        color: var(--bg-color-base);
        box-shadow: 4px 4px 14px -4px rgba(0, 0, 0, 0.2);
        border-radius: 14px;
    }

    .card-que-hacemos-areas h3 {
        font-size: 24px;
    }

    .card-que-hacemos-areas ul {
        justify-content: space-evenly;
        gap: .5rem;
    }

    .card-que-hacemos-areas ul li p {
        font-size: 18px;
    }
}

@media(min-width: 1224px) {
    .card-que-hacemos {
        max-width: 1440px;
    }

    .card-que-hacemos h2 {
        font-size: 48px;
        margin: auto;
        text-align: center;
    }

    .card-que-hacemos .text-wrapper p {
        padding: 8px 16px;
    }
}

/* =========================================
   8. LISTAS Y COMPONENTES UI
   ========================================= */
.list-item-flex {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: .8rem;
}

.list-item-flex p {
    line-height: 124%;
}

.list-item-flex img {
    padding-top: 5px;
    width: 5px;
    height: 15px;
}

/* Especialistas */
.especialistas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 500px;
}

@media(min-width:1024px) {
    .especialistas {
        max-width: 1440px;
        margin: auto;
        position: relative;
        z-index: 1;
        overflow: hidden;
        width: 100%;
        height: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .especialistas .selection-list {
        width: max-content;
    }

    .especialistas .divider {
        display: none;
    }
}

/* =========================================
   9. PCOR (PROCESO)
   ========================================= */
.cards-pcor-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.card-pcor {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 8px 8px 16px -10px rgba(0, 0, 0, 0.418);
    border-radius: 6px;
    overflow: hidden;
    width: 350px;
    height: 320px;
    background-color: #333;
}

.card-pcor>* {
    position: relative;
    z-index: 2;
}

.card-pcor::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.card-pcor-img-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 0;
}

.card-pcor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-pcor p {
    position: relative;
    z-index: 2;
    font-family: var(--ff-base);
    color: white;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    padding: 24px;
}

.card-pcor hr {
    margin-top: 0;
    position: relative;
    z-index: 2;
    width: 200px;
    margin-bottom: 0;
}

@media(min-width: 1024px) {
    .section-pcor {
        max-width: 1440px;
        margin: auto;
        background-color: white;
        display: flex;
        align-items: flex-start;
    }

    .section-pcor-header {
        max-width: max-content;
        position: sticky;
        top: 120px;
    }

    .section-pcor .section-pcor-header .section-title {
        text-align: left;
        font-size: 42px;
        line-height: 124%;
    }

    .section-pcor-header .divider-alt {
        width: 100%;
        height: 2px;
        margin: 16px 0;
    }

    .cards-pcor-wrapper {
        padding: 16px;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: flex-start;
    }

    .card-pcor {
        overflow: visible;
        width: 250px;
        height: 100%;
        background-color: rgba(255, 255, 255, 0);
        width: min-content;
        border-radius: 4px;
        box-shadow: none;
    }

    .card-pcor::before {
        z-index: -99;
        background: transparent;
    }

    .card-pcor-img-wrapper {
        border-radius: 4px;
        height: 503px;
        position: relative;
        overflow: hidden;
        box-shadow: 8px 8px 16px -10px rgba(0, 0, 0, 0.418);
    }

    .card-pcor img {
        object-fit: cover;
    }

    .card-pcor p {
        height: 176px;
        padding: 16px 0;
        color: var(--bg-color-base);
        text-align: left;
        font-size: 24px;
        font-weight: 700;
    }

    .card-pcor .divider {
        background-color: var(--bg-color-base);
        height: 2px;
    }
}

@media(min-width: 1360px) {
    .section-pcor {
        justify-content: space-between;
    }

    .section-pcor-header {
        display: inline;
        width: fit-content;
        max-width: 43ch;
    }

    .section-pcor .section-title {
        text-align: left;
        font-size: 52px;
        line-height: 137%;
    }
}

/* =========================================
   10. DESARROLLO TALENTO & SELECCIÓN
   ========================================= */
.section-desarrollamos-talento {
    background-color: var(--bg-color-base);
}

.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 512px;
    padding: 24px 0;
}

.cards-wrapper img {
    width: 280px;
}

@media(min-width: 1024px) {
    .section-desarrollamos-talento {
        max-width: 1440px;
        margin: auto;
        position: relative;
        z-index: 9;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .section-desarrollamos-talento article {
        display: flex;
        justify-content: space-between;
    }

    .section-desarrollamos-talento article div {
        width: 48%;
        height: 100%;
    }

    .section-desarrollamos-talento article div:first-child {
        padding: 12px 0;
    }

    .cards-wrapper {
        max-width: none;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .cards-wrapper img {
        margin: 0;
        width: max-content;
        max-height: 47px;
    }
}

/* Selección y fortalecimiento */
@media(min-width:1024px) {
    .section-seleccionar-bien {
        max-width: 1440px;
        margin: auto;
        position: relative;
        z-index: 8;
        height: 100dvh;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
        gap: 2.5rem;
    }

    .section-seleccionar-bien article:first-child {
        width: 40%;
    }

    .section-seleccionar-bien article:first-child h2 {
        width: 20ch;
    }

    .section-seleccionar-bien article:first-child hr {
        height: 2px;
        margin: 12px 0 2px 0;
    }

    .section-seleccionar-bien ul {
        gap: .2rem;
    }
}

/* =========================================
   12. FORMULARIO DE CONTACTO
   ========================================= */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 36px 24px;
    border-radius: 8px; /* Mantiene coherencia con .card-que-hacemos-areas */
    box-shadow: 4px 4px 14px -4px rgba(0, 0, 0, 0.2);
}

.form-title {
    color: var(--bg-color-blue-alt);
    text-align: center;
}

.form-wrapper .divider-alt {
    margin: 16px auto 32px auto;
    width: 60px; /* Un divisor corto y estético */
    height: 3px;
}

.custom-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.custom-form label {
    font-family: var(--ff-base);
    color: var(--bg-color-base);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.custom-form input,
.custom-form textarea {
    font-family: var(--ff-base);
    font-size: 16px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    background-color: #f9fafb;
}

.custom-form input:focus,
.custom-form textarea:focus {
    border-color: var(--bg-color-base);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(1, 102, 242, 0.15); /* Efecto glow con tu color base */
}

.custom-form input::placeholder,
.custom-form textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Adaptación de tu .btn-cta para el formulario */
.btn-submit {
    border: none;
    padding: 14px 32px;
    border-radius: 16px; /* Mantiene la curvatura de tus botones */
    background-color: var(--bg-color-base);
    color: white;
    font-family: var(--ff-base);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%; /* Botón ancho en móviles */
}

.btn-submit:hover {
    background-color: var(--bg-color-blue-alt);
}

/* Responsive para el formulario */
@media(min-width: 768px) {
    .form-wrapper {
        padding: 48px;
    }
    
    .btn-submit {
        width: max-content; /* Botón ajustado a su contenido en desktop */
    }
}

/* =========================================
   13. ESTADOS DE ERROR (VALIDACIÓN JS)
   ========================================= */
.custom-form .input-error {
    border-color: #ef4444; /* Rojo de alerta suave */
    background-color: #fef2f2;
}

.custom-form .input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); /* Reemplaza el glow azul por rojo */
}

.error-msg {
    color: #ef4444;
    font-size: 13px;
    font-family: var(--ff-base);
    margin-top: 6px;
    font-weight: 500;
    animation: fadeInError 0.3s ease-in-out;
}

/* Pequeña animación para que el mensaje aparezca suavemente */
@keyframes fadeInError {
    from { 
        opacity: 0; 
        transform: translateY(-5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* =========================================
   14. FOOTER Y MISC
   ========================================= */

.list-item-center {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 8px 0;
}

.list-item-center p {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.list-item-center .ico-talent {
    width: 25px;
}

.footer-title {
    font-size: 24px;
    padding: 12px 0;
}

.footer-terms-policy {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    font-size: 21px;
    line-height: 200%;
}

footer ul li {
    font-size: 16px;
    font-weight: 700;
    padding: 5px 0;
    line-height: 174%;
}

footer .footer-entidades-financieras {
    margin: 24px 0;
    max-width: 375px;
    padding: 21px 0;
    display: flex;
    justify-content: space-evenly;
}

.tm-sign{
    font-size: 12px;
    padding: 8px 0;
}

@media (min-width: 1024px) {
    footer .footer-content {
        max-width: 1440px;
        margin: auto;
        margin-top: -8px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    footer .footer-contacto {
        text-align: left;
    }

    footer .footer-contacto .footer-title {
        text-align: start;
    }

    footer .footer-contacto ul {
        gap: 1.2rem;
    }

    footer .footer-contacto ul li:hover{
        text-decoration: underline;
        text-underline-offset: 8px;
        text-decoration-thickness: 1px;
    }

    footer .footer-terms-policy {
        align-self: center;
        gap: 0;
    }

    footer .footer-terms-policy a:hover{
        text-decoration: underline;
        text-underline-offset: 8px;
        text-decoration-thickness: 1px;
    }

    footer .footer-entidades-financieras {
        width: 100%;
        margin: auto;
    }
}

/* Selección con criterio (Background Img) */
.selection-section {
    background-image: url("../img/selection-desk.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 75%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 550px;
}

.selection-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.selection-list:has(.checks) .list-item-flex {
    padding: 4px 0;
}

.selection-list:has(.checks) img {
    padding-top: 0;
    height: auto;
    width: 20px;
}

/* =========================================
   15. MODAL DE NOTIFICACIÓN
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 27, 96, 0.7); /* Tu color var(--bg-color-blue-alt) con opacidad */
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    
    /* Oculto por defecto con transición suave */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: white;
    width: 90%;
    max-width: 450px;
    padding: 36px 24px;
    border-radius: 8px; /* Mismo radio que tu form-wrapper */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    
    /* Animación de entrada estilo "pop" */
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-box .form-title {
    font-family: var(--ff-base);
    margin-bottom: 0;
    font-size: 24px;
}

.modal-box .divider-alt {
    margin: 16px auto;
    width: 50px;
}

.modal-box #modalMessage {
    font-family: var(--ff-base);
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Modificadores de estado (Éxito vs Error) */
.modal-box.success .form-title {
    color: var(--bg-color-base); 
}
.modal-box.success .divider-alt {
    background-color: var(--bg-color-base);
}

.modal-box.error .form-title {
    color: #ef4444; /* Rojo de error de tus validaciones */
}
.modal-box.error .divider-alt {
    background-color: #ef4444;
}
.modal-box.error .btn-submit {
    background-color: #ef4444;
}

/* =========================================
   16. SPINNER PARA BOTÓN DE ENVÍO
   ========================================= */
.btn-submit.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px; /* Un poquito más grande para que se note bien */
    height: 24px;
    margin-left: -12px; 
    margin-top: -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff; /* Blanco puro arriba */
    border-radius: 50%;
    animation: girarSpinner 0.8s linear infinite;
    z-index: 10; /* Asegura que nada lo tape */
}

@keyframes girarSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}