/*
============================================
BUDGET 2026 - ESTILOS (CORREGIDO)
============================================
*/

:root {
    /* Paleta de colores moderna */
    --budget-primary: #6B46FF;
    --budget-primary-dark: #5634D1;
    --budget-secondary: #00D4FF;
    --budget-accent: #FF6B9D;
    --budget-dark: #0A0E27;
    --budget-light: #F7F9FC;
    --budget-gray: #6B7280;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #6B46FF 0%, #8B5CF6 50%, #A78BFA 100%);
    --gradient-card: linear-gradient(135deg, rgba(107, 70, 255, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    
    /* Tipografía */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Sombras suaves */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(107, 70, 255, 0.1);
    --shadow-lg: 0 10px 40px rgba(107, 70, 255, 0.15);
    --shadow-glow: 0 0 40px rgba(107, 70, 255, 0.3);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--budget-dark);
    background: var(--budget-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.budget-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.budget-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 12vh;
    padding: 0 4% 0 3%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.nav-logo {
    height: 80px;
    width: auto;
    transition: var(--transition-bounce);
    filter: drop-shadow(0 4px 12px rgba(139, 38, 53, 0.12));
    border-radius: 8px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--budget-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--budget-primary);
}

/* Hero Section */
.budget-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 50px;
    overflow: hidden;
}

.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    opacity: 0.1;
    z-index: -2;
}

/* Floating spheres */
.floating-sphere {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    z-index: -1;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.sphere-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--budget-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-primary-budget {
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.btn-primary-budget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-budget {
    padding: 15px 30px;
    background: transparent;
    color: var(--budget-primary);
    border: 2px solid var(--budget-primary);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary-budget:hover {
    background: var(--budget-primary);
    color: white;
}

/* Dashboard Preview */
.hero-visual {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 40px; /* Añade espacio superior para bajar la imagen */
}

.dashboard-preview {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    animation: levitate 6s infinite ease-in-out;
    margin-top: 30px; /* Baja más la imagen */
}

@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.dashboard-preview img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.dashboard-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--budget-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Why Section */
.why-section {
    padding: var(--spacing-2xl) 5%;
    background: white;
}

.why-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--budget-dark);
}

.section-description {
    font-size: 1.1rem;
    color: var(--budget-gray);
    margin-bottom: var(--spacing-xl);
}

.bundle-includes h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    color: var(--budget-primary);
}

.includes-list {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.includes-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    padding: 10px;
    background: var(--gradient-card);
    border-radius: 10px;
}

.check-icon {
    color: var(--budget-primary);
    font-weight: bold;
    margin-right: var(--spacing-sm);
    font-size: 1.2rem;
}

.pricing-badge {
    display: inline-block;
    padding: var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: 15px;
    color: white;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.price-amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.price-note {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Dashboard Mockup en Why Section - CORREGIDO */
.why-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-mockup {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 450px; /* Limita el ancho del mockup */
}

.mockup-header {
    background: #f3f4f6;
    padding: 10px 15px;
    display: flex;
    gap: 5px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
}

.mockup-content {
    padding: 0;
    background: #f9fafb;
}

.dashboard-image {
    width: 100%;
    height: auto;
    max-height: 350px; /* Limita la altura máxima */
    object-fit: contain; /* Muestra toda la imagen sin recortar */
    display: block;
}

/* Benefits Section */
.benefits-section {
    padding: var(--spacing-2xl) 5%;
    background: var(--budget-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    max-width: 1400px;
    margin: var(--spacing-xl) auto 0;
}

.benefit-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(107, 70, 255, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--budget-primary);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon span {
    color: white;
    font-size: 28px;
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--budget-dark);
}

.benefit-card p {
    color: var(--budget-gray);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-2xl) 5%;
    background: var(--gradient-primary);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.btn-cta-budget {
    padding: 18px 40px;
    background: white;
    color: var(--budget-primary);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cta-budget:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-2xl) 5%;
    background: white;
}

.budget-form {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.budget-form input,
.budget-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.budget-form input:focus,
.budget-form textarea:focus {
    outline: none;
    border-color: var(--budget-primary);
    box-shadow: 0 0 0 3px rgba(107, 70, 255, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: var(--spacing-md);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.budget-footer {
    background: var(--budget-dark);
    color: white;
    padding: var(--spacing-lg) 5%;
    text-align: center;
}

.budget-footer a {
    color: var(--budget-secondary);
    text-decoration: none;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    fill: white;
}

/* Mobile menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--budget-dark);
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container,
    .why-content {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        margin-top: var(--spacing-xl);
        padding-top: 0; /* Resetear en móvil */
    }
    
    .dashboard-preview {
        margin-top: 0; /* Resetear en móvil */
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .dashboard-preview {
        padding: 15px;
    }
    
    .dashboard-preview img {
        max-width: 100%;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 96px; /* Altura del header - ajustar según sea necesario */
    left: 0;
    width: 100%;
    height: calc(100vh - 96px);
    background: rgba(247, 249, 252, 0.98); /* Color del tema budget */
    z-index: 998;
}

.mobile-menu-content {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu-content a {
    display: block;
    padding: 15px 30px;
    margin: 10px 0;
    color: var(--budget-dark);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 50px;
    transition: all 0.3s;
}

.mobile-menu-content a:hover {
    background: var(--gradient-primary);
    color: white;
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    
    .burger {
        display: flex !important;
        z-index: 999;
    }
}

/* Animación del burger a X */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}