:root {
    --primary: #0e1f2c;
    --primary-dark: #0A1E2D;
    --secondary: #FF9F1C;
    --secondary-dark: #E68F1A;
    --light: #F8F9FA;
    --dark: #212529;
    --darker: #071521;
    --white: #FFFFFF;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Variables para modo oscuro */
[data-theme="dark"] {
    --primary: #1E3A8A;
    --primary-dark: #172554;
    --secondary: #F59E0B;
    --secondary-dark: #D97706;
    --light: #1F2937;
    --dark: #F3F4F6;
    --darker: #111827;
    --white: #374151;
    --gray: #9CA3AF;
    --light-gray: #1F2937;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: var(--light-gray);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0 2rem;
}

.nav-container {
    background-color: var(--primary);
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 3rem 1rem 3rem;
    display: flex;
    justify-content: space-between;
    border-radius: 0 0 1em 1em;
    align-items: center;
}

.logo {
    height: 58px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

/* Menú de navegación - Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

/* Menú desplegable */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--light);
    color: var(--primary);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(14, 31, 44, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 31, 44, 0.35);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 159, 28, 0.25);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 159, 28, 0.35);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

.btn-white:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.35);
}

/* Hero Section */
.hero {
    padding: 180px 2rem 120px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyMzgsMjQyLDI0NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--darker);
    animation: fadeInUp 1s ease;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--gray);
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* Feature Section */
.features {
    padding: 120px 2rem;
    background-color: var(--light-gray);
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.75rem;
    color: var(--darker);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2.75rem;
    color: var(--primary);
    margin-bottom: 1.75rem;
    background-color: var(--light);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--darker);
    font-weight: 700;
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.feature-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.feature-link:hover {
    color: var(--primary-dark);
}

.feature-link:hover i {
    transform: translateX(3px);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 2rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
    opacity: 0.3;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--darker);
    color: var(--light);
    padding: 0 2rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
}

/* Menú Hamburguesa - Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border: none;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .feature-grid {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .feature-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .nav-item {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav-link {
        padding: 1rem;
        width: 100%;
        text-align: left;
        color: var(--darker);
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: transparent;
        display: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown .nav-link::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-left: 0.5rem;
        font-size: 0.8rem;
        transition: transform 0.3s;
    }
    
    .dropdown.active .nav-link::after {
        transform: rotate(180deg);
    }
    
    .btn-mobile-hidden {
        display: none;
    }
    
    .hero {
        padding: 150px 1.5rem 80px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 2.25rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .cta h2 {
        font-size: 2.25rem;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .theme-toggle i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2, .cta h2 {
        font-size: 1.75rem;
    }
    
    .nav-menu {
        width: 90%;
    }
}