:root {
    --lever-bg-1: #49495d;
    --lever-bg-2: #282840;
    --lever-bg-3: #25253d;
    --lever-green: #5aa7ff;
    --lever-green-strong: #2f7be6;
    --lever-text-dark: #15224f;
    --lever-white: #ffffff;
    --field-content-inset: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Montserrat, sans-serif;
    background: linear-gradient(205deg, var(--lever-bg-1) 0%, var(--lever-bg-2) 47%, var(--lever-bg-3) 100%);
    color: var(--lever-white);
    overflow-x: hidden;
    position: relative;
}

#particle-canvas {
    position: fixed;
    top: -14px;
    left: 0;
    width: 162vw;
    height: 93vh;
    z-index: 0;
    pointer-events: none;
}

header {
    position: relative;
    width: 100%;
    z-index: 1300;
    display: flex;
    flex-direction: column;
}

.container.header-container {
    max-width: none;
    width: 90%;
    margin: 0 auto;
    padding: 47px 6px 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.logo-container {
    position: relative;
    z-index: 2;
    margin-left: 60px;
    margin-top: 4px;
}

.logo-container img {
    width: 189px;
    height: 52px;
    opacity: 1;
}

.desktop-header-buttons {
    display: flex;
    align-items: center;
    z-index: 200;
    gap: 14px;
    margin-top: 12px;
}

.desktop-inicio-btn:focus,
.desktop-nosotros-btn:focus {
    outline: 2px solid #5aa7ff;
    outline-offset: 2px;
}

.desktop-inicio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 168px;
    height: 40px;
    background: #2adc9f;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 0;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(40, 216, 158, 0.16);
    transition: background 0.2s;
}

.desktop-inicio-btn:hover,
.desktop-inicio-btn:active {
    background: #25d39d;
    box-shadow: 0 0 0 2px #2adc9f33;
}

.desktop-nosotros-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 168px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 20px;
    color: #152351;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 0;
    box-shadow: 0 2px 8px rgba(90, 167, 255, 0.12);
    transition: background 0.2s;
    padding: 0;
}

.desktop-nosotros-btn:hover,
.desktop-nosotros-btn:active {
    background: #f4f4f4;
    box-shadow: 0 0 0 2px #15235122;
}

.desktop-active-btn {
    background: #5aa7ff;
    box-shadow: 0 0 0 2px #5aa7ff55;
}

.desktop-nosotros-btn.desktop-active-btn,
.desktop-nosotros-btn.desktop-active-btn:hover,
.desktop-nosotros-btn.desktop-active-btn:active {
    background: #5aa7ff;
    box-shadow: 0 0 0 2px #5aa7ff55;
}

.desktop-nosotros-btn.desktop-active-btn .desktop-nosotros-btn-text {
    color: #fff;
}

.desktop-nosotros-btn.desktop-active-btn .desktop-nosotros-btn-icon svg,
.desktop-nosotros-btn.desktop-active-btn .desktop-nosotros-btn-icon svg path {
    fill: #fff;
}

.desktop-nosotros-btn-icon,
.desktop-inicio-btn-icon {
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-left: 12px;
    pointer-events: none;
}

.desktop-inicio-btn-icon {
    margin-left: 6px;
    margin-right: 8px;
}

.desktop-inicio-btn-icon svg {
    width: 28px;
    height: auto;
    display: block;
}

.desktop-inicio-btn-text {
    margin-right: 6px;
}

.desktop-nosotros-btn-text {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #152351;
    margin-right: 16px;
}

.desktop-inicio-btn-text {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.hamburguer {
    display: inline-flex;
    width: 33px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    z-index: 1303;
    position: relative;
    margin-right: -6px;
    margin-left: 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.hamburguer span {
    width: 22px;
    height: 2.5px;
    border-radius: 3px;
    background: #5aa7ff;
    display: block;
}

#menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(84vw, 340px);
    height: 100vh;
    background: linear-gradient(205deg, #49495d 0%, #282840 47%, #25253d 100%);
    z-index: 1302;
    padding: 86px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.24s ease;
    box-shadow: -14px 0 30px rgba(4, 8, 24, 0.45);
}

#menu.mobile-active {
    transform: translateX(0);
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

#menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

#menu ul li a:hover {
    color: #5aa7ff;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    text-decoration: none;
}

#cerrar-sesion-menu {
    color: #5aa7ff;
}

#cerrar-sesion-menu:hover {
    color: #b8d8ff;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 24, 0.45);
    z-index: 1300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

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

body.menu-open {
    overflow: hidden;
}

.personales-wrapper {
    width: min(1240px, calc(100% - 64px));
    min-height: calc(100vh - 112px);
    margin: 0 auto;
    display: grid;
    place-items: start center;
    padding: 0px 0 56px;
    position: relative;
    z-index: 1;
}

.personales-card {
    width: min(525px, 100%);
    /* background: rgba(255, 255, 255, 0.08); */
    /* border: 1px solid rgba(255, 255, 255, 0.14); */
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 28px;
    /* box-shadow: 0 22px 38px rgba(15, 18, 35, 0.35); */
    margin-top: 22px;
}


h1 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.08;
    letter-spacing: 0.2px;
    font-weight: 300;
    color: transparent;
    background: linear-gradient(90deg, #9fd0ff 0%, #5aa7ff 52%, #2f7be6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 6px 18px rgba(62, 142, 255, 0.22);
    padding-inline: var(--field-content-inset);
    text-align: center;
}

h1 strong {
    font-weight: 800;
}

.field-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1px;
    color: rgba(255, 255, 255, 0.96);
    padding-inline: var(--field-content-inset);
}

input {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(90, 167, 255, 0.5);
    border-radius: 26px;
    background: var(--lever-white);
    color: var(--lever-text-dark);
    padding: 0 20px;
    outline: none;
    font-size: 15px;
    font-family: Montserrat, sans-serif;
}

input::placeholder {
    color: rgba(21, 34, 79, 0.38);
}

input:focus {
    border-color: var(--lever-green);
    box-shadow: 0 0 0 3px rgba(90, 167, 255, 0.18);
}

input[readonly] {
    background: #edf4ff;
}

input.input-error {
    border-color: #ff5f5f;
    box-shadow: 0 0 0 3px rgba(255, 95, 95, 0.2);
}

.name-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.legend {
    margin: 8px 0 0;
    font-size: 12px;
    opacity: 0.86;
    padding-inline: var(--field-content-inset);
}

.field-message {
    min-height: 18px;
    margin: 8px 0 0;
    color: #ffd8d8;
    font-size: 12px;
    padding-inline: var(--field-content-inset);
}

.field-message.error {
    color: #ff9b9b;
}

.field-message.info {
    color: rgba(244, 255, 249, 0.9);
}

#capital-message {
    min-height: 0;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.06);
    color: #eef7ff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    display: none;
}

#capital-message.info,
#capital-message.error {
    padding-inline: 10px;
}

#capital-message:not(:empty) {
    display: block;
}

#capital-message.info {
    background: rgba(90, 167, 255, 0.1);
    border-color: rgba(90, 167, 255, 0.3);
    color: #e9fff6;
    padding: 10px;
}

.capital-limits {
    width: 100%;
}

.capital-limits-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(244, 255, 249, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.capital-limits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.capital-limit-item {
    border: 1px solid rgba(90, 167, 255, 0.3);
    background: rgba(90, 167, 255, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    display: grid;
    gap: 3px;
}

.capital-limit-label {
    font-size: 11px;
    color: rgba(244, 255, 249, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.capital-limit-value {
    font-size: 17px;
    line-height: 1.1;
    color: #f3fff9;
    font-weight: 800;
}

@media (max-width: 680px) {
    .capital-limits-grid {
        grid-template-columns: 1fr;
    }

    .capital-limit-item {
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 8px;
    }

    .capital-limit-label {
        font-size: 10px;
    }

    .capital-limit-value {
        font-size: 16px;
        text-align: right;
    }
}

#capital-message.error {
    background: rgba(255, 95, 95, 0.14);
    border-color: rgba(255, 95, 95, 0.38);
    color: #ffdada;
}

#eligibility-message {
    margin-top: 2px;
    margin-bottom: 12px;
    color: rgba(244, 255, 249, 0.94);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

button {
    width: 100%;
    border: 0;
    height: 54px;
    border-radius: 999px;
    font-family: Montserrat, sans-serif;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.15px;
    color: var(--lever-white);
    cursor: pointer;
    background: linear-gradient(135deg, #76b9ff 0%, #4e99f3 55%, #2f7be6 100%);
    box-shadow:
        0 14px 28px rgba(47, 123, 230, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow:
        0 18px 34px rgba(47, 123, 230, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

button:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(47, 123, 230, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

button:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 3px rgba(90, 167, 255, 0.28),
        0 0 0 6px rgba(47, 123, 230, 0.34),
        0 14px 28px rgba(47, 123, 230, 0.34);
}

button:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(0.08);
}

.btn-secondary {
    margin-top: 6px;
}

#btn-consultar,
#btn-cotizar {
    display: block;
    width: min(255px, 100%);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 680px) {
    :root {
        --field-content-inset: 14px;
    }
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--lever-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.resultados {
    margin-top: 20px;
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow: visible;
}

.resultados.has-active-cards .cuota-card:not(.card-active-focus):not(.disabled) {
    flex: 0.92 1 0;
    transform: scale(0.93);
    opacity: 0.72;
}

.resultados:hover .cuota-card:not(:hover):not(.selected):not(.disabled) {
    flex: 0.88 1 0;
    transform: scale(0.9);
    opacity: 0.68;
}

.resultados-message {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #f5fbff;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
}

.resultados-message.error {
    background: rgba(255, 95, 95, 0.16);
    border: 1px solid rgba(255, 95, 95, 0.35);
}

.resultados.entering .cuota-card {
    opacity: 0;
    animation: revealResultCard 0.46s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.resultados.entering .cuota-card:nth-child(1) {
    animation-delay: 0.05s;
}

.resultados.entering .cuota-card:nth-child(2) {
    animation-delay: 0.14s;
}

.resultados.entering .cuota-card:nth-child(3) {
    animation-delay: 0.23s;
}

.cuota-card {
    flex: 1 1 0;
    min-width: 0;
    min-height: 156px;
    background: var(--lever-white);
    border-radius: 16px;
    color: var(--lever-text-dark);
    padding: 16px 16px 14px;
    border: 2px solid rgba(90, 167, 255, 0.16);
    cursor: pointer;
    transition: flex 0.24s ease, transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
    transform-origin: center center;
    position: relative;
    will-change: transform;
    display: grid;
    align-content: space-between;
    gap: 8px;
    overflow: hidden;
}

.cuota-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, rgba(90, 167, 255, 0.55), rgba(47, 123, 230, 0.85));
    opacity: 0.85;
}

.cuota-card:hover,
.cuota-card:focus-visible {
    flex: 1.18 1 0;
    border-color: var(--lever-green);
    transform: translateY(-10px) scale(1.1);
    outline: none;
    z-index: 3;
    box-shadow:
        0 20px 36px rgba(59, 130, 246, 0.24),
        0 0 0 6px rgba(90, 167, 255, 0.12),
        0 0 28px rgba(90, 167, 255, 0.2);
}

.cuota-card.selected {
    flex: 1.12 1 0;
    border-color: var(--lever-green);
    box-shadow:
        0 18px 34px rgba(59, 130, 246, 0.26),
        0 0 0 5px rgba(90, 167, 255, 0.1);
    transform: translateY(-8px) scale(1.08);
    z-index: 2;
}

.cuota-card.card-active-focus {
    flex: 1.22 1 0;
    transform: translateY(-12px) scale(1.12);
    border-color: var(--lever-green);
    box-shadow:
        0 24px 40px rgba(59, 130, 246, 0.28),
        0 0 0 7px rgba(90, 167, 255, 0.16),
        0 0 34px rgba(90, 167, 255, 0.28);
    opacity: 1;
    z-index: 4;
}

.cuota-card.disabled {
    opacity: 1;
    cursor: not-allowed;
    background: #e4e8f0;
    border-color: rgba(122, 136, 168, 0.55);
    box-shadow: none;
}

.cuota-card.disabled::before {
    background: linear-gradient(90deg, rgba(153, 163, 184, 0.8), rgba(120, 130, 151, 0.95));
    opacity: 1;
}

.cuota-card.disabled .cuota-title,
.cuota-card.disabled .cuota-term,
.cuota-card.disabled .cuota-label,
.cuota-card.disabled .monto {
    color: #5f6b86;
}

.cuota-card.disabled:hover,
.cuota-card.disabled:focus-visible {
    border-color: rgba(122, 136, 168, 0.55);
    transform: none;
}

.cuota-card h2 {
    margin: 0;
    display: grid;
    gap: 2px;
    line-height: 1.05;
}

.cuota-title {
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(21, 34, 79, 0.65);
    font-weight: 700;
}

.cuota-term {
    font-size: 18px;
    font-weight: 800;
    color: #14224f;
    line-height: 1.1;
}

.cuota-label {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-transform: uppercase;
    color: rgba(21, 34, 79, 0.58);
    font-weight: 700;
}

.monto {
    margin: 0;
    font-size: clamp(15px, 1.65vw, 17px);
    line-height: 1.15;
    font-weight: 800;
    color: #0e152c;
    white-space: nowrap;
    letter-spacing: -0.1px;
    font-variant-numeric: tabular-nums;
}

#btn-avanzar-cuota {
    margin-top: 14px;
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #5aa7ff 0%, #2f7be6 100%);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#btn-avanzar-cuota:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(90, 167, 255, 0.3);
}

#btn-avanzar-cuota:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hidden {
    display: none;
}

#detalles-section {
    background: rgba(90, 167, 255, 0.08);
    border: 1.5px solid rgba(90, 167, 255, 0.26);
    border-radius: 16px;
    padding: 22px 20px 8px;
    margin-top: 8px;
}

#detalles-section.entering {
    animation: revealDetails 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform-origin: top center;
}

#detalles-section.entering>* {
    opacity: 0;
    animation: revealDetailItem 0.44s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

#detalles-section.entering> :nth-child(1) {
    animation-delay: 0.05s;
}

#detalles-section.entering> :nth-child(2) {
    animation-delay: 0.14s;
}

#detalles-section.entering> :nth-child(3) {
    animation-delay: 0.23s;
}

#detalles-section.entering> :nth-child(4) {
    animation-delay: 0.32s;
}

#detalles-section.entering .name-grid>* {
    opacity: 0;
    animation: revealDetailItem 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

#detalles-section.entering .name-grid> :nth-child(1) {
    animation-delay: 0.08s;
}

#detalles-section.entering .name-grid> :nth-child(2) {
    animation-delay: 0.16s;
}

@keyframes revealDetails {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealDetailItem {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealResultCard {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(18, 20, 34, 0.58);
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    z-index: 9999;
}

.global-loader.hidden {
    display: none;
}

.global-loader-content {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 28px 30px;
    min-width: min(88vw, 360px);
    border-radius: 18px;
    background: rgba(39, 43, 71, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 50px rgba(4, 8, 24, 0.45);
}

.global-spinner {
    width: 78px;
    height: 78px;
    border: 6px solid rgba(255, 255, 255, 0.14);
    border-top-color: #5aa7ff;
    border-right-color: #5aa7ff;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    position: relative;
}

.global-spinner::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 4px solid rgba(90, 167, 255, 0.25);
    border-bottom-color: rgba(90, 167, 255, 0.95);
    animation: spinReverse 0.95s linear infinite;
}

#global-loader-text {
    margin: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #f4fff9;
}

@keyframes spinReverse {
    to {
        transform: rotate(-360deg);
    }
}

@media (max-width: 860px) {
    .container.header-container {
        width: 100%;
        padding: 24px 12px 10px;
        align-items: center;
    }

    .logo-container {
        margin-left: 0;
        margin-top: 10px;
    }

    .logo-container img {
        width: 126px;
        height: auto;
    }

    .desktop-header-buttons {
        display: flex;
        align-items: center;
        margin-left: auto;
        gap: 0;
    }

    .desktop-header-buttons .desktop-inicio-btn,
    .desktop-header-buttons .desktop-nosotros-btn {
        display: none;
    }

    .desktop-header-buttons .hamburguer {
        display: inline-flex;
        width: 38px;
        height: 38px;
        margin-top: 10px;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
    }

    .desktop-header-buttons .hamburguer span {
        width: 22px;
        height: 2.5px;
        background: #5aa7ff;
        border-radius: 3px;
        display: block;
        pointer-events: none;
    }

    .personales-wrapper {
        min-height: auto;
        width: calc(80% - 28px);
        padding: 94px 0 24px;
        align-items: start;
    }

    .personales-card {
        width: 100%;
    }

    .resultados:not(.hidden) {
        display: grid;
        grid-template-columns: 1fr;
    }

    .resultados.has-active-cards .cuota-card:not(.card-active-focus):not(.disabled),
    .resultados:hover .cuota-card:not(:hover):not(.selected):not(.disabled) {
        transform: none;
        flex: 1 1 0;
        opacity: 1;
    }

    .cuota-card {
        min-height: 132px;
    }

    .cuota-term {
        font-size: 19px;
    }

    .monto {
        font-size: 18px;
    }

    .name-grid {
        grid-template-columns: 1fr;
    }

    .personales-card {
        padding: 22px;
        box-shadow: 0 22px 38px rgba(15, 18, 35, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .global-loader-content {
        min-width: min(92vw, 360px);
    }

    #global-loader-text {
        font-size: 18px;
    }
}

/* === MODAL DOCUMENTOS === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 24, 0.75);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-contenido {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 48px rgba(4, 8, 24, 0.55);
}

.modal-cerrar {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
    border-radius: 50%;
}

.modal-cerrar:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.modal-contenido h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #5aa7ff;
    font-weight: 700;
}

.modal-subtitulo {
    color: rgba(244, 255, 249, 0.7);
    font-size: 14px;
    margin: 0 0 28px;
}

#form-documentos {
    display: grid;
    gap: 20px;
}

.upload-group {
    display: grid;
    gap: 8px;
}

.upload-group label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(244, 255, 249, 0.9);
}

.drop-zone {
    border: 2px dashed rgba(90, 167, 255, 0.4);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(90, 167, 255, 0.08);
}

.drop-zone:hover {
    border-color: #5aa7ff;
    background: rgba(90, 167, 255, 0.16);
    transform: translateY(-2px);
}

.drop-zone.dragover {
    border-color: #5aa7ff;
    background: rgba(90, 167, 255, 0.25);
    transform: scale(1.02);
}

.drop-zone.has-file {
    border-color: #5aa7ff;
    background: rgba(90, 167, 255, 0.2);
}

.drop-text {
    margin: 0;
    color: rgba(244, 255, 249, 0.7);
    font-size: 14px;
}

.file-preview {
    min-height: 0;
    font-size: 13px;
    color: #5aa7ff;
    font-weight: 600;
    padding: 8px 0;
    display: none;
}

.file-preview.visible {
    display: block;
}

.btn-enviar-docs {
    width: 100%;
    height: 52px;
    background: #5aa7ff;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 26px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-enviar-docs:hover:not(:disabled) {
    background: #4f9bfd;
    box-shadow: 0 8px 20px rgba(90, 167, 255, 0.3);
}

.btn-enviar-docs:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Confirmación */
.modal-confirmacion-contenido {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(90, 167, 255, 0.2);
    border: 2px solid #5aa7ff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 48px;
    color: #5aa7ff;
    margin: 0 auto 24px;
    font-weight: 700;
}

.resumen-solicitud {
    background: rgba(90, 167, 255, 0.12);
    border: 1px solid rgba(90, 167, 255, 0.35);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.resumen-solicitud p {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.resumen-solicitud p strong {
    color: #5aa7ff;
    font-size: 16px;
}

.mensaje-confirmacion {
    color: rgba(244, 255, 249, 0.8);
    margin-top: 8px !important;
}

.btn-whatsapp {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    background: #5aa7ff;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 26px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    margin: 20px 0;
}

.btn-whatsapp:hover {
    background: #4f9bfd;
    box-shadow: 0 8px 20px rgba(90, 167, 255, 0.35);
    transform: translateY(-2px);
}

.btn-whatsapp.hidden {
    display: none !important;
}

.btn-whatsapp-submit {
    margin-top: 8px;
    margin-bottom: 0;
}

.btn-whatsapp-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-whatsapp-submit:disabled:hover {
    background: #5aa7ff;
    box-shadow: none;
    transform: none;
}

.btn-volver {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-volver:hover {
    background: rgba(255, 255, 255, 0.15);
}

.floating-action-btn {
    position: fixed;
    right: 52px;
    bottom: 20px;
    width: 65.72px;
    height: 65.72px;
    background: #5aa7ff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-action-btn:hover {
    background: #4f9bfd;
    box-shadow: 0 10px 22px rgba(90, 167, 255, 0.34);
    transform: translateY(-1px);
}

@media (max-width: 860px) {
    .floating-action-btn {
        right: 14px;
        bottom: 14px;
        width: 56px;
        height: 56px;
    }

    .floating-action-btn svg {
        width: 24px;
        height: 21px;
    }
}