/* Definición de colores */
:root {
    --color1: #41ba0d;
    --color2: #5dcb2a;
    --color3: #79dd46;
    --color4: #95ee63;
    --color5: #b1ff7f;
    --color6: #000000;
    --trust-bg: #1e1e1e;
    --trust-text: #f1f1f1;
    --trust-accent: #ff6b6b;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #666666;
    --shadow-light: rgba(65, 186, 13, 0.1);
    --shadow-medium: rgba(65, 186, 13, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--color6);
    background: var(--white);
    min-height: 100vh;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-dark);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--color2);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color6);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--color1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color1);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 50%, var(--color3) 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.earnings-highlight {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 600px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.earnings-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.earnings-highlight h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.earnings-highlight .amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Search Container */
.search-container {
    margin-top: 50px;
}

.search-container form {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.input-container {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.date-container {
    max-width: 220px;
}

.input-container input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 45px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color6);
    transition: all 0.3s ease;
}

.input-container input:focus {
    outline: none;
    border-color: var(--white);
    background: var(--white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.input-container input::placeholder {
    color: var(--gray-dark);
    opacity: 0.7;
}

.input-container i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color1);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-btn {
    padding: 15px 40px;
    background: var(--white);
    color: var(--color1);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: var(--color5);
    color: var(--color6);
}

.search-btn i {
    margin-right: 8px;
}

/* Steps Section */
.steps-section {
    background: var(--gray-light);
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color6);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.step-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color1), var(--color2));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 25px;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color6);
}

.step-card p {
    color: var(--gray-dark);
    line-height: 1.8;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
    padding: 100px 0;
    color: var(--white);
}

.benefits-section .section-title,
.benefits-section .section-subtitle {
    color: var(--white);
}

.benefits-section .section-subtitle {
    opacity: 0.9;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-item {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--color5);
}

.benefit-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.benefit-item p {
    line-height: 1.8;
    opacity: 0.9;
}

/* How it Works */
.how-it-works {
    background: var(--white);
    padding: 100px 0;
}

.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    gap: 40px;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 40px;
    font-size: 2rem;
    color: var(--color2);
    font-weight: bold;
}

.process-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color1), var(--color2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.process-step:hover .process-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.process-step h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color6);
}

.process-step p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Safety Section */
.safety-section {
    background: var(--gray-light);
    padding: 100px 0;
}

.safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.safety-item {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--color2);
}

.safety-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.safety-item i {
    font-size: 3rem;
    color: var(--color1);
    margin-bottom: 25px;
}

.safety-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color6);
}

.safety-item p {
    color: var(--gray-dark);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--white);
    color: var(--color1);
    padding: 20px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: var(--color5);
    color: var(--color6);
}

/* Trust indicators */
.trust-indicators {
    background: var(--trust-bg);
    color: var(--trust-text);
    padding: 60px 0;
}

.trust-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 40px;
}

.trust-stat {
    flex: 1;
    min-width: 200px;
}

.trust-stat .number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color3);
    display: block;
    margin-bottom: 10px;
}

.trust-stat .label {
    font-size: 1.1rem;
    color: var(--trust-text);
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--color6);
    color: var(--trust-text);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
}

/* Overlay styles */
.overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.overlay-content {
    background-color: var(--white);
    margin: 50px auto;
    padding: 40px;
    max-width: 600px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: var(--gray-dark);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--color6);
}

#overlay-input {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    font-size: 16px;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

#overlay-input:focus {
    outline: none;
    border-color: var(--color1);
}

/* Responsive */
@media (max-width: 1024px) {
    .process-flow {
        flex-wrap: wrap;
        gap: 60px;
    }
    
    .process-step {
        flex: 1 1 45%;
    }
    
    .process-step:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .earnings-highlight .amount {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .process-flow {
        flex-direction: column;
        gap: 50px;
    }
    
    .process-step {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .process-step::after {
        display: none;
    }
    
    .process-step:not(:last-child)::before {
        content: '↓';
        position: absolute;
        left: 50%;
        bottom: -35px;
        transform: translateX(-50%);
        font-size: 2rem;
        color: var(--color2);
    }
    
    .search-container form {
        flex-direction: column;
        align-items: center;
    }
    
    .input-container {
        width: 100%;
        max-width: 400px;
    }
    
    .search-btn {
        width: 100%;
        max-width: 400px;
    }
    
    .steps-grid,
    .benefits-grid,
    .safety-features {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .trust-stats {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .steps-section,
    .benefits-section,
    .how-it-works,
    .safety-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-button {
        padding: 15px 40px;
        font-size: 1.1rem;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

/* Accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible para accesibilidad */
*:focus-visible {
    outline: 3px solid var(--color1);
    outline-offset: 2px;
}

/* Mejoras de rendimiento */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--color2);
    color: var(--white);
}