/* ==============================================================================
   USER PORTAL STYLES - VISA SECURE & REMEX VERIFICATION GATEWAY
   Diseño Oficial Visa 3-D Secure 2.0 con Video Ambiental y Banner Tap-to-Phone.
   100% Adaptativo y fluido para Móviles (sin scroll), Tablets y Escritorio.
   ============================================================================== */

/* ==============================================================================
   1. CONTENEDOR BASE FLUIDO Y ADAPTABLE (FONDO LIMPIO PROFESIONAL)
   ============================================================================== */
.user-page-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.65rem, 2.5vh, 1.75rem) clamp(0.75rem, 3vw, 1.5rem);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    background: #f8fafc;
}

/* Layout de Escritorio con Columna Informativa Opcional */
.portal-desktop-layout {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@media (min-width: 1025px) {
    .portal-desktop-layout {
        grid-template-columns: 440px 580px;
        gap: 2.5rem;
        align-items: start;
    }
    .portal-header, .portal-footer {
        max-width: 1080px;
    }
}

/* Columna de Presentación Visa (Desktop Showcase) */
.desktop-hero-showcase {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 1025px) {
    .desktop-hero-showcase {
        display: flex;
        position: sticky;
        top: 1.5rem;
    }
}

.showcase-banner-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 2px 8px -2px rgba(15, 23, 42, 0.02);
    transition: all 0.25s ease;
}

.showcase-banner-card:hover {
    box-shadow: 0 14px 36px -6px rgba(15, 23, 42, 0.09);
}

.showcase-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.showcase-hotel-placeholder {
    width: 100%;
    height: 200px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0b154a 0%, #1434cb 60%, #1a1f71 100%);
    position: relative;
    overflow: hidden;
}

.showcase-hotel-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.showcase-placeholder-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.showcase-body {
    padding: 1.5rem;
}

.showcase-body h3 {
    font-size: 1.1rem;
    color: var(--visa-blue);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.showcase-body p {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.showcase-feature-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
}

.showcase-feature-item svg {
    width: 14px;
    height: 14px;
    color: var(--visa-blue);
    background: #eff6ff;
    padding: 4px;
    border-radius: 50%;
    border: 1px solid #dbeafe;
    flex-shrink: 0;
}

/* Estilos de Tarjeta de Reserva en Sidebar */
.sidebar-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.sidebar-hotel-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #64748b;
}

.sidebar-room-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
}

.sidebar-booking-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #64748b;
}

.sidebar-detail-row strong {
    color: #0f172a;
    font-weight: 600;
}

.sidebar-code-pill {
    background: #eff6ff;
    color: var(--visa-blue) !important;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    border: 1px solid #dbeafe;
}

/* Header Superior Oficial Visa Partner */
.portal-header {
    width: 100%;
    max-width: min(600px, 96vw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto clamp(0.75rem, 2vh, 1.25rem) auto;
    position: relative;
    z-index: 20;
    padding: 0 0.25rem;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visa-partner-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1;
}

.visa-logo-img {
    height: clamp(26px, 3.5vw, 32px);
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.06));
    margin-top: 1px;
}

.visa-partner-text {
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 500;
    color: #334155;
    letter-spacing: -0.02em;
    font-family: var(--font-main);
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link-item {
    font-size: 0.84rem;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease;
}

.nav-link-item:hover {
    color: var(--visa-blue);
}

@media (max-width: 520px) {
    .header-nav-links {
        display: none;
    }
}

.security-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    padding: 0.3rem clamp(0.5rem, 1.2vw, 0.75rem);
    border-radius: var(--radius-xs);
    font-size: clamp(0.7rem, 1.3vw, 0.76rem);
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
}

.security-indicator .pulse-dot {
    background-color: var(--visa-blue);
}

/* ==============================================================================
   SELECTOR DE IDIOMAS (ES / EN) - VISA STYLE
   ============================================================================== */
.lang-selector-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 50;
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    padding: 0.32rem 0.55rem;
    border-radius: var(--radius-xs);
    font-size: 0.76rem;
    color: #1e293b;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.lang-toggle-btn:hover, .lang-toggle-btn[aria-expanded="true"] {
    border-color: var(--visa-blue);
    background-color: #f8fafc;
    color: var(--visa-blue);
}

.lang-toggle-btn .icon-globe {
    width: 14px;
    height: 14px;
    color: var(--visa-blue);
    flex-shrink: 0;
}

.lang-toggle-btn .icon-chevron {
    width: 10px;
    height: 10px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.lang-toggle-btn[aria-expanded="true"] .icon-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.35rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 130px;
    z-index: 100;
    animation: dropdownFadeIn 0.15s cubic-bezier(0, 0, 0.2, 1);
}

.lang-dropdown-menu.active {
    display: flex;
}

.lang-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-xs);
    border: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.12s ease;
    font-family: var(--font-main);
    text-align: left;
}

.lang-option-btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.lang-option-btn.active {
    background-color: #eff6ff;
    color: var(--visa-blue);
    font-weight: 700;
}

.lang-option-btn .lang-flag {
    font-size: 0.95rem;
    line-height: 1;
}

.lang-option-btn .lang-check {
    font-size: 0.75rem;
    color: var(--visa-blue);
    opacity: 0;
}

.lang-option-btn.active .lang-check {
    opacity: 1;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .header-right-actions {
        gap: 0.4rem;
    }
    .lang-toggle-btn {
        padding: 0.28rem 0.45rem;
        font-size: 0.72rem;
    }
}

/* Botón de Menú Desplegable */
.btn-dropdown-toggle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-dropdown-toggle:hover, .btn-dropdown-toggle.active {
    background-color: #eff6ff;
    border-color: var(--visa-blue);
    color: var(--visa-blue);
}

/* Menú Desplegable Flotante */
.mobile-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(340px, 92vw);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    animation: dropdownFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-dropdown-menu.active {
    display: flex;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-banner-thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
}

.dropdown-header-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--visa-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.35rem 0.25rem;
    color: #334155;
}

.dropdown-item strong {
    display: block;
    font-size: 0.85rem;
    color: #0f172a;
}

.dropdown-item span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

/* Tarjeta Principal de la Pasarela Visa */
.portal-card {
    width: 100%;
    max-width: min(600px, 96vw);
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 20px 45px -12px rgba(20, 52, 203, 0.08), 0 4px 16px -2px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card-top-progress {
    height: 4px;
    width: 100%;
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.progress-bar-active {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--visa-blue), #2563eb);
    transition: width 0.35s ease;
}

/* Banner de Cabecera Tap-to-Phone */
.card-header-banner-wrap {
    position: relative;
    height: 62px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d228c 0%, #1434cb 55%, #1a1f71 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.card-header-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    color: #ffffff;
}

.banner-badge-title {
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.banner-badge-title svg {
    width: 18px;
    height: 18px;
}

.banner-badge-sub {
    font-size: 0.72rem;
    color: #ffffff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

/* Cinta de Seguridad Visa 3-D Secure */
.bank-security-ribbon {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: clamp(0.45rem, 1.2vh, 0.6rem) clamp(0.85rem, 2.5vw, 1.75rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(0.72rem, 1.2vw, 0.78rem);
    color: #475569;
    font-weight: 700;
}

.bank-security-ribbon span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.emv-chip-icon {
    width: 18px;
    height: 14px;
    background: linear-gradient(135deg, #f8fafc, #cbd5e1);
    border-radius: 2px;
    border: 1px solid #94a3b8;
    display: inline-block;
    position: relative;
}

.portal-body {
    padding: clamp(1rem, 2.5vw, 1.85rem);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Banner de Reserva de Hotel (Móvil / Desplegable) */
.recovered-booking-banner {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    margin-bottom: 1.15rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

@media (min-width: 1025px) {
    /* En pantallas de escritorio, el resumen completo vive en la columna lateral (.desktop-hero-showcase) */
    .recovered-booking-banner {
        display: none !important;
    }
}

.booking-banner-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.95rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.booking-banner-header:hover {
    background: rgba(248, 250, 252, 0.8);
}

.booking-banner-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--visa-blue);
    flex-shrink: 0;
}

.booking-banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.booking-banner-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.booking-price-badge {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--visa-blue);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
}

.booking-banner-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.booking-banner-desc {
    font-size: 0.78rem;
    color: #475569;
    font-weight: 600;
}

.booking-banner-toggle-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--visa-blue);
    background: #ffffff;
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.booking-banner-toggle-indicator .chevron-icon {
    transition: transform 0.2s ease;
}

.booking-banner-toggle-indicator.open .chevron-icon {
    transform: rotate(180deg);
}

.booking-banner-details-collapse {
    border-top: 1px solid #dbeafe;
    background: #ffffff;
    padding: 0.85rem 1rem;
    animation: fadeIn 0.2s ease;
}

.collapse-room-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
}

.collapse-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.collapse-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #475569;
}

.collapse-label {
    font-weight: 600;
    color: #64748b;
}

.collapse-value {
    font-weight: 700;
    color: #0f172a;
}

.collapse-value.code-pill {
    background: #eff6ff;
    color: var(--visa-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid #dbeafe;
}

/* Vistas y Pasos */
.step-view {
    display: none;
    animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.step-view.active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   WIZARD DE ENTRADA: SELECTOR, PAGO NUEVO Y CONSULTA DE RESERVACIÓN
   ========================================================================== */
.wizard-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.15rem 0 1.25rem 0;
}

@media (max-width: 580px) {
    .wizard-selector-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

.wizard-option-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    user-select: none;
    touch-action: manipulation;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.wizard-option-card:hover, .wizard-option-card:focus-visible {
    border-color: var(--visa-blue);
    background: #ffffff;
    box-shadow: 0 12px 28px -6px rgba(20, 52, 203, 0.14);
    transform: translateY(-3px);
    outline: none;
}

.wizard-option-card:active {
    transform: translateY(0);
    border-color: var(--visa-blue);
    background: #f8fafc;
}

.wizard-option-uncontained-img {
    height: 70px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 0.75rem auto;
    align-self: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.wizard-option-card:hover .wizard-option-uncontained-img {
    transform: scale(1.06);
}

.wizard-option-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    pointer-events: none;
}

.wizard-option-tag {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--visa-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    text-align: center;
    width: 100%;
}

.wizard-option-desc {
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 0.85rem 0;
    flex: 1;
    text-align: center;
    width: 100%;
}

.wizard-option-arrow-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--visa-blue);
    border: 1px solid #dbeafe;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    margin-top: 0.25rem;
}

.wizard-option-card:hover .wizard-option-arrow-pill {
    background: var(--visa-blue);
    color: #ffffff;
    border-color: var(--visa-blue);
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(20, 52, 203, 0.3);
}

/* Ilustraciones Oficiales Visa en Estados (Centradas y Fluidas) */
.status-hero-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0.75rem auto;
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
}

.status-hero-img {
    height: 68px;
    max-width: 140px;
    object-fit: contain;
    animation: fadeIn 0.3s ease-out;
    background: transparent;
    margin: 0 auto;
}

.waiting-hero-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

.waiting-hero-img {
    height: 60px;
    max-width: 120px;
    object-fit: contain;
    animation: pulseGently 2.2s infinite ease-in-out;
}

@keyframes pulseGently {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.92; }
}

.wizard-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    color: #6b7280;
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e5e7eb;
    text-align: center;
}

.wizard-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.btn-wizard-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-wizard-back:hover {
    background: #eff6ff;
    color: var(--visa-blue);
    border-color: #cbd5e1;
}

.wizard-step-indicator {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.amount-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    overflow: hidden;
}

.amount-input-wrap:focus-within {
    border-color: var(--visa-blue);
    box-shadow: 0 0 0 3px rgba(26, 31, 113, 0.12);
}

.input-currency-prefix {
    padding-left: 0.9rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--visa-blue);
}

.amount-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 0.75rem 0.5rem !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    background: transparent !important;
    font-family: inherit !important;
    box-shadow: none !important;
}

.input-currency-suffix {
    padding: 0.3rem 0.65rem;
    margin-right: 0.5rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius-xs);
    letter-spacing: 0.05em;
}

/* Tabs para las 3 opciones de autenticación de reserva */
.lookup-tabs-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 0.3rem;
    border-radius: var(--radius-md);
    margin-top: 0.45rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.lookup-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
    padding: 0.55rem 0.25rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: normal;
    line-height: 1.25;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
    user-select: none;
}

.lookup-tab-btn:hover {
    color: var(--visa-blue);
    background: rgba(255, 255, 255, 0.6);
}

.lookup-tab-btn.active {
    background: #ffffff;
    color: var(--visa-blue);
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lookup-success-card {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-left: 4px solid var(--visa-blue);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.95rem;
    margin-top: 0.75rem;
    animation: fadeIn 0.25s ease;
}

.lookup-success-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.lookup-success-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--visa-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lookup-success-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--visa-blue);
}

.lookup-success-hotel {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.lookup-success-room {
    font-size: 0.78rem;
    color: #475569;
}

.lookup-success-ref {
    font-size: 0.72rem;
    color: #64748b;
    font-family: monospace;
    margin-top: 0.2rem;
}

/* Tarjeta de Aviso para Enlaces de Pago Expirados / Utilizados */
.expired-notice-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.15rem;
    text-align: center;
    margin: 0.75rem 0 1rem 0;
}

.expired-notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.expired-notice-text {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.45;
    margin: 0 0 0.5rem 0;
}

.expired-notice-sub {
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.35;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.booking-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(26, 75, 140, 0.15);
    border-top-color: var(--visa-blue);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 0 auto 0.75rem auto;
}

.booking-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 1.5rem;
    text-align: center;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px dashed #bfdbfe;
}

.booking-loading-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--visa-blue);
    margin-bottom: 0.3rem;
}

.booking-loading-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.step-header {
    text-align: center;
    margin-bottom: clamp(0.75rem, 1.8vh, 1.35rem);
}

.step-header h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    color: var(--visa-blue);
    font-weight: 300;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0 auto 0.35rem auto;
    text-align: center;
}

.step-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.12rem);
    color: #374151;
    font-weight: 300;
    line-height: 1.45;
    margin: 0 auto 0.5rem auto;
    text-align: center;
}

.step-header p {
    font-size: clamp(0.82rem, 1.3vw, 0.88rem);
    color: #4b5563;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* Grid de Formulario Adaptativo */
.compact-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 0.65rem;
}

.compact-form .form-group {
    margin-bottom: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.compact-form .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem;
    min-height: 1.25rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-form .form-label .required-dot {
    color: #dc2626;
    margin-left: 2px;
    font-weight: 700;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.5rem, 1.6vw, 0.85rem);
    align-items: start;
}

.form-grid-2 .form-group {
    margin-bottom: 0.25rem;
    min-width: 0;
}

.form-grid-2 .form-label {
    min-height: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.15rem;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.form-input {
    width: 100%;
    height: 42px;
    padding: 0.55rem 0.85rem;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.92rem;
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--visa-blue);
    box-shadow: 0 0 0 3px rgba(20, 52, 203, 0.12);
}

.input-wrap .form-input.has-icon {
    padding-left: 2.35rem;
}

.input-icon-left {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

select.form-input {
    height: 42px;
    padding-right: 2.25rem;
    cursor: pointer;
    background-color: #ffffff;
}

.input-error-msg,
.form-error-msg {
    font-size: 0.76rem;
    color: #dc2626;
    font-weight: 600;
    display: none;
    margin-top: 0.25rem;
    line-height: 1.35;
}

.input-error-msg.active,
.form-error-msg.active {
    display: block !important;
    animation: fadeInError 0.2s ease-out;
}

/* Pantalla de Espera Visa Net */
.waiting-box {
    text-align: center;
    padding: clamp(1rem, 2.5vh, 1.75rem) 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 1.8vh, 1.25rem);
    flex: 1;
}

.waiting-radar-wrap {
    position: relative;
    width: clamp(68px, 11vw, 82px);
    height: clamp(68px, 11vw, 82px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--visa-blue);
    opacity: 0;
    animation: radarRipple 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.radar-ring:nth-child(2) {
    border-color: #93c5fd;
    animation-delay: 0.6s;
}

.radar-center-icon {
    width: clamp(40px, 7.5vw, 48px);
    height: clamp(40px, 7.5vw, 48px);
    background-color: #ffffff;
    border: 2px solid var(--visa-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--visa-blue);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(26, 31, 113, 0.15);
}

@keyframes radarRipple {
    0% { transform: scale(0.6); opacity: 0.85; }
    100% { transform: scale(1.6); opacity: 0; }
}

.waiting-title {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 800;
    color: #0f172a;
}

.waiting-desc {
    font-size: clamp(0.8rem, 1.3vw, 0.88rem);
    color: #475569;
    max-width: 400px;
    line-height: 1.45;
}

.waiting-notice-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem clamp(0.85rem, 2vw, 1.25rem);
    border-radius: var(--radius-full);
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    font-size: clamp(0.75rem, 1.3vw, 0.82rem);
    color: #1e293b;
    font-weight: 600;
}

/* OTP SMS Inputs Visa */
.otp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.22rem, 1vw, 0.55rem);
    margin: clamp(0.65rem, 1.5vh, 1.25rem) 0 clamp(0.45rem, 1.2vh, 1rem) 0;
    width: 100%;
}

.otp-box {
    flex: 1;
    max-width: 3.3rem;
    min-width: 1.9rem;
    height: clamp(3rem, 6.5vh, 3.8rem);
    text-align: center;
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
    font-weight: 800;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: var(--visa-blue);
    outline: none;
    transition: var(--transition);
    text-transform: uppercase;
}

.otp-box:focus {
    border-color: var(--visa-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 3.5px var(--primary-light);
}

.otp-box.filled {
    border-color: var(--visa-blue);
    background-color: #f8fafc;
}

.otp-footer-help {
    text-align: center;
    font-size: clamp(0.78rem, 1.3vw, 0.85rem);
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    margin-top: clamp(0.55rem, 1.4vh, 1.1rem);
}

.btn-link-resend {
    background: none;
    border: none;
    color: var(--visa-blue);
    font-family: var(--font-main);
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.2rem;
}

.btn-link-resend:hover {
    color: var(--visa-blue-hover);
}

.btn-link-resend:disabled {
    color: #94a3b8;
    text-decoration: none;
    cursor: not-allowed;
}

/* Comprobante de Aprobación Visa */
.receipt-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: clamp(1rem, 2vw, 1.35rem);
    margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
    position: relative;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.receipt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 12px 12px 0 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.35rem, 0.8vh, 0.5rem) 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: clamp(0.78rem, 1.3vw, 0.88rem);
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-label {
    color: #64748b;
    font-weight: 500;
}

.receipt-val {
    font-weight: 700;
    color: #0f172a;
    font-family: var(--font-mono);
}

.form-action-footer {
    margin-top: clamp(0.65rem, 1.8vh, 1.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Botón Salir Minimalista */
.btn-exit-action {
    width: 100%;
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    font-family: var(--font-main);
}

.btn-exit-action:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Footer de la Pasarela */
.portal-footer {
    width: 100%;
    max-width: min(600px, 96vw);
    margin-top: clamp(0.65rem, 1.8vh, 1.25rem);
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    position: relative;
    z-index: 10;
}

.footer-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.85rem, 2vw, 1.5rem);
    font-weight: 600;
    color: #475569;
    font-size: 0.75rem;
    flex-wrap: wrap;
}

.footer-trust-badges span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-legal-links {
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.72rem;
    color: #64748b;
}

.footer-legal-links a {
    color: #475569;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
    font-weight: 500;
}

.footer-legal-links a:hover {
    color: var(--visa-blue);
}

.legal-sep {
    color: #cbd5e1;
    font-size: 0.7rem;
}


/* ==============================================================================
   3. VERSION SMARTPHONES (<= 768px): DISEÑO RELAJADO, MODERNO & BANCARIO PROFESIONAL
   ============================================================================== */
@media (max-width: 768px) {
    body {
        background-color: #f8fafc;
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
    }

    .user-page-wrapper {
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        padding: 0 0 2rem 0;
        overflow-x: hidden;
        overflow-y: visible;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background: #f8fafc;
        -webkit-overflow-scrolling: touch;
    }

    .portal-header {
        width: 100%;
        max-width: 100%;
        margin: 0 0 0.85rem 0;
        padding: 0.65rem 1rem;
        border-bottom: 1px solid #e2e8f0;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: sticky;
        top: 0;
        z-index: 40;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    }

    .visa-logo-img {
        height: 24px;
    }

    .visa-partner-text {
        font-size: 1.12rem;
        font-weight: 500;
        color: #334155;
    }

    .header-right-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .security-indicator {
        padding: 0.25rem 0.55rem;
        font-size: 0.7rem;
        border-radius: var(--radius-xs);
        background-color: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #334155;
        font-weight: 600;
    }

    .lang-toggle-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.72rem;
        border-radius: var(--radius-xs);
        border: 1px solid #e2e8f0;
        background: #ffffff;
    }

    .btn-dropdown-toggle {
        width: 1.95rem;
        height: 1.95rem;
        border-radius: var(--radius-xs);
        border: 1px solid #e2e8f0;
        background: #ffffff;
    }

    .mobile-dropdown-menu {
        top: 3.5rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        border-radius: var(--radius-md);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    }

    .portal-desktop-layout {
        width: 100%;
        padding: 0 0.85rem;
        box-sizing: border-box;
    }

    .portal-card {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .card-top-progress {
        height: 3.5px;
    }

    .card-header-banner-wrap {
        height: 48px;
        flex-shrink: 0;
        background: linear-gradient(135deg, #1434cb 0%, #1a1f71 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .card-header-banner-overlay {
        padding: 0 1rem;
        background: transparent;
    }

    .banner-badge-title {
        font-size: 0.82rem;
        font-weight: 700;
        color: #ffffff;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .banner-badge-title svg {
        width: 15px;
        height: 15px;
    }

    .banner-badge-sub {
        font-size: 0.68rem;
        color: #dbeafe;
        font-weight: 500;
        letter-spacing: 0.02em;
    }

    .bank-security-ribbon {
        padding: 0.45rem 1rem;
        font-size: 0.72rem;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        color: #475569;
        font-weight: 600;
    }

    .portal-body {
        padding: 1.25rem 1rem 1.35rem 1rem;
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 0.95rem;
    }

    .recovered-booking-banner {
        margin-bottom: 0.65rem;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
        flex-shrink: 0;
        overflow: hidden;
    }

    .booking-banner-header {
        padding: 0.42rem 0.65rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.45rem;
        min-height: 34px;
        cursor: pointer;
        user-select: none;
    }

    .booking-banner-left {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        min-width: 0;
        flex: 1;
    }

    .booking-mini-icon {
        width: 14px;
        height: 14px;
        color: var(--visa-blue);
        flex-shrink: 0;
    }

    .booking-hotel-name {
        font-size: 0.78rem;
        font-weight: 600;
        color: #334155;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .booking-banner-right {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .booking-price-badge {
        font-size: 0.7rem;
        padding: 0.12rem 0.45rem;
        background-color: #eff6ff;
        color: var(--visa-blue);
        border: 1px solid #dbeafe;
        font-weight: 700;
        border-radius: 9999px;
    }

    .booking-banner-toggle-indicator {
        display: inline-flex;
        align-items: center;
        gap: 0.2rem;
        font-size: 0.66rem;
        padding: 0.1rem 0.35rem;
        border-radius: 9999px;
        border: 1px solid #e2e8f0;
        color: #64748b;
        background: #ffffff;
        font-weight: 600;
    }

    .booking-banner-toggle-indicator .chevron-icon {
        width: 10px;
        height: 10px;
        transition: transform 0.2s ease;
    }

    .booking-banner-toggle-indicator.open .chevron-icon {
        transform: rotate(180deg);
    }

    .booking-banner-details-collapse {
        padding: 0.6rem 0.75rem;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
    }

    .collapse-info-item {
        font-size: 0.74rem;
        padding: 0.18rem 0;
    }

    .step-view.active {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
        overflow: visible;
        gap: 0.85rem;
    }

    .step-header {
        margin-bottom: 0.65rem;
        text-align: center;
        flex-shrink: 0;
    }

    .step-header h2 {
        font-size: 1.15rem;
        font-weight: 600;
        color: #0f172a;
        margin: 0 0 0.3rem 0;
        line-height: 1.3;
        letter-spacing: -0.01em;
    }

    .step-subtitle {
        display: block;
        font-size: 0.82rem;
        color: #475569;
        margin: 0 0 0.25rem 0;
        line-height: 1.35;
    }

    .step-header p {
        font-size: 0.78rem;
        color: #64748b;
        line-height: 1.45;
        margin: 0 auto;
        max-width: 95%;
    }

    .compact-form {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        flex: 1;
        width: 100%;
    }

    .compact-form .form-group, .form-group {
        margin-bottom: 0.35rem;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .compact-form .form-label, .form-label {
        font-size: 0.78rem;
        font-weight: 600;
        color: #334155;
        min-height: auto;
        height: auto;
        margin-bottom: 0.1rem;
        line-height: 1.25;
        white-space: normal;
    }

    .form-grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
        align-items: start;
        margin-bottom: 0.15rem;
    }

    .form-grid-2 .form-group {
        margin-bottom: 0.2rem;
        min-width: 0;
    }

    .form-grid-2 .form-label {
        min-height: auto;
        height: auto;
        margin-bottom: 0.1rem;
        font-size: 0.78rem;
    }

    .form-input {
        height: 44px;
        padding: 0.6rem 0.75rem;
        font-size: 16px;
        border-radius: 8px;
        border: 1.5px solid #cbd5e1;
        background-color: #ffffff;
        color: #0f172a;
        box-sizing: border-box;
        transition: all 0.18s ease;
    }

    .form-input:focus {
        border-color: var(--visa-blue);
        box-shadow: 0 0 0 3px rgba(20, 52, 203, 0.12);
        background-color: #ffffff;
    }

    select.form-input {
        height: 44px;
        padding: 0.6rem 2rem 0.6rem 0.75rem;
        font-size: 16px;
        background-position: right 0.75rem center;
        background-size: 14px 14px;
    }

    .input-wrap .form-input.has-icon {
        padding-left: 2.35rem;
    }

    .input-icon-left {
        left: 0.75rem;
        color: #64748b;
    }

    .input-icon-left svg {
        width: 15px;
        height: 15px;
    }

    .form-error-msg,
    .input-error-msg {
        font-size: 0.72rem;
        color: #dc2626;
        font-weight: 600;
        margin-top: 0.2rem;
        line-height: 1.25;
        display: none;
    }

    .form-error-msg.active,
    .input-error-msg.active {
        display: block !important;
        animation: fadeInError 0.2s ease-out;
    }

    .form-action-footer {
        margin-top: 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        flex-shrink: 0;
    }

    .btn-lg, .btn-primary {
        height: 46px;
        padding: 0.65rem 1.25rem;
        font-size: 0.92rem;
        font-weight: 700;
        border-radius: 8px;
        background-color: var(--visa-blue);
        box-shadow: 0 3px 10px rgba(20, 52, 203, 0.25);
    }

    .btn-outline, #btn-open-exit-modal, .btn-exit-action {
        height: 38px;
        padding: 0.45rem 0.85rem;
        font-size: 0.82rem;
        font-weight: 600;
        border-radius: 8px;
        color: #64748b;
        border: 1px solid #cbd5e1;
        background: #ffffff;
    }

    .btn-exit-action:hover, #btn-open-exit-modal:hover {
        background: #f1f5f9;
        color: #0f172a;
    }

    .portal-footer {
        display: block;
        padding: 1.25rem 1rem 0.5rem 1rem;
        margin-top: auto;
        width: 100%;
        max-width: 520px;
        background: transparent;
        border-top: none;
        font-size: 0.72rem;
        text-align: center;
        flex-shrink: 0;
    }

    .footer-trust-badges {
        font-size: 0.72rem;
        gap: 0.85rem;
        color: #475569;
        font-weight: 600;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }

    .footer-trust-badges svg {
        width: 14px;
        height: 14px;
    }

    .footer-legal-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.45rem;
        margin-top: 0.45rem;
        font-size: 0.68rem;
        color: #94a3b8;
    }

    .footer-legal-links a {
        color: #64748b;
        text-decoration: underline;
    }

    .wizard-selector-grid {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        margin: 0.65rem 0 0.85rem 0;
    }

    .wizard-option-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 0.95rem 1rem;
        min-height: auto;
        gap: 0.85rem;
        border-radius: 10px;
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
        cursor: pointer;
        user-select: none;
        touch-action: manipulation;
        transition: all 0.2s ease;
    }

    .wizard-option-card:hover, .wizard-option-card:focus-visible {
        border-color: var(--visa-blue);
        transform: none;
        box-shadow: 0 4px 12px rgba(20, 52, 203, 0.08);
        background: #f8fafc;
    }

    .wizard-option-card:active {
        background: #eff6ff;
        border-color: var(--visa-blue);
    }

    .wizard-option-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        flex: 1;
        min-width: 0;
        pointer-events: none;
    }

    .wizard-option-uncontained-img {
        height: 36px;
        width: 36px;
        flex-shrink: 0;
        object-fit: contain;
        margin: 0;
        pointer-events: none;
    }

    .wizard-option-tag {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--visa-blue);
        letter-spacing: 0.02em;
        margin-bottom: 0.15rem;
        text-align: left;
    }

    .wizard-option-desc {
        font-size: 0.74rem;
        line-height: 1.35;
        margin: 0;
        color: #475569;
        text-align: left;
    }

    .wizard-option-arrow-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #eff6ff;
        color: var(--visa-blue);
        flex-shrink: 0;
        margin-top: 0;
        pointer-events: none;
    }

    .status-hero-wrap {
        margin: 0 auto 0.45rem auto !important;
    }

    .status-hero-img {
        height: 42px;
        max-width: 90px;
    }

    .wizard-trust-footer {
        margin-top: 0.65rem;
        padding-top: 0.65rem;
        font-size: 0.7rem;
        gap: 0.35rem;
    }

    .amount-input-wrap {
        border-radius: 8px;
        height: 46px;
    }

    .amount-input {
        font-size: 1.25rem !important;
        height: 42px;
    }

    .lookup-tabs-container {
        padding: 0.25rem;
        border-radius: 8px;
        gap: 0.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    .lookup-tab-btn {
        padding: 0.5rem 0.2rem;
        font-size: 0.72rem;
        line-height: 1.2;
        min-width: 0;
    }

    .otp-container {
        gap: 0.4rem;
        margin: 0.85rem 0;
    }

    .otp-box {
        height: 46px;
        min-width: 36px;
        max-width: 44px;
        font-size: 1.3rem;
        border-radius: 8px;
    }

    .receipt-card {
        padding: 0.95rem 1rem;
        border-radius: 10px;
        margin-bottom: 0.85rem;
    }

    .receipt-row {
        padding: 0.45rem 0;
        font-size: 0.82rem;
    }

    .transfer-summary-card {
        padding: 0.65rem 0.85rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    .transfer-summary-details {
        font-size: 0.74rem;
    }

    .operator-chat-card {
        padding: 0.75rem 0.85rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    .operator-chat-desc {
        font-size: 0.74rem;
        margin-bottom: 0.65rem;
    }

    .btn-whatsapp-direct {
        height: 40px;
        font-size: 0.84rem;
        border-radius: 8px;
    }
}

/* ==============================================================================
   3.1 MICRO-PANTALLAS (<= 380px, ej. iPhone SE / Dispositivos Ultra Compactos)
   ============================================================================== */
@media (max-width: 380px) {
    .portal-desktop-layout {
        padding: 0 0.4rem;
    }

    .portal-body {
        padding: 1rem 0.75rem 1.15rem 0.75rem;
        gap: 0.75rem;
    }

    .step-header h2 {
        font-size: 1.05rem;
    }

    .step-header p {
        font-size: 0.75rem;
    }

    .form-grid-2 {
        gap: 0.45rem;
    }

    .form-label {
        font-size: 0.74rem;
    }

    .form-input {
        height: 42px;
        font-size: 16px;
        padding: 0.5rem 0.65rem;
    }

    select.form-input {
        height: 42px;
        font-size: 16px;
        padding: 0.5rem 1.65rem 0.5rem 0.65rem;
    }

    .input-wrap .form-input.has-icon {
        padding-left: 2.15rem;
    }

    .input-icon-left {
        left: 0.65rem;
    }

    .lookup-tabs-container {
        padding: 0.2rem;
        gap: 0.2rem;
    }

    .lookup-tab-btn {
        padding: 0.45rem 0.12rem;
        font-size: 0.68rem;
        line-height: 1.15;
    }

    .otp-container {
        gap: 0.25rem;
    }

    .otp-box {
        height: 42px;
        min-width: 28px;
        max-width: 38px;
        font-size: 1.15rem;
        box-sizing: border-box;
    }

    .btn-lg, .btn-primary {
        height: 44px;
        font-size: 0.88rem;
    }
}

/* ==============================================================================
   4. VERSION TABLETS (769px a 1024px)
   ============================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .user-page-wrapper {
        justify-content: center;
        padding: 1.5rem;
    }

    .portal-header, .portal-card, .portal-footer {
        max-width: 580px;
    }

    .portal-body {
        padding: 1.75rem;
    }
}

/* ==============================================================================
   5. CASOS ESPECIALES DE PANTALLA CORTA (LANDSCAPE MÓVIL)
   ============================================================================== */
/* ==============================================================================
   6. PANTALLA DE ACCESO RESTRINGIDO & DESBLOQUEO POR ENLACE SEGURO
   ============================================================================== */
.restricted-unlock-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0.85rem;
    margin: 0.85rem 0;
    text-align: left;
}

.restricted-unlock-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.restricted-unlock-desc {
    font-size: 0.76rem;
    color: #64748b;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.restricted-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.restricted-input-group .form-input {
    flex: 1;
    height: 38px;
    font-size: 0.82rem;
}

.restricted-input-group .btn {
    padding: 0 1rem;
    height: 38px;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.restricted-hotels-wrap {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0.75rem 0.85rem;
    margin-top: 0.5rem;
    text-align: left;
}

.restricted-hotels-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.55rem;
}

.restricted-hotels-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hotel-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}

/* ==============================================================================
   7. MODAL / OVERLAY DE CONFIRMACIÓN DE SALIDA (MINIMALISTA)
   ============================================================================== */
.exit-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.exit-modal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: clamp(1.5rem, 3.5vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
    max-width: 400px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    text-align: center;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.exit-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.35rem 0 0.45rem 0;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.exit-modal-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.35rem;
}

.exit-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.btn-exit-cancel {
    width: 100%;
    background: linear-gradient(180deg, #183ce5 0%, #1434cb 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    font-family: var(--font-main);
    box-shadow: 0 4px 12px rgba(20, 52, 203, 0.25);
}

.btn-exit-cancel:hover {
    background: linear-gradient(180deg, #1434cb 0%, #0f2799 100%);
    transform: translateY(-1px);
}

.btn-exit-confirm {
    width: 100%;
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.88rem;
    font-family: var(--font-main);
}

.btn-exit-confirm:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-exit-action {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-main);
    box-sizing: border-box;
}

.btn-exit-action:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from { transform: scale(0.95) translateY(12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ==============================================================================
   8. VISTA DE TRANSFERENCIA BANCARIA OFICIAL (ATENCIÓN POR CHAT Y OPERADOR)
   ============================================================================== */
.transfer-summary-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.8rem;
    margin-bottom: 0.4rem;
    text-align: left;
}

.transfer-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.3rem;
    margin-bottom: 0.35rem;
}

.transfer-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--visa-blue);
}

.transfer-summary-amount {
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--visa-blue);
    background: #e0e7ff;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    letter-spacing: -0.01em;
}

.transfer-summary-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
}

.operator-chat-card {
    background-color: #ffffff;
    border: 1.5px solid #c7d2fe;
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.4rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(20, 52, 203, 0.06);
}

.operator-chat-header {
    display: flex;
    justify-content: center;
    margin-bottom: 0.35rem;
}

.operator-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.operator-chat-desc {
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.35;
    margin: 0 0 0.65rem 0;
}

.btn-whatsapp-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    height: 36px;
    background-color: #25d366;
    color: #ffffff !important;
    border: 1px solid #20bd5a;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-whatsapp-direct:hover {
    background-color: #1fa851;
}

