/* ===== VARIABLES Y RESET (TEMA OSCURO) ===== */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: rgba(16, 185, 129, 0.1);
    
    --bg-color: #0B1120;
    --surface: #1E293B;
    --surface-hover: #334155;
    --border: #334155;
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ===== NAVBAR ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3)); 
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo-text span { color: var(--primary); }

/* Enlaces y Botones de Autenticación */
.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    transition: 0.2s;
    font-size: 15px;
}

.nav-link:hover { color: var(--primary); }

/* 🔥 SELECTOR DE IDIOMAS (SUBIDO Y CON MARGEN) 🔥 */
.language-selector {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px 12px 4px 8px;
    transition: 0.3s;
    cursor: pointer;
    margin-left: 20px; 
    margin-bottom: 8px; /* Lo sube un poco */
}

.language-selector:hover {
    background: var(--surface);
    border-color: var(--text-muted);
}

.globe-icon {
    font-size: 16px;
    margin-right: 8px;
    pointer-events: none;
}

.language-selector select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 10px;
}

.language-selector select option {
    background-color: var(--surface);
    color: var(--text-main);
    font-weight: 500;
}

/* 🔥 BOTONES DE LOGIN/REGISTRO (MOVIDOS A LA IZQUIERDA) 🔥 */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px; /* Los empuja a la izquierda */
    flex-wrap: wrap;
    justify-content: center;
}

.btn-login {
    padding: 10px 20px;
    background: transparent;
    color: var(--text-main);
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border);
    transition: 0.3s;
    white-space: nowrap;
}

.btn-login:hover {
    background: var(--surface);
    border-color: var(--text-muted);
}

.btn-register {
    padding: 10px 24px;
    background: var(--primary);
    color: #000;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ===== HERO ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    max-width: 1300px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge-new {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-main);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.visual-box {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 560px; 
    border-radius: 40px;
    border: 8px solid var(--surface);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(56, 189, 248, 0.15);
    overflow: hidden;
    background: #000;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.visual-box:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.9),
        0 0 70px rgba(56, 189, 248, 0.3);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-tag {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    white-space: nowrap;
}

.tag-1 { 
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    animation: float 4s ease-in-out infinite; 
}

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

/* ===== SECCIÓN DE PREPARACIÓN ===== */
.setup-section {
    padding: 80px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.setup-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.setup-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: var(--shadow-lg);
}

.setup-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid var(--border);
}

.setup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.setup-card:hover .setup-image img {
    transform: scale(1.05);
}

.setup-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.step-number {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.setup-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.setup-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 15px;
}

/* ===== SECCIÓN DE TAREAS ===== */
.tasks-section {
    padding: 80px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 20px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 8px;
}

.tabs {
    display: flex;
    background: var(--surface);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.tab {
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    background: transparent;
    transition: 0.3s;
}

.tab.active {
    background: var(--text-main);
    color: var(--bg-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.task-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.video-container {
    position: relative;
    width: 100%;
    height: 240px;
    background: #000;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.3s;
}

.task-card:hover .video-container video {
    transform: scale(1.05);
    opacity: 1;
}

.badge-video {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.badge-video::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.task-info {
    padding: 24px;
}

.task-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
    gap: 10px;
}

.price {
    color: var(--primary);
    font-weight: 800;
    font-size: 16px;
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ===== SECCIÓN DE REFERIDOS ===== */
.referral-section {
    padding: 80px 5%;
    background-color: #0f172a; 
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.referral-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.referral-text-col {
    flex: 1;
    max-width: 500px;
}

.ref-badge {
    display: inline-block;
    color: #38bdf8; 
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.referral-text-col h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-main);
    margin-bottom: 24px;
}

.referral-text-col h2 span {
    color: #38bdf8;
}

.referral-text-col p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.btn-referral {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #0f172a;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
    margin-bottom: 24px;
}

.btn-referral:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.btn-referral span {
    font-size: 20px;
}

.ref-note {
    font-size: 14px !important;
    color: var(--text-muted);
    line-height: 1.6;
}

.referral-cards-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ref-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.ref-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ref-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    flex-shrink: 0;
}

.blue-icon { background: rgba(56, 189, 248, 0.15); }
.green-icon { background: rgba(16, 185, 129, 0.15); }

.ref-card-badge {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.blue-text { color: #38bdf8; }
.green-text { color: #10b981; }

.ref-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.ref-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.ref-list {
    list-style: none;
    padding: 0;
}

.ref-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.ref-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 80px 5%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 48px;
    color: var(--text-main);
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    gap: 20px;
    color: var(--text-main);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-muted);
    line-height: 1.7;
    display: none;
    font-size: 16px;
}

.faq-item.active { 
    border-color: var(--primary); 
    background: rgba(16, 185, 129, 0.05);
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { padding-bottom: 12px; color: var(--primary); }

.faq-icon {
    font-size: 24px;
    font-weight: 400;
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 5%;
    background: var(--surface);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    height: 30px;
    width: auto;
}

footer p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== RESPONSIVE (TABLET Y MÓVIL) ===== */
@media (max-width: 900px) {
    nav { padding: 15px 5%; }
    .nav-link { display: none; }
    
    .logo-text { font-size: 18px; }
    .nav-logo { height: 32px; }
    
    .nav-right { 
        gap: 10px; 
        justify-content: flex-end; 
    }

    .language-selector { margin-left: 0; margin-bottom: 0; }
    .auth-buttons { margin-right: 0; }

    .hero {
        flex-direction: column;
        padding: 40px 5%;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-buttons {
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .hero-visual { 
        width: 100%; 
        margin-top: 20px;
    }
    
    .visual-box { 
        height: 480px; 
        max-width: 280px; 
        border-width: 6px; 
        transform: none;
    }

    .floating-tag { 
        font-size: 12px; 
        padding: 8px 14px; 
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header h2 {
        font-size: 28px;
    }

    .setup-image { height: 200px; }

    .referral-container {
        flex-direction: column;
        gap: 40px;
    }
    .referral-text-col {
        text-align: center;
        max-width: 100%;
    }
    .referral-text-col h2 br,
    .referral-text-col p br {
        display: none;
    }
    .ref-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}