@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
    position: relative;
}

.security-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.security-badge span {
    font-size: 14px;
    font-weight: 600;
    color: #00C853;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
    margin-top: 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    height: 48px;
    width: auto;
}

.welcome-text {
    text-align: center;
    margin-bottom: 24px;
}

.welcome {
    font-size: 15px;
    color: #333;
    font-weight: 400;
    margin-bottom: 4px;
}

.portal-title {
    font-size: 16px;
    color: #0066CC;
    font-weight: 600;
}

.tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid #E8EAED;
}

.tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab.active {
    color: #0066CC;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #0066CC;
    border-radius: 3px 3px 0 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.input-with-select {
    display: flex;
    gap: 8px;
    align-items: center;
}

.doc-type {
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    min-width: 70px;
}

.input-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.input-field::placeholder {
    color: #B8BCC8;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container .input-field {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-password {
    text-align: right;
    margin-top: -8px;
}

.forgot-password a {
    font-size: 13px;
    color: #0066CC;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0066CC;
}

.remember-me label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    font-weight: 400;
}

.btn-login {
    background: #1976D2;
    color: white;
    border: none;
    padding: 13px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-transform: none;
}

.btn-login:hover {
    background: #1565C0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-login:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-login svg {
    width: 18px;
    height: 18px;
}

.btn-register {
    background: white;
    color: #1976D2;
    border: 1px solid #D1D5DB;
    padding: 13px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    text-transform: none;
}

.btn-register:hover {
    border-color: #1976D2;
    background: #F5F9FF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.btn-register:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-register svg {
    width: 18px;
    height: 18px;
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    background: white;
    color: #0066CC;
    border: 2px solid #0066CC;
}

.btn-secondary:hover {
    background: #F0F7FF;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* Info Box */
.info-box {
    background: #E3F2FD;
    border-left: 4px solid #0066CC;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-box p {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.info-box strong {
    font-weight: 700;
    color: #0066CC;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-screen.active {
    display: flex;
}

.loading-content {
    text-align: center;
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* Token Input Styles */
.input-token {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 600;
}

.token-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.digit-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E8EAED;
    transition: all 0.3s ease;
}

.digit-indicator.filled {
    background: #0066CC;
    transform: scale(1.2);
}

/* OTP Input Styles */
.input-otp {
    text-align: center;
    font-size: 28px;
    letter-spacing: 6px;
    font-weight: 700;
}

.otp-info {
    margin-top: 8px;
    text-align: center;
}

.otp-info span {
    font-size: 13px;
    color: #666;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #E8EAED;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.radio-label:hover {
    border-color: #0066CC;
    background: #F0F7FF;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s;
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
    border-color: #0066CC;
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0066CC;
}

.radio-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

/* Help Text */
.help-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 6px;
    margin-top: 16px;
}

.help-text span {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Back Link */
.back-link {
    text-align: center;
    margin-top: 16px;
}

.back-link a {
    font-size: 14px;
    color: #0066CC;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Resend Link */
.resend-link {
    text-align: center;
    margin-top: -8px;
    margin-bottom: 16px;
}

.resend-link a {
    font-size: 14px;
    color: #0066CC;
    text-decoration: none;
    font-weight: 500;
}

.resend-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 32px 24px;
    }

    .container {
        max-width: 100%;
    }

    .input-token {
        font-size: 20px;
        letter-spacing: 6px;
    }

    .input-otp {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .security-badge {
        right: 10px;
        top: -8px;
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ==========================================================================
   LANDING PAGE "PUNTOS PLUS" STYLES
   ========================================================================== */

body.landing-body {
    display: block;
    background: #fcfdfe;
    min-height: auto;
    padding: 0;
    color: #1e293b;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Header */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container-header .logo {
    height: 42px;
    width: auto;
    display: block;
}

.security-badge-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid #bbf7d0;
}

.security-badge-header span {
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
}

/* Hero Section */
.hero-section {
    padding: 60px 24px;
    background: radial-gradient(circle at top right, rgba(0, 79, 159, 0.05) 0%, rgba(255, 255, 255, 1) 70%);
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.badge-promo {
    display: inline-block;
    background: rgba(0, 79, 159, 0.08);
    color: #004F9F;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 79, 159, 0.15);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: #002e62;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Features */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    padding: 10px;
    border-radius: 12px;
    color: #004F9F;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
}

/* Hero Right: Card & Image */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.lead-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 79, 159, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 32px;
}

.lead-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.lead-card-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #002e62;
    margin-bottom: 8px;
}

.lead-card-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

/* Landing Form Group */
.form-group-landing {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-label-landing {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.input-container-landing {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.input-container-landing:focus-within {
    border-color: #004F9F;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 79, 159, 0.15);
}

.input-icon-landing {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-input-landing {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #0f172a;
}

.form-input-landing::placeholder {
    color: #94a3b8;
}

.error-message-landing {
    display: none;
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    font-weight: 500;
}

/* Call to Action Button */
.btn-cta-landing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #004F9F;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 79, 159, 0.2);
}

.btn-cta-landing:hover {
    background: #00366f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 79, 159, 0.3);
}

.btn-cta-landing:active {
    transform: translateY(0);
}

.lead-card-footer {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.lead-card-footer span {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

/* Floating Image */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 0 0;
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0, 79, 159, 0.07) 0%, rgba(0, 79, 159, 0.0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-image {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
    position: relative;
    z-index: 1;
    border-radius: 20px;
    border: 6px solid #ffffff;
    box-shadow: 0 20px 40px rgba(0, 79, 159, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: floatFamily 5s ease-in-out infinite;
}

@keyframes floatFamily {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Benefits Section */
.benefits-section {
    padding: 80px 24px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #002e62;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 16px;
    color: #64748b;
}

.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 79, 159, 0.05);
    border-color: rgba(0, 79, 159, 0.15);
}

.benefit-img-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.benefit-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
}

/* Footer Premium con imagen de fondo */
.main-footer {
    position: relative;
    overflow: hidden;
    padding: 0;
    color: #fff;
    text-align: center;
}

.footer-bg-image {
    position: absolute;
    inset: 0;
    background: url('img/footer_bg.png') center center / cover no-repeat;
    z-index: 0;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 20, 70, 0.92) 0%, rgba(0, 79, 159, 0.88) 60%, rgba(0, 45, 107, 0.95) 100%);
    z-index: 1;
}

.footer-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-logo {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-style: italic;
}

.footer-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.footer-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.08);
    padding: 6px 12px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.12);
    white-space: nowrap;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Loader icon sizing — ícono diamante solo */
.loader-logo-inner,
.page-transition-logo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    width: 76px;
    height: 76px;
    box-shadow: 0 4px 20px rgba(0, 79, 159, 0.15);
    padding: 14px;
    animation: logoPulse 2s ease-in-out infinite;
}

.loader-logo-img,
.page-transition-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.2s forwards;
}

.animate-slide-up-delayed {
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.4s forwards;
}

.animate-slide-up-delayed-more {
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.6s forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   RESPONSIVE — Complete system for all device sizes
   ========================================================================== */

/* ── Tablet landscape / small desktop (≤1024px) ── */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-info {
        order: 1;
    }

    .hero-right {
        order: 2;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .badge-promo {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-list {
        align-items: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .feature-item {
        text-align: left;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 17px;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .hero-image {
        max-width: 300px;
    }

    .hero-image-wrapper {
        padding: 12px 0 0;
    }
}

/* ── Tablet portrait (≤768px) ── */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .benefit-card {
        padding: 24px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .benefits-section {
        padding: 56px 20px;
    }

    .lead-card {
        padding: 28px 20px;
    }

    /* Puntos result screen on tablet */
    .puntos-result-card {
        padding: 32px 24px 28px;
    }

    .puntos-amount {
        font-size: 46px;
    }

    /* Page transition on tablet */
    .page-transition-logo-ring,
    .loader-logo-ring {
        width: 96px;
        height: 96px;
    }

    .loader-logo-inner,
    .page-transition-logo-inner {
        width: 66px;
        height: 66px;
    }

    /* Hero image */
    .hero-image {
        max-width: 260px;
    }
}

/* ── Large mobile (≤600px) ── */
@media (max-width: 600px) {
    .hero-container {
        gap: 24px;
    }

    .hero-right {
        max-width: 100%;
    }

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

    .lead-card {
        border-radius: 12px;
        padding: 24px 16px;
    }

    .lead-card-header h2 {
        font-size: 20px;
    }

    .lead-card-header p {
        font-size: 13px;
    }

    .form-input-landing {
        font-size: 15px;
    }

    .btn-cta-landing {
        padding: 13px 16px;
        font-size: 15px;
    }

    /* Hero image */
    .hero-image {
        max-width: 220px;
    }

    .hero-image-wrapper::before {
        width: 220px;
        height: 220px;
    }

    /* Puntos result card */
    .puntos-result-card {
        padding: 28px 16px 24px;
        border-radius: 18px;
    }

    .puntos-result-title {
        font-size: 20px;
    }

    .puntos-amount {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .puntos-amount-box {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .btn-puntos-cta {
        font-size: 15px;
        padding: 14px 18px;
        border-radius: 12px;
    }

    .puntos-info-item span {
        font-size: 12px;
    }

    /* Loader */
    .loading-content {
        padding: 24px 16px;
        gap: 16px;
    }

    .loading-text {
        font-size: 15px;
    }

    .loading-subtext {
        font-size: 12px;
    }

    .loader-progress-track {
        width: 200px;
    }

    /* Footer */
    .main-footer p {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Benefits */
    .section-title h2 {
        font-size: 22px;
    }

    .benefits-section {
        padding: 44px 16px;
    }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
    .header-container {
        padding: 12px 16px;
    }

    .logo-container-header .logo {
        height: 34px;
    }

    .security-badge-header span {
        font-size: 11px;
    }

    .security-badge-header {
        padding: 5px 10px;
        gap: 5px;
    }

    .security-badge-header svg {
        width: 14px;
        height: 14px;
    }

    .hero-section {
        padding: 32px 16px 24px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .badge-promo {
        font-size: 10px;
        padding: 5px 10px;
        letter-spacing: 0.5px;
    }

    .feature-text h3 {
        font-size: 14px;
    }

    .feature-text p {
        font-size: 13px;
    }

    .lead-card {
        padding: 20px 14px;
    }

    .lead-card-header {
        margin-bottom: 18px;
    }

    .lead-card-header h2 {
        font-size: 18px;
    }

    .form-group-landing {
        margin-bottom: 16px;
    }

    .input-container-landing {
        padding: 9px 12px;
    }

    .btn-cta-landing {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Hero image — small phones */
    .hero-image {
        max-width: 190px;
    }

    .hero-image-wrapper {
        padding: 8px 0 0;
    }

    .hero-image-wrapper::before {
        width: 180px;
        height: 180px;
    }

    /* Benefits */
    .benefit-card {
        padding: 20px 16px;
    }

    .benefit-card h3 {
        font-size: 15px;
    }

    .benefit-card p {
        font-size: 13px;
    }

    .benefits-section {
        padding: 36px 14px;
    }

    /* Puntos result — small phones */
    .puntos-result-screen {
        padding: 12px;
    }

    .puntos-result-card {
        padding: 24px 14px 20px;
        border-radius: 16px;
    }

    .puntos-logo-img {
        height: 28px;
    }

    .puntos-check-icon svg {
        width: 46px;
        height: 46px;
    }

    .puntos-result-title {
        font-size: 18px;
    }

    .puntos-result-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .puntos-amount {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .puntos-amount-box {
        padding: 18px 14px;
        gap: 4px;
        border-radius: 12px;
        margin-bottom: 18px;
    }

    .puntos-unit {
        font-size: 14px;
    }

    .puntos-label {
        font-size: 11px;
    }

    .puntos-info-row {
        gap: 8px;
        margin-bottom: 20px;
    }

    .puntos-info-item {
        padding: 8px 12px;
        border-radius: 8px;
    }

    .btn-puntos-cta {
        font-size: 14px;
        padding: 13px 14px;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .puntos-footer-note {
        font-size: 10px;
    }

    /* Loader — small phones */
    .loader-logo-ring,
    .page-transition-logo-ring {
        width: 88px;
        height: 88px;
    }

    .loader-logo-inner,
    .page-transition-logo-inner {
        width: 60px;
        height: 60px;
        padding: 10px;
    }

    .loader-logo-img,
    .page-transition-logo-img {
        width: 100%;
    }

    .loader-dots span {
        width: 7px;
        height: 7px;
    }

    .loader-progress-track {
        width: 180px;
    }

    /* Footer */
    .footer-container {
        padding: 16px;
    }

    .main-footer p {
        font-size: 11px;
    }
}


/* ===================================================
   PUNTOS PLUS RESULT SCREEN
   =================================================== */

.puntos-result-screen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 15, 40, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.puntos-result-screen.visible {
    display: flex;
    animation: fadeInOverlay 0.4s ease forwards;
}

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

.puntos-result-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 32px 80px rgba(0, 79, 159, 0.22), 0 8px 24px rgba(0,0,0,0.12);
    text-align: center;
    animation: slideUpCard 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.puntos-result-logo {
    margin-bottom: 20px;
}

.puntos-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.puntos-check-icon {
    margin-bottom: 16px;
    animation: popIn 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.puntos-result-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2e4a;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.puntos-result-subtitle {
    font-size: 14px;
    color: #6b7a90;
    margin-bottom: 28px;
}

.puntos-result-subtitle strong {
    color: #004F9F;
}

.puntos-amount-box {
    background: linear-gradient(135deg, #004F9F 0%, #0073e6 100%);
    border-radius: 18px;
    padding: 28px 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 32px rgba(0, 79, 159, 0.30);
    animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 79, 159, 0.30); }
    50%       { box-shadow: 0 8px 48px rgba(0, 115, 230, 0.50); }
}

.puntos-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.80);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.puntos-amount {
    font-size: 54px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1;
    animation: countUp 0.6s 0.3s ease both;
}

@keyframes countUp {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.puntos-unit {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.90);
    letter-spacing: 0.2px;
}

.puntos-info-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    text-align: left;
}

.puntos-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f8ff;
    border-radius: 10px;
    padding: 10px 14px;
}

.puntos-info-item svg {
    flex-shrink: 0;
}

.puntos-info-item span {
    font-size: 13px;
    color: #3a4f6a;
    font-weight: 500;
}

.btn-puntos-cta {
    width: 100%;
    background: linear-gradient(135deg, #004F9F 0%, #0073e6 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.2px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 6px 20px rgba(0, 79, 159, 0.30);
    margin-bottom: 16px;
}

.btn-puntos-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 79, 159, 0.40);
    background: linear-gradient(135deg, #003d7a 0%, #005fcc 100%);
}

.btn-puntos-cta:active {
    transform: translateY(0);
}

.puntos-footer-note {
    font-size: 11px;
    color: #9ba8bb;
    line-height: 1.5;
}

/* ===================================================
   PREMIUM LOADING SCREEN  (loadingScreen overlay)
   =================================================== */

.loading-screen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #ffffff;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-screen[style*="flex"] {
    display: flex;
    animation: loadFadeIn 0.35s ease forwards;
}

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

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 32px;
}

/* ── Logo ring ── */
.loader-logo-ring {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: ringRotate 1.4s linear infinite;
    transform-origin: center;
}

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

.loader-ring-spin {
    stroke-dasharray: 276;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.3s ease;
}

.loader-logo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f6ff;
    border-radius: 50%;
    width: 76px;
    height: 76px;
    box-shadow: 0 4px 20px rgba(0, 79, 159, 0.15);
    padding: 12px;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 79, 159, 0.12), 0 0 0 0 rgba(0, 79, 159, 0.0); }
    50%       { box-shadow: 0 4px 30px rgba(0, 79, 159, 0.20), 0 0 0 8px rgba(0, 79, 159, 0.07); }
}

.loader-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
}

/* ── Bouncing dots ── */
.loader-dots {
    display: flex;
    gap: 8px;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    background: #004F9F;
    border-radius: 50%;
    display: inline-block;
    animation: dotBounce 1.2s ease-in-out infinite;
}

.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.18s; }
.loader-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0);    opacity: 0.5; }
    40%            { transform: translateY(-10px); opacity: 1;   }
}

/* ── Text ── */
.loading-text {
    font-size: 17px;
    font-weight: 700;
    color: #1a2e4a;
    text-align: center;
    letter-spacing: 0.2px;
    margin: 0;
}

.loading-subtext {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    max-width: 280px;
    line-height: 1.5;
    margin: 0;
}

/* ── Progress bar ── */
.loader-progress-track {
    width: 240px;
    height: 4px;
    background: rgba(0, 79, 159, 0.12);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 4px;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #004F9F, #0073e6);
    border-radius: 99px;
    animation: progressFill 3.2s ease-in-out forwards;
}

@keyframes progressFill {
    0%   { width: 0%; }
    40%  { width: 55%; }
    70%  { width: 75%; }
    90%  { width: 88%; }
    100% { width: 95%; }
}

/* ===================================================
   PAGE TRANSITION OVERLAY  (navigateTo animation)
   =================================================== */

.page-transition-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: linear-gradient(145deg, #002d6b 0%, #004F9F 55%, #0073e6 100%);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-transition-overlay.visible {
    display: flex;
    animation: pageOverlayIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageOverlayIn {
    0%   { opacity: 0; transform: scale(1.04); }
    100% { opacity: 1; transform: scale(1); }
}

.page-transition-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.page-transition-logo-ring {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: ringRotate 1.2s linear infinite;
    transform-origin: center;
}

.page-ring-spin {
    stroke-dasharray: 276;
    stroke-dashoffset: 190;
    stroke: rgba(255,255,255,0.9);
}

.page-transition-logo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    width: 76px;
    height: 76px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    padding: 12px;
    animation: logoPulse 2s ease-in-out infinite;
}

.page-transition-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.page-transition-text {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-align: center;
    letter-spacing: 0.3px;
    animation: textFadeUp 0.5s 0.2s ease both;
}

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

/* ===================================================
   VERIFICATION SCREENS (SMS / EMAIL)
   =================================================== */

.verification-card {
    padding: 44px 36px 36px !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(0, 79, 159, 0.08) !important;
}

.verification-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #002e62 !important;
    margin-bottom: 8px !important;
}

.verification-description {
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
}

.verification-description strong {
    color: #1e293b !important;
}

.verification-input-container {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 2px 14px !important;
    background: #f8fafc !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.verification-input-container:focus-within {
    border-color: #004F9F !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 79, 159, 0.15) !important;
}

.verification-input-icon {
    margin-right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.verification-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    width: 100% !important;
    padding: 12px 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 6px !important;
    color: #0f172a !important;
    text-align: center !important;
}

.verification-input::placeholder {
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    color: #94a3b8 !important;
}

.verification-resend {
    margin: 16px 0 24px !important;
    text-align: center !important;
}

.verification-resend p {
    font-size: 13px !important;
    color: #64748b !important;
}

.verification-resend strong {
    color: #004F9F !important;
    font-weight: 600 !important;
}

.resend-link {
    color: #004F9F !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.resend-link:hover {
    color: #002e62 !important;
    text-decoration: underline !important;
}

/* Ensure correct alignment of inputs on mobile devices */
@media (max-width: 480px) {
    .verification-card {
        padding: 32px 20px 24px !important;
    }
}
