/* Landing page specific styles */
/* Accessibility improvements */
.btn:focus {
    outline: 2px solid var(--xofi-verde-medio);
    outline-offset: 2px;
}

.form-control:focus {
    outline: none;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000;
        color: #fff;
    }

    .benefit-card {
        border: 2px solid #000;
    }
}

.hero-section {
    background: var(--bs-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><path d="M0,0v46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34L1000,25.83V0Z"/></svg>') repeat-x;
    background-size: 1000px 100px;
    animation: wave 20s infinite linear;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1000px; }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    animation: fadeInDown 1s ease-out;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--xofi-verde-claro);
    display: block;
    line-height: 1;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.hero-trust-indicators {
    opacity: 0.8;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.trust-separator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.pulse-on-hover:hover {
    animation: pulse 0.6s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.btn-hero {
    font-size: 1.1rem;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.benefits-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.benefit-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--bs-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(128, 198, 172, 0.3);
}

/* All benefit icons now use the same gradient for consistency */

.benefit-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.benefit-text {
    color: #718096;
    line-height: 1.6;
}

.stats-section {
    background: linear-gradient(135deg, var(--xofi-verde-medio) 0%, var(--xofi-verde-claro) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" fill="%23ffffff" opacity="0.03"><circle cx="20" cy="10" r="2"/><circle cx="40" cy="10" r="2"/><circle cx="60" cy="10" r="2"/><circle cx="80" cy="10" r="2"/></svg>') repeat;
}

.stat-trend {
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    /* color: var(--xofi-verde-medio); */
    color: var(--bs-heading-color);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.cta-section {
    background: var(--bs-gradient);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100px) rotate(15deg); }
    100% { transform: translateX(100px) rotate(15deg); }
}

.cta-action-box {
    position: relative;
    z-index: 2;
}

.cta-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cta-primary-btn {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.urgency-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.registration-section {
    padding: 5rem 0;
    background: white;
}

.registration-form {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 50px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #2d3748;
    font-weight: 600;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    text-align: center;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

.testimonial-rating {
    display: flex;
    gap: 2px;
}

.testimonial-text {
    font-style: italic;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    border-left: 4px solid var(--xofi-verde-medio);
    padding-left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

/* Registration Section Enhancements */
.form-progress .progress {
    background-color: #e9ecef;
    border-radius: 10px;
}

.form-progress .progress-bar {
    transition: width 0.6s ease;
    border-radius: 10px;
}

.process-step {
    position: relative;
    transition: all 0.3s ease;
}

.process-step.active .step-icon {
    color: var(--xofi-verde-medio) !important;
    transform: scale(1.1);
}

.process-step.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--xofi-verde-medio);
    border-radius: 2px;
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: -1;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #e9ecef;
    border-radius: 50%;
}

.membership-benefits-reminder {
    animation: slideInUp 0.8s ease-out;
}

.benefit-mini {
    padding: 0.5rem;
}

.submission-benefits {
    border-left: 4px solid var(--xofi-verde-medio);
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Form Validation Enhancements */
.form-control:focus {
    border-color: var(--xofi-verde-medio);
    box-shadow: 0 0 0 0.2rem rgba(128, 198, 172, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    animation: shake 0.5s;
}

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

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-stats {
        margin-bottom: 2rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .hero-actions .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .trust-separator {
        display: none;
    }

    .trust-item {
        margin-bottom: 1rem;
    }

    .registration-form {
        margin: 0 1rem;
        padding: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-action-box {
        margin-top: 2rem;
    }

    .testimonial-card {
        margin-bottom: 1rem;
    }

    .step-connector {
        display: none;
    }

    .benefit-card {
        margin-bottom: 1rem;
    }

    /* Touch-friendly improvements */
    .btn {
        min-height: 48px;
        touch-action: manipulation;
    }

    .form-control, .form-select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-check-input {
        width: 20px;
        height: 20px;
    }
}

/* Member Login Header Styles */
.member-login-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-logo {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.header-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.member-access-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.member-indicator {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.member-login-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    position: relative;
    overflow: hidden;
}

.member-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.member-login-btn:hover::before {
    left: 100%;
}

.member-login-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.member-login-btn:focus {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Adjust hero section to account for header */
.hero-section {
    padding-top: 70px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .member-login-header {
        background: rgba(0, 0, 0, 0.15);
    }

    .member-login-btn {
        padding: 0.4rem 0.8rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-section {
        padding-top: 60px;
    }
}

/* Desktop hover effects */
@media (min-width: 769px) {
    .member-access-area:hover .member-indicator {
        opacity: 1;
    }
}

/* Enhanced accessibility */
.member-login-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Loading state for login button */
.member-login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.member-login-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Subtle animation for member indicator */
.member-indicator {
    animation: fadeInSlideRight 0.8s ease-out 0.5s both;
}

@keyframes fadeInSlideRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 0.8;
        transform: translateX(0);
    }
}

/* Header logo animation */
.header-logo {
    animation: fadeInSlideLeft 0.8s ease-out both;
}

@keyframes fadeInSlideLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 0.9;
        transform: translateX(0);
    }
}

/* Member login button animation */
.member-login-btn {
    animation: fadeInSlideRight 0.8s ease-out 0.3s both;
}
