/* Variables de diseño (Light Mode) */
:root {
    --primary: #6c5ce7;
    --secondary: #00cec9;
    --dark: #2d3436;
    --light: #f5f6fa;
    --gray: #636e72;
    --bg: #f5f6fa;
    --card-bg: #ffffff;
    --text: #2d3436;
    --gradient: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.85);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg: #1a1a2e;
    --card-bg: #16213e;
    --text: #f5f6fa;
    --dark: #f5f6fa;
    --gray: #b2bec3;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(26, 26, 46, 0.85);
}

/* Reset y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.5s ease, color 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* Navbar estilo glassmorphism */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Menú hamburguesa - solo visible en móvil */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

    .hamburger .bar {
        width: 25px;
        height: 3px;
        background: var(--text);
        transition: all 0.3s ease;
    }

    .hamburger.open .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.open .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
    .nav-links a {
        text-decoration: none;
        color: var(--text);
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .nav-links a:hover {
            color: var(--primary);
        }

.btn {
    background: var(--gradient);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(108, 92, 231, 0.4);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

    .btn-outline:hover {
        background: var(--primary);
        color: white;
    }

/* Toggle Dark Mode */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-left: 1rem;
    color: var(--text);
}

.toggle-icon {
    font-size: 1.2rem;
}

/* Hero Section con Video Background */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    margin-top: -80px;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
    }

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-img {
    position: absolute;
    right: 8%;
    width: 45%;
    max-width: 700px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

/* Sección de características */
.section {
    padding: 8rem 8%;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 5rem;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.5s, box-shadow 0.5s;
    text-align: left;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Testimonios con Swiper */
.testimonials {
    background: var(--card-bg);
    padding: 6rem 0;
}

.swiper {
    width: 100%;
    padding: 2rem 0 4rem;
}

.testimonial-card {
    background: var(--bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin: 0 1rem;
    max-width: 500px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary);
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.swiper-pagination-bullet {
    background: var(--gray);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* Pricing Table */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .pricing-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .pricing-card.popular::before {
        content: 'Popular';
        position: absolute;
        top: 20px;
        right: -30px;
        background: var(--secondary);
        color: white;
        padding: 0.3rem 3rem;
        transform: rotate(45deg);
        font-size: 0.8rem;
        font-weight: bold;
        z-index: 2;
    }

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

    .pricing-price span {
        font-size: 1rem;
        color: var(--gray);
    }

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

    .pricing-features li {
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .pricing-features li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: var(--secondary);
        }

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 5rem 8% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer a {
    color: #b2bec3;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

    .footer a:hover {
        color: var(--secondary);
    }

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

    .social-links a {
        color: white;
        font-size: 1.5rem;
        transition: all 0.3s;
    }

        .social-links a:hover {
            color: var(--secondary);
            transform: translateY(-3px);
        }

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b2bec3;
}

.main-content {
    margin-top: 80px; /* Ajuste inicial para desktop */
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .main-content {
        margin-top: 80px; /* Reduce un poco para móvil si es necesario */
        padding-top: 20px; /* Espacio adicional */
    }

    .hero-img {
        position: relative;
        right: auto;
        width: 80%;
        margin-top: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links {
        gap: 1rem;
    }
}

body.menu-open {
    overflow: hidden;
}

    body.menu-open .main-content {
        display: none; /* Opcional: oculta el contenido cuando el menú está abierto */
    }


@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .main-content {
        margin-top: 100px; /* Reduce un poco para móvil si es necesario */
        padding-top: 20px; /* Espacio adicional */
    }

    /* Asegurar que el hero section tenga suficiente espacio */
    .hero {
        padding-top: 30px !important;
        min-height: calc(100vh - 70px) !important;
    }

    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--nav-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
        z-index: 1000;
        padding: 2rem;
    }
        .nav-links.active {
            transform: translateX(0);
        }

    .theme-toggle {
        margin-left: 0;
        padding: 0.5rem 1rem;
        background: rgba(255,255,255,0.1);
        border-radius: 50px;
    }

    .btn {
        padding: 0.8rem 1.5rem;
    }
    .section {
        padding: 5rem 5%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}
