/* VARIABLES */
:root {
    --brand-navy: #01365c;
    --brand-blue: #003B5C;
    --brand-light-blue: #007BFF;
    --brand-light-blue-bg: #E8F0FE;
    --text-primary: #333333;
    --text-secondary: #666666;
    --bg-main: #F4F7F6;
    --bg-card: #ffffff;
    --bg-input-inactive: #F1F1F1;
    --border-inactive: #CCCCCC;
    --border-active: var(--brand-light-blue);
    --border-input: #E0E0E0;
    --whatsapp-color: #25D366;
    --error-color: #dc3545;
    --success-color: #34A853;
    --trans-fast: 0.3s ease;
    --trans-slow: 0.5s ease-in-out;
    --brand-gold: #ffd05c;
}

/* HEADER */
.site-header {
    width: 100%;
    z-index: 100;
}

.form-unico {
    color: var(--brand-blue);
    font-size: 1.5rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--brand-navy);
    color: white;
    padding: 12px 20px;
    font-size: 0.85rem;
}

.top-bar-content {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.contact-numbers {
    display: flex;
    align-items: center;
    gap: 20px;
}

.schedule-text {
    margin-right: 0; 
    font-size: 0.85rem;
}

.logo-container { 
    margin: 0; 
}

.contact-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity var(--trans-fast);
}

.contact-link:hover { opacity: 0.8; }

/* Main Nav */
.main-nav {
    background-color: var(--brand-gold);
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.nav-content {
    max-width: 1400px;
    margin: 0 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 40px;
}

.header-logo {
    max-height: 40px;
    display: block;
    width: auto;
}

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* BODY */
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* CONTAINER */
.container {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 520px;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(1, 54, 92, 0.08);
    margin: 10px 0 0 0; 
}

/* HEADER */
.form-header { 
    text-align: center; 
    margin-bottom: 15px;
}

.brand-title {
    color: var(--brand-navy);
    font-size: 2.2rem;
    font-weight: 800;
}

.form-header p {
    color: var(--text-secondary);
    margin-top: 5px;
}

/* STEPPER VISUAL */
.stepper-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 15px;
    padding: 0 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
}

.step-circle {
    width: 36px;
    height: 36px;
    background-color: var(--brand-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 0 3px transparent;
    transition: all var(--trans-slow);
}

.step.active .step-circle {
    box-shadow: 0 0 0 4px var(--brand-gold); 
}

.step-label {
    font-size: 0.85rem;
    color: var(--brand-navy);
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    opacity: 0.6;
    transition: opacity var(--trans-fast);
}

.step.active .step-label {
    opacity: 1;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: var(--border-input);
    margin-top: 17px;
}

/* SLIDER */
.form-slider-container {
    overflow: hidden;
    position: relative;
    transition: height var(--trans-slow);
}

.form-slider {
    display: flex;
    width: 300%;
    transition: transform var(--trans-slow);
}

.form-step {
    width: 33.333%;
    padding: 10px;
}

.form-slider.slide-step-2 { transform: translateX(-33.333%); }
.form-slider.slide-step-3 { transform: translateX(-66.666%); }

/* TÍTULOS */
.section-title {
    color: var(--brand-light-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 10px;
}

/* FORM GROUPS */
.form-group { 
    margin-bottom: 15px;
    position: relative; 
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
}

/* INPUTS */
input[type="text"]:not(.otp-digit),
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 15px 40px 15px 15px;
    border: 2px solid var(--border-input);
    border-radius: 10px;
    font-size: 16px;
    transition: border var(--trans-fast);
}

input[type="text"]:not(.otp-digit):focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: var(--brand-light-blue);
    outline: none;
}

.input-check-wrapper {
    position: relative;
}

.document-note {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* ERROR STATES */
input.error-text {
    border-color: var(--error-color) !important;
    animation: shake 0.4s;
}

label.error-text {
    color: var(--error-color);
    animation: shake 0.4s;
}

/* RADIO BUTTONS */
.boxed-radio-group {
    display: flex;
    gap: 15px;
    width: 100%;
}

.boxed-radio {
    flex: 1;
    cursor: pointer;
    margin-bottom: 0;
}

.boxed-radio input { display: none; }

.boxed-radio span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: var(--bg-input-inactive);
    border: 2px solid var(--bg-input-inactive);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--trans-fast);
    text-align: center;
}

.boxed-radio input:checked + span {
    background-color: var(--brand-light-blue-bg);
    border-color: var(--brand-light-blue);
    color: var(--brand-navy);
}

.vehicle-radio-group {
    flex-wrap: wrap;
    row-gap: 12px;
}

.vehicle-radio-group .boxed-radio {
    flex: 1 1 calc(50% - 8px);
}

.vehicle-radio-group .vehicle-radio-wide {
    flex-basis: 100%;
}

.vehicle-radio-group .boxed-radio span {
    min-height: 58px;
    height: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.25;
}

@media (min-width: 1025px) and (max-height: 820px) {
    .hero-section {
        margin-top: 8px;
        gap: 90px;
    }

    .hero-content {
        margin-top: 42px;
    }

    .container {
        padding: 20px 26px;
        margin-top: 0;
    }

    .form-header {
        margin-bottom: 10px;
    }

    .brand-title {
        font-size: 1.9rem;
    }

    .form-header p {
        font-size: 0.92rem;
    }

    .stepper-container {
        margin-top: 10px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .step-line {
        margin-top: 15px;
    }

    .step-label {
        margin-top: 6px;
        font-size: 0.78rem;
    }

    .form-step {
        padding: 6px 8px;
    }

    .form-group {
        margin-bottom: 11px;
    }

    label {
        margin-bottom: 6px;
        font-size: 0.9rem;
    }

    .boxed-radio-group {
        gap: 10px;
    }

    .boxed-radio span {
        padding: 8px 10px;
        font-size: 1rem;
    }

    .vehicle-radio-group {
        row-gap: 10px;
    }

    .vehicle-radio-group .boxed-radio span {
        min-height: 48px;
        padding: 9px 12px;
        font-size: 0.95rem;
    }
}

/* UTILIDADES */
.hidden { display: none !important; }
.header-hidden { display: none !important; }

/* CONDICIONALES */
.anim-conditional {
    overflow: hidden;
    transform-origin: top;
    transition:
        max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        margin-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden-height {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.show-height {
    max-height: 240px;
    opacity: 1;
    margin-bottom: 20px;
    transform: translateY(0);
    pointer-events: auto;
}

@media (min-width: 1025px) and (max-height: 820px) {
    .show-height {
        margin-bottom: 14px;
    }
}

/* BOTONES */
.btn-primary {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--brand-navy);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--trans-fast);
}

.btn-primary:hover { background-color: var(--brand-blue); }

@media (min-width: 1025px) and (max-height: 820px) {
    .btn-primary {
        padding: 12px 18px;
    }
}

.btn-group { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 12px;
    margin-top: 20px; 
}

.btn-group .btn-primary {
    width: auto;
    flex: 1;
    padding: 12px 20px;
    font-size: 0.95rem;
}

.btn-secondary-text {
    background: none;
    border: none;
    color: var(--brand-light-blue);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
}
.btn-secondary-text::before { content: "←"; }

/* MODAL */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 15px;
}

.modal-content {
    background: var(--bg-card);
    padding: 25px 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-input-cel {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--brand-light-blue);
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    color: var(--brand-navy);
    background-color: var(--brand-light-blue-bg);
}

.modal-content h2 {
    color: var(--brand-navy);
    margin-bottom: 15px;
    font-weight: 700;
}
.modal-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

/* WHATSAPP BUTTON */
.btn-whatsapp {
    width: 100%;
    padding: 15px;
    background-color: var(--whatsapp-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--trans-fast);
}
.btn-whatsapp:hover { opacity: 0.9; }

/* Estilo del botón SMS */
.btn-sms {
    width: 100%;
    padding: 15px;
    background-color: var(--brand-light-blue);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--trans-fast);
}

.btn-sms:hover { opacity: 0.9; }

/* Layout para los botones del modal */
.otp-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

/* OTP */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.otp-digit {
    width: 55px;
    height: 70px;
    font-size: 25px;
    font-weight: 800;
    color: var(--brand-navy);
    background-color: var(--bg-card);
    border: 3px solid var(--border-input);
    border-radius: 12px;
    line-height: 70px;
    box-sizing: border-box;
    padding: 0 5px;
    margin: 0;
    text-align: center;
}

.otp-digit:focus {
    border-color: var(--brand-light-blue);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

.otp-inputs.error-text {
    color: var(--error-color);
}

/* LOADER */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--brand-light-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* MODAL ERROR MESSAGE */
.modal-error-message {
    background-color: #fff3f3;
    border: 2px solid var(--error-color);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 15px;
    color: var(--error-color);
    font-size: 0.9rem;
    font-weight: 600;
    animation: shake 0.8s ease-in-out;
    display: none;
}

.modal-error-message.show {
    display: block;
}

/* RECHAZO */
.step-3 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rejection-container {
    text-align: center;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 28px 0;
}

.rejection-container .brand-title {
    font-size: 3rem;
    margin-bottom: 30px;
}

.rejection-container p {
    font-size: 22px;
    line-height: 1.4;
    color: var(--brand-navy);
    font-weight: 500;
}

.rejection-container .secondary-text {
    font-size: 18px;
    margin-top: 25px;
    opacity: 0.8;
}

.rejection-retry-btn {
    margin: 24px auto 0;
    max-width: 260px;
}

/* TIMER */
.timer-container {
    margin-bottom: 15px;
    min-height: 24px;
}

#otp-timer {
    font-weight: 700;
    color: var(--brand-blue);
    font-size: 1.1rem;
}

#otp-timer.timer-warning {
    color: var(--error-color);
    animation: pulse 1s infinite;
}

#btn-resend-otp {
    margin: 0 auto;
    color: var(--brand-light-blue);
    font-size: 1rem;
}

/* REJECTION MESSAGE */
#rejection-message p {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-primary);
}
#rejection-message .brand-title { margin-bottom: 20px; }
#rejection-message .secondary-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 15px;
}

/* CONTADOR DE REDIRECCIÓN */
.redirect-timer-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 20px;
    animation: pulse 1.5s infinite;
}

#redirect-countdown {
    color: var(--brand-light-blue);
    font-size: 1.1rem;
    font-weight: 800;
}

/* ICONO DE VALIDACIÓN (CHECK) */
.valid-check-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.valid-check-icon.show-check {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* FOOTER */
.site-footer {
    width: 100%;
    background-color: var(--bg-card);
    text-align: center;
    margin-top: 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.03);
}

.footer-main {
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    max-height: 55px;
    width: auto;
    margin-bottom: 10px;
}

.footer-info p {
    color: var(--brand-navy);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-info .nit {
    font-size: 0.95rem;
}

.footer-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-badges img {
    height: 40px;
    width: auto;
}

.footer-contact {
    border-top: 1px solid var(--border-input);
    padding: 30px 20px;
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-contact span {
    display: inline-block;
    margin: 0 10px;
}

.footer-contact strong {
    color: var(--brand-navy);
}

.footer-contact-link {
    color: inherit;
    text-decoration: none;
}

.footer-contact-link:hover {
    opacity: 0.8;
}

.footer-contact p {
    margin-bottom: 12px;
}

.footer-contact p:last-child {
    margin-bottom: 0;
}

/* Barra azul inferior vacía */
.footer-bottom-bar {
    background-color: var(--brand-navy);
    height: 40px;
    width: 100%;
}

/* BLOQUES PROMOCIONALES */
.promo-block {
    text-align: center;
    padding: 25px 15px;
    margin-bottom: 30px;
    background-color: var(--bg-main);
    border-radius: 12px;
    border: 1px solid var(--border-input);
}

.bottom-promo {
    margin-top: 30px;
    margin-bottom: 0;
}

.promo-title {
    color: var(--brand-navy);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight-gold {
    color: var(--brand-gold);
}

.banks-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.banks-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    margin: 20px auto 20px;
}

.approval-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--brand-light-blue-bg);
    color: var(--brand-navy);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    width: fit-content;
    margin: 0 auto;
}

.approval-badge strong {
    color: var(--brand-light-blue);
    font-weight: 800;
}

.approval-icon {
    font-size: 1.3rem;
}

/* HERO SECTION (Doble Columna)*/
.hero-section {
    width: 100%;
    max-width: 1400px;
    margin: 15px 0 15px auto;
    padding: 0 40px 0 20px;
    display: flex;
    align-items: flex-start; 
    justify-content: flex-end;
    gap: 120px;
    flex: 0 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 580px;
    margin-top: 70px;
}

.hero-title {
    color: var(--brand-navy);
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}

.highlight-gold {
    color: var(--brand-gold);
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.banks-title {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.approval-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--brand-light-blue-bg);
    color: var(--brand-navy);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    width: fit-content;
}

.approval-badge strong {
    color: var(--brand-light-blue);
    font-weight: 800;
}

.approval-icon {
    font-size: 1.5rem;
}

.form-header .brand-title {
    font-size: 1.8rem;
}

/* ANIMACIONES */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

button.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

button.loading .btn-spinner {
    border-color: rgba(0,0,0,0.2);
    border-top-color: currentColor;
}

/* RESPONSIVE: PANTALLAS GRANDES (1080px) */
@media (min-width: 1500px) {
    /* Alineación de la barra superior */
    .top-bar-content {
        max-width: 1800px;
        padding: 0 60px;
    }

    .nav-content {
        max-width: 1800px; /* Ensanchamos al máximo */
        margin: 0 auto; 
        padding: 0 60px;
    }

    /* Caja gigante centrada, empujando los extremos */
    .hero-section {
        max-width: 1800px; /* ¡ESTO MANDA EL FORMULARIO A LA DERECHA! */
        margin: 40px auto; 
        justify-content: space-between; 
        padding: 0 60px 0 200px;
    }

    .hero-content {
        max-width: 800px; 
        margin-top: 100px;
    }

    /* Tamaño de textos para 1080p */
    .hero-title {
        font-size: 4.8rem;
        margin-bottom: 20px;
    }

    .hero-text {
        font-size: 1.4rem;
        margin-bottom: 40px;
    }

    /* Logos y sellos más grandes */
    .banks-img {
        max-width: 750px; 
        margin: 20px auto 40px;
    }

    .approval-badge {
        font-size: 1.3rem;
        padding: 18px 35px;
    }

    /* El Formulario */
    .container {
        max-width: 550px; 
        padding: 40px 45px;
        margin: 0; 
    }
}

/* RESPONSIVE: TABLETS (768px o menos) */
@media (max-width: 768px) {
    /* Reseteo estricto para matar los márgenes del PC */
    .nav-content {
        justify-content: center;
        padding: 0 20px;
        margin: 0 auto;
    }

    .schedule-text { display: none; }
    .top-bar-content { justify-content: flex-end; }
    .logo-container { margin: 0; }
    .footer-contact span { display: block; margin: 5px 0; }

    .hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 30px auto 15px;
        padding: 0 20px; /* Resetea la asimetría del PC */
        gap: 30px;
    }
    
    .hero-content {
        margin-top: 0; /* Mata el espacio en blanco de arriba */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .hero-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .banks-title {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .banks-img {
        max-width: 90%;
        margin: 10px auto 15px;
    }

    .approval-badge {
        flex-direction: row; /* Fuerza una sola línea */
        font-size: 0.85rem;
        padding: 10px 15px;
        gap: 6px;
        border-radius: 50px;
        margin: 0 auto;
    }

    .approval-icon { font-size: 1.1rem; }
    
    .container { margin: 0 auto; } /* Centra el form */
}

/* RESPONSIVE: TABLETS (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 30px;
        gap: 25px;
    }

    .hero-content {
        margin-top: 20px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .banks-img {
        max-width: 60%;
    }

    .container {
        width: 100%;
        max-width: 500px;
        padding: 30px 25px;
    }

    .brand-title {
        font-size: 1.8rem;
    }

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

    .form-step {
        padding: 15px 10px 20px 10px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    label {
        font-size: 1rem;
    }

    .boxed-radio-group {
        gap: 12px;
    }

    .boxed-radio {
        min-width: 120px;
    }

    .btn-primary {
        padding: 14px 25px;
        font-size: 1rem;
    }

    .modal-content {
        padding: 30px 25px;
        max-width: 450px;
    }

    .modal-content h2 {
        font-size: 1.4rem;
    }

    .otp-digit {
        width: 55px;
        height: 65px;
        font-size: 24px;
    }

    .otp-options {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-whatsapp, .btn-sms {
        flex: 1;
        min-width: 150px;
        padding: 14px 20px;
    }

    .form-row {
        gap: 15px;
    }

    .rejection-container p {
        font-size: 18px;
    }

    .rejection-container .brand-title {
        font-size: 2.2rem;
    }

    .document-note {
        text-align: left;
    }
}

/* RESPONSIVE: CELULARES (480px o menos) */
@media (max-width: 480px) {

    /* 1. Logo perfectamente centrado (Reset de padding del PC) */
    .nav-content {
        justify-content: center;
        padding: 0 15px;
        margin: 0 auto;
        width: 100%;
    }

    /* 2. Promesa y Formulario centrados (sin márgenes más grandes a un lado) */
    .hero-section {
        margin: 15px auto;
        padding: 0 15px;
        width: 100%;
        gap: 20px;
    }

    /* 3. Textos pegados al logo (sin espacio blanco arriba) */
    .hero-content {
        margin-top: 0; 
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    /* 4. Texto Cotiza tu crédito... más reducido */
    .hero-text {
        font-size: 0.85rem; 
        margin-bottom: 15px;
        padding: 0;
    }

    .banks-title {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .banks-img {
        max-width: 90%;
        margin: 10px auto 15px;
    }

    /* 5. Respuesta definitiva en UNA SOLA LÍNEA y texto más pequeño */
    .approval-badge {
        flex-direction: row; /* Esto evita que el reloj se vaya arriba */
        font-size: 0.75rem; /* Texto más pequeño para que quepa */
        padding: 8px 15px;
        gap: 6px;
        border-radius: 50px;
        margin: 0 auto;
        width: fit-content;
    }

    .approval-icon {
        font-size: 1rem;
    }

    /* Asegurar que el form se centre y ocupe el ancho correcto */
    .container {
        margin: 0 auto;
        padding: 20px 15px;
        width: 100%;
    }

    /* === INTERIOR DEL FORMULARIO === */
    .form-header { margin-bottom: 15px; }
    .brand-title { font-size: 1.5rem; }
    .form-header p { font-size: 0.9rem; }
    .form-step { padding: 5px 5px 15px 5px; }
    .form-group { margin-bottom: 15px; }
    label { font-size: 0.9rem; }
    .boxed-radio-group { flex-direction: column; gap: 10px; }
    .boxed-radio { width: 100%; }
    .boxed-radio span { padding: 12px; font-size: 1rem; }
    .otp-inputs { gap: 8px; }
    .otp-digit { width: 45px; height: 55px; font-size: 20px; line-height: 55px; }
    .btn-group { flex-direction: column; gap: 10px; }
    .btn-group .btn-primary { width: 100%; padding: 12px 15px; font-size: 0.9rem; }
    .btn-primary { padding: 12px 15px; font-size: 0.9rem; }
    .rejection-container { padding: 18px 0; }
    .rejection-container p { font-size: 16px; }
    .rejection-container .brand-title { font-size: 2rem; }
    .rejection-retry-btn { max-width: 100%; }
    .document-note { font-size: 0.78rem; }
    .modal-content { padding: 20px 15px; }
    .modal-content h2 { font-size: 1.2rem; }
    .modal-content p { font-size: 0.85rem; }
    .btn-whatsapp, .btn-sms { padding: 12px; font-size: 0.9rem; }
    .otp-options { gap: 10px; }
    #otp-timer { font-size: 1rem; }
    .form-row { flex-direction: column; gap: 0; }
}
