@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --accent: #d4af37;
    --accent-hover: #f1c40f;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* Typography */
h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header Wrapper Fix */
.main-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 25000; /* Por encima de la capa oscura */
}

/* Corporate Top Bar */
.corporate-top-bar {
    background: #050505;
    border-bottom: 1px solid var(--accent);
    padding: 8px 5%;
    font-size: 0.75rem;
    color: var(--text-muted);
    position: relative;
}

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

.corporate-top-bar a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.corporate-top-bar a:hover {
    color: white;
}

.top-socials i {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Navbar unificado */
nav {
    position: relative;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    overflow: visible;
}

@media (max-width: 768px) {
    .corporate-top-bar { font-size: 0.65rem; text-align: center; }
    .top-socials { display: none; }
    nav { padding: 0.8rem 3%; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    transition: all 0.3s ease;
    position: relative;
}

.logo-img {
    height: 65px; /* Un poco más grande (era 52px) */
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.footer-logo-container {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.footer-logo-container .logo-img {
    height: 75px; /* Un poco más grande para el footer */
}

.footer-logo-container:hover .logo-img {
    transform: scale(1.05);
}


@media (max-width: 580px) {
    .logo { padding: 4px 8px; gap: 5px; }
    .logo-img { height: 28px; }
    .bolt { width: 4px; height: 4px; }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

/* .logo and .logo-img are consolidated above */

.nav-icons {
    flex-shrink: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 1.2rem;
}

.hamburger { display: none; }

/* Hero Section */
/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 3;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-in-out 0.3s;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
}

.slide-title span {
    color: var(--accent);
}

.slide-text {
    font-size: 1.2rem;
    color: #eee;
    margin-bottom: 2rem;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2%;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
}

.slider-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
}

.slider-btn:hover {
    background: var(--accent);
    color: #000;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background: var(--accent);
    transform: scale(1.2);
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-whatsapp-full {
    background: #25d366;
    color: white;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-pdf {
    background: #ff4d4d;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
}
.btn-pdf:hover { background: #cc0000; transform: translateY(-3px); }

/* Marcas Grid */
.brands-section { background: var(--bg-secondary); padding: 80px 5%; text-align: center; }
.brands-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 60px; margin-top: 40px; opacity: 0.6; }
.brand-item i { font-size: 3rem; color: var(--text-muted); }
.brand-item:hover { opacity: 1; transform: scale(1.1); color: var(--accent); transition: var(--transition); }

/* Sidebar del Carrito */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 30000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-left: 1px solid var(--card-border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 29000;
    display: none;
    backdrop-filter: blur(5px);
}

.cart-overlay.open {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cart-header h3 {
    color: var(--accent);
}

#close-cart {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    align-items: center;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-info p {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.cart-item-controls button {
    background: var(--card-border);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
}

.cart-footer {
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
}

/* Dropdown Navbar */
.dropdown { position: relative; }
.dropdown-menu { 
    position: absolute; top: 100%; left: 0; background: var(--bg-secondary); 
    min-width: 200px; display: none; list-style: none; padding: 10px 0;
    border: 1px solid var(--card-border); border-radius: 5px;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { padding: 10px 20px; display: block; font-size: 0.9rem; }
.dropdown-menu li a:hover { background: rgba(255,255,255,0.05); color: var(--accent); }

/* Botón Flotante WhatsApp Premium */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

/* Pulse Ripple Effect */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50px;
    background: #25d366;
    z-index: -1;
    opacity: 0.3;
    animation: wa-pulse 2s infinite;
}

/* Notification Dot */
.whatsapp-float::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ff3b30;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: wa-bounce 1s infinite alternate;
}

.whatsapp-float:hover {
    transform: scale(1.05) translateY(-5px);
    background: #128c7e;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-float i {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes wa-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

@media (max-width: 768px) {
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 15px; border-radius: 50%; bottom: 20px; left: 20px; width: 55px; height: 55px; justify-content: center; }
    .whatsapp-float::before { border-radius: 50%; }
}
}

/* Footer Premium */
.main-footer {
    background: #050505;
    padding: 80px 5% 40px;
    border-top: 1px solid var(--card-border);
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; /* Cambiado de 4 a 5 columnas */
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand .logo { font-size: 2rem; margin-bottom: 20px; }
.footer-brand p { color: var(--text-muted); line-height: 1.6; margin-bottom: 25px; max-width: 320px; }

.social-icons { display: flex; gap: 15px; }
.social-icons a {
    width: 45px; height: 45px; background: rgba(255,255,255,0.03);
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; color: white; transition: var(--transition);
    border: 1px solid var(--card-border);
}
.social-icons a:hover { background: var(--accent); color: black; transform: translateY(-5px); border-color: var(--accent); }
.social-icons i { font-size: 1.2rem; }

.footer-grid h4 { color: white; font-size: 1.1rem; margin-bottom: 30px; position: relative; text-transform: uppercase; letter-spacing: 1px; }
.footer-grid h4::after {
    content: ''; position: absolute; bottom: -10px; left: 0;
    width: 40px; height: 2px; background: var(--accent);
}

.footer-links ul, .footer-contact ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); transition: var(--transition); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); padding-left: 8px; }

.footer-contact p { color: var(--text-muted); margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.footer-contact i { color: var(--accent); margin-top: 4px; }

.map-box { height: 200px; border-radius: 15px; overflow: hidden; border: 1px solid var(--card-border); filter: grayscale(1) invert(1) opacity(0.7); transition: var(--transition); }
.map-box iframe { width: 100%; height: 100%; border: none; }
.map-box:hover { filter: grayscale(0) invert(0) opacity(1); }

.footer-bottom {
    text-align: center; padding-top: 40px; border-top: 1px solid var(--card-border);
    color: var(--text-muted); font-size: 0.85rem; width: 100%;
}

@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-map { grid-column: span 3; margin-top: 20px; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-map { grid-column: span 2; }
}

@media (max-width: 580px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-map { grid-column: span 1; }
}

/* Layout & Sections */
section { padding: 100px 5%; }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; }
.section-title div { width: 60px; height: 4px; background: var(--accent); margin: 15px auto; }

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-link {
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.page-link:hover, .page-link.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.product-image {
    width: 100%;
    height: 240px;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img { transform: scale(1.1); }

.product-info h3 { font-size: 1.1rem; margin-bottom: 10px; color: white; }
.product-price { 
    font-size: 1.4rem; 
    color: var(--accent); 
    font-weight: 900; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: baseline; 
    gap: 4px;
    letter-spacing: -0.5px;
}
.product-price span { font-size: 0.8rem; opacity: 0.8; font-weight: 700; }

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.add-to-cart:hover {
    background: var(--accent);
    color: #000;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-aos].appear {
    opacity: 1;
    transform: translateY(0);
}

/* Admin Dashboard Stats */
.stats-grid-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--bg-secondary); padding: 30px; border-radius: 15px; border: 1px solid var(--card-border); text-align: center; }
.stat-card h3 { color: var(--accent); font-size: 2rem; margin-bottom: 5px; }
.stat-card p { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; }

/* ============================================
   HAMBURGER BUTTON
   ============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.35s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================ */
@media (max-width: 900px) {
    /* Nav */
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: #111;
        flex-direction: column;
        padding: 100px 30px 40px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1050;
        border-left: 1px solid var(--card-border);
        overflow-y: auto;
    }
    .nav-links.open { right: 0; }
    .nav-links li { border-bottom: 1px solid var(--card-border); }
    .nav-links li a { display: block; padding: 16px 0; font-size: 1.05rem; }

    /* Dropdown en móvil */
    .dropdown-menu {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 0 0 15px !important;
        min-width: unset !important;
        border-top: none !important;
    }
    .dropdown-menu li a { font-size: 0.9rem; padding: 10px 0; color: var(--text-muted); }

    /* Overlay cuando el menú está abierto */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        z-index: 1040;
    }
    .nav-overlay.active { display: block; }

    /* Hero */
    .slide-title { font-size: 2.5rem; }
    .slide-text { font-size: 1rem; }
    .slider-btn { width: 38px; height: 38px; font-size: 0.8rem; }

    /* Secciones */
    section { padding: 60px 5%; }

    /* Shop grid */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    /* Filtros tienda */
    .filter-bar { flex-direction: column; gap: 15px; align-items: stretch; }
    .filter-bar form { flex-direction: column; }
    .filter-bar select, .filter-bar input { width: 100%; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-map { grid-column: 1 / -1; }

    /* Pagination */
    .pagination { flex-wrap: wrap; gap: 6px; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 580px)
   ============================================ */
@media (max-width: 580px) {
    /* Nav */
    nav { padding: 1rem 5%; }

    /* Hero */
    .hero-slider { height: 90vh; }
    .slide { background-attachment: scroll; } /* parallax off para móvil */
    .slide-title { font-size: 1.9rem; letter-spacing: 1px; margin-bottom: 1rem; }
    .slide-text { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .hero-btns { flex-direction: column; gap: 10px; align-items: center; }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }

    /* Slider controls */
    .slider-btn { width: 32px; height: 32px; }

    /* Products */
    .products-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Section title */
    .section-title h2 { font-size: 1.6rem; }

    /* Product detail */
    .product-detail-grid { grid-template-columns: 1fr; }

    /* Shop filters */
    .shop-header { flex-direction: column; gap: 10px; }

    /* Carrito sidebar */
    .cart-sidebar { width: 100%; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom p { font-size: 0.75rem; }

    /* WhatsApp float */
    .whatsapp-float span { display: none; }
    .whatsapp-float { width: 52px; height: 52px; border-radius: 50%; padding: 0; justify-content: center; }
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-aos].appear {
    opacity: 1;
    transform: translateY(0);
}

/* Marcas Marquee Animation */
@keyframes scrollBrands {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.brands-marquee:hover .brands-track {
    animation-play-state: paused;
}

/* ============================================
   PopUp Lead Magnet Premium
   ============================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: 0.5s ease;
}
.popup-overlay.active { display: flex; opacity: 1; }

.popup-card {
    background: #0a0a0a;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 30px;
    max-width: 500px;
    width: 100%;
    padding: 50px 40px;
    position: relative;
    transform: scale(0.9);
    transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 20px rgba(212,175,55,0.05);
}
.popup-overlay.active .popup-card { transform: scale(1); }

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: #888;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.popup-close:hover { background: #ff3b30; color: #fff; transform: rotate(90deg); }

.popup-subtitle { color: var(--accent); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; }
.popup-title { font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 15px; letter-spacing: -0.5px; }
.popup-text { color: #888; font-size: 1rem; line-height: 1.6; margin-bottom: 30px; }

.popup-form .form-group { margin-bottom: 15px; }
.popup-form input, .popup-form textarea {
    width: 100%;
    background: #111;
    border: 1px solid #222;
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    transition: 0.3s;
}
.popup-form input:focus, .popup-form textarea:focus { border-color: var(--accent); outline: none; background: #000; }

.btn-whatsapp-full {
    width: 100%;
    background: #25d366;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.3s;
}
.btn-whatsapp-full:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); }

/* ============================================
   Buscador Global Premium Overlay
   ============================================ */
.search-trigger { color: #fff; font-size: 1.1rem; text-decoration: none; transition: 0.3s; margin-right: 5px; }
.search-trigger:hover { color: var(--accent); transform: scale(1.1); }

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(15px);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: 0.5s ease;
}
.search-overlay.active { display: flex; opacity: 1; }

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.5;
}
.search-close:hover { opacity: 1; transform: rotate(90deg); color: var(--accent); }

.search-inner { width: 100%; max-width: 800px; text-align: center; transform: translateY(30px); transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.search-overlay.active .search-inner { transform: translateY(0); }

.search-form-global { position: relative; border-bottom: 2px solid #222; padding-bottom: 15px; margin-bottom: 20px; transition: 0.4s; }
.search-form-global:focus-within { border-color: var(--accent); }

.search-form-global input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Outfit';
    outline: none;
    padding-right: 60px;
    letter-spacing: -1px;
}
.search-form-global input::placeholder { color: #222; }

.search-form-global button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}
.search-form-global button:hover { transform: translateY(-50%) translateX(5px); }

.search-hint { color: #444; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

@media (max-width: 768px) {
    .search-form-global input { font-size: 1.8rem; }
    .search-close { top: 20px; right: 20px; font-size: 1.5rem; }

    /* Mobile Nav Premium (Glassmorphism) */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: #0a0a0a; /* Fondo sólido para evitar confusión */
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px;
        z-index: 20000 !important; /* Valor altísimo */
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -20px 0 50px rgba(0,0,0,0.8);
        overflow-y: auto;
        pointer-events: auto;
    }
    .nav-links.open { right: 0; }
    .nav-links li { margin: 15px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links li a { font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff !important; display: block; width: 100%; position: relative; z-index: 20001; }
    .nav-links li a:hover { color: var(--accent) !important; }

    /* Estilo para el dropdown en móvil */
    .nav-links .dropdown-menu {
        position: static;
        display: block;
        background: none;
        border: none;
        padding: 15px 0 0 20px;
        box-shadow: none;
    }
    .nav-links .dropdown-menu li { border: none; padding-bottom: 10px; }
    .nav-links .dropdown-menu li a { font-size: 1rem; color: #888 !important; text-transform: none; font-weight: 400; }

    .nav-icons {
        display: flex;
        align-items: center;
        gap: 1rem;
        min-width: 120px;
        justify-content: flex-end;
    }

    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 35px;
        height: 35px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 21000 !important; /* Por encima de todo */
        padding: 0;
        margin-left: 10px;
    }
    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        border-radius: 10px;
        transition: 0.3s;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--accent); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--accent); }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(8px);
        z-index: 19000 !important;
        display: none;
        opacity: 0;
        transition: 0.3s;
    }
    .nav-overlay.active { display: block; opacity: 1; }

    /* Cart Sidebar Mobile */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        z-index: 30000 !important;
    }
    .cart-sidebar.open {
        right: 0;
    }
}
