/* =========================================
   1. BASES Y RESET
   ========================================= */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #000;
    color: white;
    overflow-x: hidden;
}

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1100;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

/* Menú central (desktop) */
.nav-center {
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    z-index: 3500;
    transform: translateX(-50%);
}

.nav-center a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    opacity: 0.8;
    transition: 0.3s;
}

.nav-center a:hover {
    opacity: 1;
    color: #d100ff;
}

/* Botón header derecha */
.btn-demo-small {
    background: linear-gradient(90deg, #7216f4, #d100ff);
    padding: 12px 25px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    top: auto;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-demo-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114, 22, 244, 0.4);
}

/* Botón mobile oculto */
.btn-demo-mobile {
    display: none !important;
}

/* =========================================
   3. MENÚ HAMBURGUESA
   ========================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 4000;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: 0.3s;
}

/* Animación hamburguesa */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================
   4. HERO
   ========================================= */
.hero {
    padding: 100px 60px;
    background: radial-gradient(circle at top right, #1a0533, #000);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-wrapper {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(114, 22, 244, 0.3);
}

.hero-img {
    width: 100%;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.cta {
    display: inline-block;
    padding: 16px 30px;
    background: linear-gradient(90deg, #7216f4, #d100ff);
    box-shadow: 0 5px 20px rgba(209, 0, 255, 0.3);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 40px;
    transition: all 0.3s ease;
}

/* Hover */
.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(114, 22, 244, 0.4);
}

/* =========================================
   5. SECCIONES
   ========================================= */
.section {
    padding: 100px 20px;
    text-align: center;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.card {
    background: #111;
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 280px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

/* =========================================
   6. FORMULARIO
   ========================================= */
.contact-section {
    background: #050505;
}

.form-container {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 0 20px;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    color: white;
}

.cta-button {
    padding: 18px;
    background: linear-gradient(90deg, #7216f4, #d100ff);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: #000;
    padding: 60px 20px;
    text-align: center;
    opacity: 0.6;
}

/* =========================================
   8. RESPONSIVE (FIX HAMBURGUESA 🔥)
   ========================================= */
@media (max-width: 768px) {
    
    .whatsapp-float {
        width: 65px;
        height: 65px;
    }

    header {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .nav-center {
        position: fixed;
        top: 0;
        left: 0;
        transform: none;

        width: 100%;
        height: 100vh;

        display: none;

        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;

        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(10px);

        z-index: 1100;
    }

    .nav-center.active {
        display: flex;
    }

    .nav-center a {
        font-size: 22px;
    }

    .btn-demo-mobile {
        display: block !important;

        margin-top: 30px;
        padding: 16px 30px;

        background: linear-gradient(90deg, #7216f4, #d100ff);
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;

        border-radius: 40px;
        text-align: center;

        box-shadow: 0 10px 25px rgba(114, 22, 244, 0.4);
        transition: all 0.3s ease;
    }

    .btn-demo-mobile:hover {
        transform: translateY(-2px);
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 34px;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 60px;
    height: 60px;
    border-radius: 50%;

    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 3000;

    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}