/* 1. CONFIGURACIÓN, VARIABLES Y RESET */
:root {
    --vape-blue: #2a52be;
    --vape-purple: #bd5ae5;
    --vape-white: #ffffff;
    --accent-neon: #00f2ff;
    --header-bg: #000000;
    --dark-bg: #1a1a3a;
    --dropdown-bg: rgba(10, 10, 26, 0.98);
}

html {
    scroll-behavior: smooth;
}

* { 
    box-sizing: border-box; 
}

body {
    background: linear-gradient(135deg, var(--vape-blue), var(--vape-purple));
    background-attachment: fixed;
    color: var(--vape-white);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. NAVEGACIÓN (NAVBAR) */
.main-nav {
    background: var(--header-bg);
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 10000;
    border-bottom: 2px solid var(--vape-purple);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.nav-logo img { 
    height: 50px; 
    cursor: pointer; 
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-neon);
    font-size: 2rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--accent-neon); 
}

/* 3. BUSCADOR Y DROPDOWN */
.search-box {
    display: flex;
    background: white;
    border-radius: 20px;
    padding: 5px 15px;
    align-items: center;
    border: 2px solid var(--accent-neon);
    position: relative;
}

.search-box input {
    border: none;
    outline: none;
    padding: 5px;
    width: 150px;
    color: #333;
}

.search-box button { background: none; border: none; cursor: pointer; }

.search-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 280px;
    background: var(--dropdown-bg) !important;
    backdrop-filter: blur(12px);
    border: 2px solid var(--accent-neon) !important;
    border-radius: 15px !important;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 255, 0.1);
}

.dropdown-header {
    padding: 12px 15px;
    color: var(--accent-neon);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 5px 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-item:hover {
    background: rgba(0, 242, 255, 0.08);
    border-color: rgba(0, 242, 255, 0.4);
    transform: translateX(5px);
}

.search-img-card {
    width: 50px; height: 50px;
    background: white;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 5px; margin-right: 15px; flex-shrink: 0;
}

.search-name { color: white; font-weight: 600; }
.search-price { color: var(--accent-neon); font-weight: 700; font-size: 0.85rem; }
.search-arrow { color: var(--accent-neon); font-size: 1.2rem; opacity: 0; transition: 0.3s; margin-left: auto; }
.search-item:hover .search-arrow { opacity: 1; transform: translateX(3px); }

/* 4. HERO SECTION */
.hero-full {
    height: 80vh;
    width: 100%;
    background: url('../assets/fondo.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.3));
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    padding: 0 10%;
    z-index: 1;
}

.hero-content { z-index: 2; max-width: 700px; }

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    color: white;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.1;
}

.neon-text {
    color: var(--accent-neon);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.7);
}

.badge-new {
    background: var(--accent-neon);
    color: black;
    padding: 6px 15px;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.hero-btns { display: flex; gap: 15px; margin-top: 25px; }

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    text-align: center;
}

.btn-primary { background: var(--accent-neon); color: black; }
.btn-secondary { border: 2px solid white; color: white; }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 242, 255, 0.5); }

/* 5. TIENDA Y SLIDER */
.shop-section { padding: 20px 0; }
#productos { scroll-margin-top: 100px; }

.store-title {
    color: var(--accent-neon);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.slider-wrapper { position: relative; width: 100%; display: flex; align-items: center; }

.container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 5% !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.container::-webkit-scrollbar { display: none; }

.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: center;
    text-align: center;
    transition: 0.3s;
}

.product-card:hover { transform: translateY(-10px); border-color: var(--accent-neon); }

.img-container { background: #fff; border-radius: 15px; padding: 15px; margin-bottom: 15px; }
.product-img { width: 100%; max-height: 220px; object-fit: contain; }

.price { 
    color: var(--accent-neon) !important; 
    font-size: 1.6rem; font-weight: bold; margin: 15px 0; 
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
}

.btn-buy {
    background: var(--dark-bg);
    color: white;
    border: 1px solid var(--accent-neon);
    padding: 14px;
    border-radius: 30px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-buy:hover { background: var(--accent-neon); color: black; }

.nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0, 242, 255, 0.2); border: 1px solid var(--accent-neon);
    color: white; border-radius: 50%; width: 45px; height: 45px;
    z-index: 10; display: flex; align-items: center; justify-content: center;
}
.nav-btn:hover { background: var(--accent-neon); color: black; }
.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }

/* 6. FAQ SECTION */
.faq-section { padding: 30px 10%; max-width: 1000px; margin: auto; text-align: center; }
.faq-title { font-size: 2.5rem; margin-bottom: 20px; color: var(--accent-neon); }
.faq-container { display: flex; flex-direction: column; gap: 15px; }
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%; padding: 20px; background: none; border: none; color: white;
    font-size: 1.1rem; font-weight: bold; text-align: left;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: rgba(0, 0, 0, 0.2); }
.faq-answer p { padding: 20px; color: #ccc; text-align: left; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* 7. OTROS Y FOOTER */
.category-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; margin-top: 10px; }
.filter-btn {
    background: transparent; border: 1px solid var(--vape-purple);
    color: white; padding: 8px 20px; border-radius: 20px; cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent-neon); color: black; border-color: var(--accent-neon); }

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; padding: 20px 5%; background: rgba(0, 0, 0, 0.3);
}
.feature-card { text-align: center; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; }

footer { text-align: center; padding: 40px; background: rgba(0, 0, 0, 0.5); }

/* 8. ANIMACIONES Y RESPONSIVE */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 242, 255, 0); }
    100% { transform: scale(1); }
}

@media (max-width: 992px) {
    .mobile-menu-btn { display: block; order: 1; }
    .nav-logo { order: 2; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 70px; left: 0; width: 100%; background: var(--dropdown-bg);
        padding: 20px; border-bottom: 2px solid var(--accent-neon);
    }
    .nav-links.active { display: flex; }
    .search-box { width: 150px; order: 3; }
}

@media (max-width: 768px) {
    .hero-full { height: auto; min-height: 90vh; padding: 100px 0 50px 0; }
    .hero-overlay { padding: 0 20px; justify-content: center; text-align: center; background: rgba(0, 0, 0, 0.7); }
    .hero-btns { flex-direction: column; }
    .nav-btn { display: none; }
    .product-card { min-width: 85vw; }
    .search-dropdown { 
        position: absolute !important; width: 90vw !important; 
        left: auto !important; right: 0 !important; max-width: 320px; 
    }
}


/* EL HERO QUE TODO LO VE (Y TODO LO OCUPA) */
.hero-full {
    height: 100vh; /* Ocupa el 100% del alto de la ventana del navegador */
    width: 100%;
    /* Efecto Parallax: background-attachment fixed hace la magia */
    background: url('../assets/fondo.jpg') no-repeat center center fixed; 
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0; /* Sin espacios, como tu ex cuando quería volver */
}

/* Ajuste para que el degradado se vea más pro */
.hero-overlay {
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.4) 0%, 
        rgba(10, 10, 26, 0.9) 100%
    ); /* Un degradado que se funde con la tienda al bajar */
}

/* Para que en el celular no se rompa el efecto (algunos móviles odian el 'fixed') */
@media (max-width: 768px) {
    .hero-full {
        background-attachment: scroll; /* En móvil mejor que ruede normal para evitar tirones */
        height: 100vh;
    }
}

/*Footer */
.main-footer {
    background-color: #08080a; /* Fondo casi negro */
    padding: 50px 8% 20px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    border-top: 4px solid #4b0082; /* La línea morada de la imagen */
    padding-top: 40px;
}

.footer-title {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #00f2ff; /* Color Neón para resaltar títulos */
}

.footer-col p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Botón de Instagram Estilizado */
.insta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border: 1px solid #4b0082;
    border-radius: 8px;
    transition: 0.3s ease;
    font-weight: 500;
}

.insta-button:hover {
    background: #4b0082;
    box-shadow: 0 0 15px rgba(75, 0, 130, 0.5);
    transform: translateY(-2px);
}

/* Info de contacto */
.contact-info {
    text-align: right;
}

.contact-item {
    margin-bottom: 12px;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.footer-legal {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}

/* Ajuste móvil */
@media (max-width: 850px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-info {
        text-align: center;
    }
    .insta-button {
        justify-content: center;
    }
}


/* Contenedor del buscador */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgb(255, 255, 255);
    border-radius: 50px;
    padding: 5px 15px;
    border: 1px solid var(--accent-neon);
    width: 100%; /* Ocupa el espacio disponible */
    max-width: 300px; /* Pero no se estira infinito en PC */
}

/* El campo de texto */
.search-box input {
    background: transparent;
    border: none;
    color: rgb(0, 0, 0);
    padding: 8px;
    outline: none;
    width: 100%; /* Se adapta al contenedor */
    font-size: 14px;
}

/* Ajuste específico para móviles */
@media (max-width: 768px) {
    .nav-actions {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 10px 0;
    }

    .search-box {
        max-width: 90%; /* En móvil ocupa casi todo el ancho */
        margin: 0 auto;
    }
    
    /* Bajamos un poco el dropdown de resultados para que no tape el input */
    .search-dropdown {
        width: 100%;
        left: 0;
        top: 45px;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Esto permite que el buscador se acomode mejor */
    gap: 10px;
}

/* 8. ANIMACIONES Y RESPONSIVE (ACTUALIZADO) */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 242, 255, 0); }
    100% { transform: scale(1); }
}

@media (max-width: 992px) {
    /* Contenedor principal: permite que los hijos se envuelvan */
    .nav-container {
        display: flex;
        flex-wrap: wrap; 
        justify-content: space-between; /* Logo izquierda, Rayitas derecha */
        align-items: center;
        padding: 10px 0;
    }

    /* 1. LOGO (Arriba Izquierda) */
    .nav-logo {
        order: 1;
        flex: 1;
        display: flex;
        justify-content: flex-start;
    }

    .nav-logo img {
        height: 40px; /* Tamaño un poco más pequeño para móvil */
    }

    /* 2. LAS TRES RAYITAS (Arriba Derecha) */
    .mobile-menu-btn {
        display: block;
        order: 2;
        flex: 1;
        text-align: right;
        background: none;
        border: none;
        font-size: 2rem;
    }

    /* 3. EL BUSCADOR (Debajo de ambos) */
    .nav-actions {
        order: 3;
        width: 100%; /* Obliga a bajar a la siguiente línea */
        margin-top: 15px;
        display: flex;
        justify-content: center;
    }

    .search-box {
        width: 100%;
        max-width: 95%; /* Ocupa casi todo el ancho */
        height: 38px;
    }

    /* Menú desplegable ajustado a la nueva altura */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 130px; /* Espacio para el logo + buscador */
        left: 0;
        width: 100%;
        background: var(--dropdown-bg);
        padding: 20px;
        border-bottom: 2px solid var(--accent-neon);
        z-index: 1000;
    }

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

@media (max-width: 768px) {
    .hero-full { 
        height: 100vh; 
        background-attachment: scroll; 
    }
    
    .product-card { 
        min-width: 85vw; 
    }

    .search-dropdown { 
        width: 95vw !important;
        left: 2.5vw !important;
        top: 45px;
    }
}


