@font-face {
    font-family: "OpenSans";
    src: url("../fonts/opensans/OpenSans-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "OpenSans";
    src: url("../fonts/opensans/OpenSans-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "OpenSans";
    src: url("../fonts/opensans/OpenSans-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Rubik";
    src: url("../fonts/rubik/Rubik-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Rubik";
    src: url("../fonts/rubik/Rubik-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Rubik";
    src: url("../fonts/rubik/Rubik-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #2a4a90;
    --secondary-color: #f0ca30;
    --terciary-color: #b21a1d;

    --text-color: #1e1e1e;
    --neutral-color: #ede0d4;
    --white: #ffffff;
    --black: #000000;

    --bg-light: #f9fafb;

    --gray-100: #f5f5f5;
    --gray-200: #eaeaea;
    --gray-300: #d6d6d6;
    --gray-400: #bdbdbd;
    --gray-500: #7a7a7a;
    --gray-600: #535353;
    --gray-700: #333333;

    --green-whatsapp: #25d366;

    --font-primary: "Rubik", sans-serif;
    --font-secondary: "OpenSans", sans-serif;

    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-base: 1rem; /* 16px */
    --font-size-lg: 1.5rem; /* 24px */
    --font-size-xl: 2.8rem;
    --font-size-xxl: 2.75rem; /* 48px */

    --border-radius-sm: 0.25rem; /* 4px */
    --border-radius-md: 0.5rem; /* 8px */
    --border-radius-lg: 0.875rem; /* 12px */
    --border-radius-xl: 1rem; /* 16px */
    --border-radius-full: 2rem;

    --filter-primary: brightness(0) saturate(100%) invert(23%) sepia(82%)
        saturate(798%) hue-rotate(188deg) brightness(96%) contrast(89%);
    --filter-secondary: ;
}

* {
    font-family: "OpenSans", sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: var(--font-size-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

.body-simulador {
    padding: 0 0.5rem;
}

.body-credit {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-tap-highlight-color: transparent;
}

.header-cotizacion {
    background-color: var(--bg-light);
    padding: 0.5rem;
    flex-shrink: 0;
}

.img-header-logo {
    display: block;
    margin: 0 auto;
    height: 32px;
}

/* === INICIO SIMULADOR DE CREDITOS ==== */

.container-simulador {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-xl);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 30px rgba(0, 86, 210, 0.08);
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.header p {
    color: #64748b;
    font-size: 1rem;
}

.card {
    margin-bottom: 2.5rem;
}

.input-group {
    margin-bottom: 2.25rem;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.title-label {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    max-width: 90px;
}

.input-value {
    color: var(--terciary-color);
    font-size: 1.35rem;
    font-weight: 700;
}

.input-unit {
    color: var(--terciary-color);
    font-size: 1.35rem;
    font-weight: 700;
    margin-left: 4px;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 86, 210, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 86, 210, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.4);
}

.range-limits {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.range-limits span {
    font-size: 0.875rem;
    color: #666;
}

.result-item {
    background: var(--primary-color);
    border-radius: var(--border-radius-xl);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.result-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.result-badge-warning {
    color: var(--gray-200);
    margin-bottom: 2rem;
}

.info-badge {
    font-size: 0.875rem;
    margin-top: 4px;
    list-style: none;
    padding-left: 0;
    padding-bottom: 0.5rem;
}

.cta-button {
    background: var(--secondary-color);
    border-radius: 3rem;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 202, 48, 0.4);
}

.cta-button_link {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.3;
    margin-top: 1.5rem;
    transition: text-decoration 0.3s ease;
}

.cta-button_link:hover {
    text-decoration: none;
}

/* === Segment control === */

.credit-form-segment {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.credit-form-segment-option {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    background: #f8f9fc;
    font-weight: 500;
    font-size: 1rem; /* ≥16px: previene zoom automático en iOS */
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px; /* touch target mínimo */
}

.credit-form-segment-option:hover {
    border-color: var(--primary-color);
}

input[name="credit_type"]:checked + .credit-form-segment-option,
input[name="tipo_credito"]:checked + .credit-form-segment-option {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* === Select custom === */

.credit-form-select-wrapper {
    position: relative;
}

.credit-form-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.6rem 2.5rem 0.6rem 0.85rem;
    border-radius: 0.75rem;
    border: 2px solid #e0e0e0;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.credit-form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 74, 144, 0.1);
}

.credit-form-select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.75rem;
    color: #667085;
}

/* === FIN SIMULADOR DE CREDITOS ==== */

/* === INICIO FORM CREDITO ==== */

.credit-page {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.credit-split {
    display: flex;
    flex: 1;
    width: 100%;
}

.credit-brand-panel {
    display: none;
}

.credit-form-container {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-xl);
    margin: 0.5rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credit-form-wrapper {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 1.25rem;
}

.credit-form-header {
    margin-bottom: 1rem;
    text-align: center;
}

.credit-form-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.credit-form-subtitle {
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0;
}

.credit-form-group {
    margin-bottom: 0.65rem;
}

.credit-form-label {
    display: block;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 0.2px;
}

.credit-form-label-required::after {
    content: " *";
    color: #dc3545;
}

.credit-form-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 0.75rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.credit-form-input::placeholder {
    color: #aaaaaa;
}

.credit-form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 74, 144, 0.1);
}

.credit-form-input:disabled,
.credit-form-input[readonly] {
    background-color: var(--bg-light);
    color: var(--primary-color);
    cursor: not-allowed;
    border-color: var(--border-color);
}

.credit-form-amount-field {
    background-color: #e8f0fe;
    border-color: var(--primary-color);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.credit-form-helper {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.2rem;
    display: block;
    line-height: 1.2;
}

.credit-form-button {
    position: relative;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border: none;
    border-radius: 3rem;
    box-shadow: 0 4px 8px rgba(240, 202, 48, 0.3);
    cursor: pointer;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    text-align: center;
    min-height: 48px;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.credit-form-button:hover {
    color: var(--white);
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(42, 74, 144, 0.4);
}

.credit-form-button:active {
    transform: scale(0.97);
    box-shadow: 0 2px 4px rgba(240, 202, 48, 0.3);
}

.credit-form-button .tooltip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--font-size-xs);
    background: var(--white);
    color: var(--white);
    padding: 5px 8px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.credit-form-button .tooltip::before {
    content: "";
    position: absolute;
    height: 8px;
    width: 8px;
    background: var(--white);
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.credit-form-button:hover .tooltip {
    top: -34px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
        text-wrap: nowrap;
}

svg:hover span,
svg:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.credit-form-button:hover .tooltip,
.credit-form-button:hover .tooltip::before {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.credit-form-required-note {
    font-size: 0.7rem;
    color: #999;
    text-align: center;
    margin-top: 0.6rem;
    margin-bottom: 0;
}

/* === FIN FORM CREDITO ==== */

/* === INICIO SWEETLALERT ==== */

/* = inicio alerta loading = */

.credit-loading-popup {
    background: #eef0fc;
    border-radius: 1rem;
    padding: 1.25rem;
    width: 92% !important;
    max-width: 420px !important;
}

.credit-loading-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.credit-loading-container {
    margin-top: 1rem;
}

.credit-loading-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* = fin alerta loading = */

.credit-alert-popup {
    background: var(--primary-color);
    background: linear-gradient(
        135deg,
        rgba(42, 74, 144, 1) 0%,
        rgba(83, 121, 205, 1) 100%
    );
    border-radius: 1rem;
    color: var(--white);
    padding: 1.25rem;
    width: 92% !important;
    max-width: 420px !important;
}

.credit-alert-popup .swal2-actions {
    width: 100%;
}

.credit-alert-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: start;
}

.credit-alert-content {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: start;
}

.credit-alert-amount {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Pantallas muy pequeñas (< 380px) */
@media (max-height: 680px) {
    .credit-form-header { margin-bottom: 0.5rem; }
    .credit-form-title { font-size: 1.15rem; }
    .credit-form-subtitle { font-size: 0.72rem; }
    .credit-form-group { margin-bottom: 0.45rem; }
    .credit-form-label { font-size: 0.75rem; margin-bottom: 0.2rem; }
    .credit-form-input { padding: 0.5rem 0.75rem; font-size: 0.95rem; }
    .credit-form-select { padding: 0.5rem 2.5rem 0.5rem 0.75rem; }
    .credit-form-helper { font-size: 0.65rem; margin-top: 0.1rem; }
    .credit-form-button { margin-top: 0.6rem; padding: 0.7rem 1rem; font-size: 0.9rem; }
    .credit-form-required-note { margin-top: 0.35rem; font-size: 0.65rem; }
    .credit-form-container { margin: 0.35rem; }
    .credit-form-wrapper { padding: 1rem; }
    .header-cotizacion { padding: 0.35rem; }
    .img-header-logo { height: 26px; }
    .telefono-prefix { padding: 0.5rem 0.35rem 0.5rem 0.7rem; }
    .telefono-field { padding: 0.5rem 0.7rem 0.5rem 0.35rem; }
}

.credit-alert-btn-success,
.credit-alert-btn-error {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 2rem;
    border: none;
    margin-left: auto;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.credit-alert-btn-success:hover,
.credit-alert-btn-error:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.credit-alert-btn-success:active,
.credit-alert-btn-error:active {
    transform: scale(0.97);
}

/* === FIN SWEETLALERT ==== */

@media (min-width: 768px) {
    /* === INICIO SIMULADOR DE CREDITOS ==== */

    .body-simulador {
        padding: 0;
    }

    .header h1 {
        font-size: 2.25rem;
    }

    .header p {
        font-size: 1rem;
    }

    .title-label {
        font-size: 1.125rem;
        max-width: unset;
    }

    .input-value {
        font-size: 1.75rem;
    }

    .input-unit {
        font-size: 1.75rem;
    }

    .range-limits span {
        font-size: 1rem;
    }

    .result-item {
        padding: 2.8rem;
    }

    .result-value {
        font-size: 3rem;
    }

    .container-simulador {
        max-width: 900px;
        padding: 2.5rem 2.25rem;
    }

    .info-badge {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding-bottom: 0;
    }

    .cta-button {
        font-size: 1.2rem;
        margin-top: 2rem;
        padding: 1rem 3rem;
    }

    /* === FIN SIMULADOR DE CREDITOS ==== */

    /* === INICIO FORM CREDITO ==== */
    .header-cotizacion {
        display: none;
    }

    .credit-page {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .credit-split {
        flex-direction: row;
    }

    .credit-brand-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 35%;
        background: var(--primary-color);
        background: linear-gradient(160deg, #1a3060 0%, #2a4a90 45%, #3a5caa 100%);
        padding: 2.5rem 2rem;
        position: relative;
        overflow: hidden;
    }

    .credit-brand-panel::before {
        content: '';
        position: absolute;
        top: -25%;
        right: -25%;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: rgba(240, 202, 48, 0.06);
    }

    .credit-brand-panel::after {
        content: '';
        position: absolute;
        bottom: -15%;
        left: -20%;
        width: 250px;
        height: 250px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.03);
    }

    .credit-brand-content {
        position: relative;
        z-index: 1;
        max-width: 320px;
    }

    .credit-brand-logo {
        height: 56px;
        margin-bottom: 2rem;
        filter: brightness(0) invert(1);
        drop-shadow: 0 0 20px rgba(240, 202, 48, 0.2);
    }

    .credit-brand-title {
        color: var(--secondary-color);
        font-family: 'Rubik', sans-serif;
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

    .credit-brand-text {
        color: rgba(255, 255, 255, 0.75);
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    .credit-brand-features {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .credit-brand-feature {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.82rem;
        font-weight: 500;
    }

    .credit-brand-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(240, 202, 48, 0.15);
        color: var(--secondary-color);
        flex-shrink: 0;
    }

    .credit-brand-icon svg {
        width: 16px;
        height: 16px;
    }

    .credit-form-container {
        flex: 1;
        max-width: none;
        margin: 0;
        border: none;
        border-radius: 0;
        background: var(--white);
    }

    .credit-form-wrapper {
        max-width: 620px;
        padding: 2.5rem 2.5rem;
    }

    .credit-form-header {
        margin-bottom: 1.75rem;
        text-align: left;
    }

    .credit-form-title {
        font-size: 1.85rem;
    }

    .credit-form-subtitle {
        font-size: 0.95rem;
    }

    .credit-form-group {
        margin-bottom: 1.15rem;
    }

    .credit-form-label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .credit-form-input {
        padding: 0.8rem 1rem;
    }

    .credit-form-select {
        padding: 0.8rem 2.5rem 0.8rem 1rem;
    }

    .credit-form-helper {
        font-size: 0.75rem;
    }

    .credit-form-button {
        font-size: 1.15rem;
        margin-top: 1.75rem;
        padding: 1rem 1.5rem;
    }

    .credit-form-button:hover {
        transform: translateY(-3px);
    }

    .credit-form-required-note {
        margin-top: 1rem;
        font-size: 0.75rem;
        text-align: left;
    }

    .telefono-prefix {
        padding: 0.8rem 0.5rem 0.8rem 1rem;
    }

    .telefono-field {
        padding: 0.8rem 1rem 0.8rem 0.4rem;
    }
    /* === FIN FORM CREDITO ==== */

    /* === FORM CREDITO 1200px+ ==== */
    @media (min-width: 1200px) {
        .credit-brand-panel {
            flex: 0 0 35%;
            padding: 3rem;
        }

        .credit-brand-content {
            max-width: 360px;
        }

        .credit-brand-logo {
            height: 64px;
            margin-bottom: 2.5rem;
        }

        .credit-brand-title {
            font-size: 1.85rem;
        }

        .credit-brand-text {
            font-size: 0.95rem;
        }

        .credit-brand-feature {
            font-size: 0.88rem;
        }

        .credit-brand-icon {
            width: 36px;
            height: 36px;
        }

        .credit-brand-icon svg {
            width: 18px;
            height: 18px;
        }

        .credit-form-wrapper {
            max-width: 740px;
            padding: 3rem;
        }

        .credit-form-title {
            font-size: 2rem;
        }
    }

    /* === FORM CREDITO 1440px+ ==== */
    @media (min-width: 1440px) {
        .credit-brand-panel {
            flex: 0 0 33%;
            padding: 3.5rem;
        }

        .credit-brand-content {
            max-width: 380px;
        }

        .credit-brand-logo {
            height: 72px;
            margin-bottom: 3rem;
        }

        .credit-brand-title {
            font-size: 2rem;
        }

        .credit-brand-text {
            font-size: 1rem;
            margin-bottom: 2.5rem;
        }

        .credit-brand-feature {
            font-size: 0.92rem;
            gap: 0.85rem;
        }

        .credit-brand-features {
            gap: 1rem;
        }

        .credit-brand-icon {
            width: 40px;
            height: 40px;
        }

        .credit-brand-icon svg {
            width: 20px;
            height: 20px;
        }

        .credit-form-wrapper {
            max-width: 820px;
            padding: 3.5rem;
        }

        .credit-form-title {
            font-size: 2.1rem;
        }

        .credit-form-subtitle {
            font-size: 1rem;
        }

        .credit-form-group {
            margin-bottom: 1.25rem;
        }

        .credit-form-label {
            font-size: 0.95rem;
        }

        .credit-form-input {
            padding: 0.85rem 1.1rem;
        }

        .credit-form-select {
            padding: 0.85rem 2.5rem 0.85rem 1.1rem;
        }

        .credit-form-button {
            font-size: 1.2rem;
            margin-top: 2rem;
            padding: 1.1rem 2rem;
        }
    }
}

/* ========================================
   TELÉFONO — Prefijo fijo 09 + input
   ======================================== */

.telefono-unified {
    display: flex;
    align-items: stretch;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.telefono-unified:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 74, 144, 0.1);
}

.telefono-prefix {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.4rem 0.6rem 0.85rem;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: #e8f0fe;
    user-select: none;
    flex-shrink: 0;
}

.telefono-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.6rem 0.85rem 0.6rem 0.4rem;
    font-family: 'OpenSans', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--white);
    -webkit-appearance: none;
}

/* ========================================
   OTP MODAL — Estilos para verificación
   ======================================== */

.otp-input {
    display: block;
    width: 180px;
    margin: 0 auto 0.75rem;
    padding: 0.6rem 0.75rem;
    font-family: 'Rubik', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.6rem;
    text-align: center;
    color: var(--primary-color);
    background-color: #e8f0fe;
    border: 2px solid var(--primary-color);
    border-radius: 0.75rem;
    outline: none;
    -webkit-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(240, 202, 48, 0.3);
}

.otp-input::placeholder {
    color: var(--gray-400);
    letter-spacing: 0.5rem;
}

.otp-countdown {
    font-family: 'OpenSans', sans-serif;
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 0.5rem;
}

.otp-resend-link {
    display: block;
    text-align: center;
    font-family: 'OpenSans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.otp-resend-link:hover {
    color: var(--secondary-color);
}

.otp-resend-disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    text-decoration: none;
    pointer-events: none;
}

.otp-masked-phone {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.05rem;
}

.otp-change-data {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.otp-change-data a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.otp-change-data a:hover {
    color: var(--secondary-color);
}

/* ========================================
   FIN OTP MODAL
   ======================================== */

/* === Botón secundario resultado === */

.credit-alert-btn-secondary {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    min-height: 44px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    font-size: 0.82rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.credit-alert-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.credit-alert-btn-secondary:active {
    transform: scale(0.97);
}
