/* =================================================================== */
/* ===== SISTEMA DE DISEÑO "CIRCUIT PREMIUM" - VERSIÓN FINAL MÓVIL ==== */
/* =================================================================== */

:root {
    /* --- Paleta de Colores Premium --- */
    --bg-deep: #050505;
    /* Fondo principal */
    --bg-surface: #0f0f0f;
    /* Fondo de tarjetas/secciones */
    --bg-glass: rgba(15, 15, 15, 0.85);
    /* Vidrio */

    --accent-gold: #D4AF37;
    /* Dorado Principal */
    --accent-gold-light: #F1D475;
    --accent-gold-dark: #AA8C2C;

    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;

    --success: #2ecc71;
    --danger: #e74c3c;

    /* --- Tipografía --- */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* --- Efectos Visuales --- */
    --glass-blur: blur(15px);
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* === ANIMACIONES === */
@keyframes float-logo {

    0%,
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    }

    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.3));
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes sheen {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =================================================================== */
/* ===== RESET Y BASE GLOBAL ===== */
/* =================================================================== */
html,
body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    /* Asegura contexto de posicionamiento */
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Wrapper para compensar el Navbar Fijo */
.main-content-wrapper {
    margin-top: 80px;
    min-height: 100vh;
}

/* =================================================================== */
/* ===== NAVBAR PREMIUM (MENÚ MEJORADO) ===== */
/* =================================================================== */
.navbar-premium {
    background: rgba(5, 5, 5, 0.95);
    /* Un poco más oscuro para legibilidad móvil */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--border-subtle);
    padding: 12px 0;
    /* FIX: Force Visibility */
    top: 0 !important;
    z-index: 9999 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* --- NUEVO ESTILO DE ENLACES (Píldoras Interactivas) --- */
.navbar-premium .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px !important;
    /* Más espacio interno */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    /* Bordes suaves */
    margin: 0 4px;
    /* Espacio entre botones */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid transparent;
    /* Para evitar saltos al hacer hover */
}

/* Hover: Efecto Cristal Iluminado */
.navbar-premium .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

/* Activo: Borde Dorado y Fondo Sutil */
.navbar-premium .nav-link.active {
    color: var(--accent-gold) !important;
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* --- OCULTAR CARRITO (TEMPORAL) --- */
.cart-icon-nav,
#icono-carrito-flotante,
.mini-cart-overlay,
#navbar-cart-icon {
    display: none !important;
}

.bg-gold {
    background-color: var(--accent-gold) !important;
    color: #000;
    font-weight: bold;
}

/* =================================================================== */
/* ===== BOTONES (ESTILO LÍQUIDO PREMIUM) ===== */
/* =================================================================== */
.btn {
    border-radius: 50rem;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

/* Efecto Sheen */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: -1;
    animation: sheen 3s infinite;
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    color: #000;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-premium-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-premium-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-3px);
}

.btn-whatsapp-glow {
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    animation: pulse-ring 2s infinite;
    flex-shrink: 0;
}

/* =================================================================== */
/* ===== TARJETAS Y CONTENIDO (TILT 3D) ===== */
/* =================================================================== */
.content-card,
.shop-category-card,
.product-card-public {
    background: var(--bg-surface);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
}

/* Efectos Tilt (Desactivados en móvil más abajo) */
.tilt-left:hover {
    transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.5);
}

.tilt-right:hover {
    transform: perspective(1000px) rotateY(5deg) translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 10px 15px 30px rgba(0, 0, 0, 0.5);
}

.tilt-center:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* Hover Genérico */
.content-card:hover,
.product-card-public:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-text,
.text-white-50 {
    color: var(--text-secondary) !important;
}

/* Iconos */
.feature-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

.content-card:hover .feature-icon {
    transform: scale(1.1) translateZ(20px);
}

/* =================================================================== */
/* ===== HERO SECTION (INDEX) ===== */
/* =================================================================== */
.hero-section {
    position: relative;
    padding: 8rem 0;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 80%);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-logo-anim {
    animation: float-logo 6s ease-in-out infinite;
    width: 100%;
    max-width: 380px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* =================================================================== */
/* ===== TIENDA & ESTRUCTURAS ===== */
/* =================================================================== */
.tienda-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

#tienda-layout,
.tienda-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 2rem;
}

#tienda-sidebar,
.tienda-sidebar {
    background-color: var(--bg-surface);
    padding: 20px;
    border-radius: 12px;
    border: var(--border-subtle);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

#tienda-sidebar .filter-button {
    width: 100%;
    background-color: var(--accent-gold);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    cursor: pointer;
}

#tienda-sidebar ul li a {
    display: block;
    color: var(--text-secondary);
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.2s;
}

#tienda-sidebar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

#tienda-sidebar ul li a.active {
    background-color: var(--accent-gold);
    color: #000;
    font-weight: bold;
}

.shop-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

/* =================================================================== */
/* ===== FORMULARIOS ===== */
/* =================================================================== */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px;
    padding: 12px;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    color: #fff;
}

/* =================================================================== */
/* ===== FOOTER ===== */
/* =================================================================== */
footer {
    background: #000 !important;
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 1px solid #222;
}

.btn-floating {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: 0.3s;
}

.btn-floating:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: rotate(360deg);
}

/* =================================================================== */
/* ===== RESPONSIVE & MOBILE OPTIMIZATION ===== */
/* =================================================================== */

@media (max-width: 991px) {

    /* Navbar en Móvil: Fondo sólido para legibilidad */
    .navbar-collapse {
        background-color: #050505;
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    .navbar-premium .nav-link {
        margin: 5px 0;
        /* Más espacio vertical en móvil */
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Ajustar textos gigantes del Hero */
    h1.display-3,
    h1.display-4 {
        font-size: 2.5rem;
        /* Reducir títulos grandes */
    }

    .lead {
        font-size: 1rem;
    }

    /* Logo más pequeño en móvil */
    .hero-logo-anim {
        max-width: 220px;
    }

    /* Layouts a una columna */
    .product-layout,
    .tienda-container {
        grid-template-columns: 1fr;
    }

    /* Sidebar tienda estático */
    #tienda-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }

    /* Desactivar efectos Tilt complejos en móvil para mejorar performance */
    .tilt-left:hover,
    .tilt-right:hover,
    .tilt-center:hover {
        transform: translateY(-5px);
    }

    /* Ajustes de espaciado */
    .header-dark,
    .hero-section {
        padding: 4rem 1rem !important;
    }

    .content-card {
        padding: 1.5rem;
    }

    .nav-actions {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {

    /* Ajustes extra para teléfonos pequeños */
    .btn {
        width: 100%;
        /* Botones full width en móvil */
        display: block;
        margin-bottom: 10px;
    }

    .d-flex.gap-3.flex-wrap {
        flex-direction: column;
    }

    .btn-whatsapp-glow {
        width: 100%;
        /* Whatsapp barra en móvil pequeño si se desea, o mantener redondo */
        border-radius: 50rem;
        /* Volverlo píldora si ocupa todo el ancho */
    }
}

/* === AGREGAR ESTO AL CSS EXISTENTE === */

/* Botón Azul Glow (Para PC/Mac) */
.btn-blue-glow {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-blue-glow:hover {
    background: linear-gradient(135deg, #0b5ed7, #0aa2c0);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.6);
    transform: translateY(-3px) scale(1.02);
    color: white;
}

/* Fix ReCAPTCHA Badge (Para que no tape botones) */
.grecaptcha-badge {
    z-index: 9999;
    bottom: 80px !important;
    /* Lo sube para que no tape el footer o botones fijos */
}

/* === ESTILOS NUEVA TIENDA (EBAY DARK STYLE) === */
.search-bar-container {
    background: var(--bg-surface);
    border: var(--border-subtle);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50px 0 0 50px;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: #fff;
    box-shadow: none;
}

.search-btn {
    border-radius: 0 50px 50px 0;
    padding-left: 25px;
    padding-right: 25px;
}

.category-list-item {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.category-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 20px;
}

.category-list-item.active {
    background: var(--accent-gold);
    color: #000;
    font-weight: bold;
}

/* Tarjeta Producto Tienda (Más compacta y funcional) */
.store-card {
    /* Quitamos cualquier altura forzada heredada */
    height: auto;
    min-height: 100%;
    /* Ocupa el alto disponible pero sin forzar estiramiento raro */
    background: #121212;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.store-img-wrapper {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #fff;
    /* Fondo blanco para productos suele verse mejor en e-commerce, o usar oscuro */
    overflow: hidden;
}

.store-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s;
}

.store-card:hover img {
    transform: scale(1.05);
}

.store-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.store-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.store-title {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

/* Botón Añadir Rápido */
.btn-cart-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    border: none;
}

.btn-cart-icon:hover {
    background: var(--accent-gold);
    color: #000;
}

/* === CORRECCIÓN DE LOGOS DE MARCAS === */
.brand-logo-list img {
    height: 40px;
    /* Altura estándar */
    width: auto;
    object-fit: contain;
    /* ESTA LÍNEA ES LA CLAVE: Convierte cualquier logo a Blanco Puro */
    filter: brightness(0) invert(1);
    opacity: 0.5;
    /* Un poco apagado por defecto */
    transition: all 0.3s ease;
}

.brand-logo-list img:hover {
    opacity: 1;
    transform: scale(1.1);
    /* Al pasar el mouse, brilla */
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* === BOTONES ESPECÍFICOS === */
.btn-pc {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    border: none;
}

.btn-pc:hover {
    background: linear-gradient(135deg, #0b5ed7, #0aa2c0);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.6);
    transform: translateY(-3px) scale(1.02);
    color: white;
}

.btn-mobile {
    background: linear-gradient(135deg, #D4AF37, #F1D475);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: none;
    font-weight: 800;
}

.btn-mobile:hover {
    background: linear-gradient(135deg, #C5A028, #E0C364);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px) scale(1.02);
    color: #000;
}

/* Fix altura tarjetas contacto */
.contact-card-wrapper {
    height: auto !important;
    /* Quita altura forzada */
    min-height: 0 !important;
}

/* === FIX LISTAS DESPLEGABLES (SELECT) === */
.form-select option {
    background-color: #000;
    /* Fondo negro para las opciones */
    color: #fff;
    /* Texto blanco */
    padding: 10px;
}

/* === FIX RECAPTCHA (INTEGRADO) === */
/* Ocultamos el badge flotante molesto */
.grecaptcha-badge {
    visibility: hidden;
}

/* === GOOGLE REVIEWS CARDS === */
.google-review-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: transform 0.3s ease;
}

.google-review-card:hover {
    transform: translateY(-5px);
    border-color: #4285F4;
    /* Azul Google al pasar el mouse */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.reviewer-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.reviewer-info h6 {
    margin: 0;
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
}

.stars {
    color: #F4B400;
    /* Amarillo Google Maps */
    font-size: 0.8rem;
    margin-top: 2px;
}

.google-logo-icon {
    margin-left: auto;
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.review-text {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: normal;
    /* Quitamos itálica para que se lea mejor */
}

/* === CORRECCIÓN DEFINITIVA TIENDA (Estilo E-Commerce) === */

/* Sidebar de Categorías */
.tienda-sidebar {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.9), rgba(5, 5, 5, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.tienda-sidebar h6 {
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    padding: 1rem !important;
    text-align: center;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    margin: 0;
}

/* Enlaces del Sidebar (Arregla el color azul feo) */
.category-list a,
.tienda-sidebar a,
.category-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.category-list a:hover,
.tienda-sidebar a:hover,
.category-link:hover {
    background: rgba(212, 175, 55, 0.05);
    color: #fff !important;
    border-left-color: var(--accent-gold);
    padding-left: 25px;
    font-weight: normal;
}

.category-link.active {
    background: rgba(212, 175, 55, 0.1) !important;
    color: var(--accent-gold) !important;
    font-weight: 700 !important;
    border-left-color: var(--accent-gold);
}

/* Parent category arrow */
.parent-category .fa-chevron-right {
    transition: transform 0.3s ease;
}

a[aria-expanded="true"] .fa-chevron-right {
    transform: rotate(90deg);
}

/* Tarjeta de Producto (Estilo eBay Dark) */
.store-card {
    background-color: #151515;
    border: 1px solid #333;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
}

.store-img-wrapper {
    position: relative;
    padding-top: 100%;
    /* Cuadrado perfecto 1:1 */
    background-color: #fff;
    /* Fondo blanco para resaltar el producto */
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.store-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s;
}

.store-card:hover img {
    transform: scale(1.05);
}

.store-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.store-price {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 5px;
}

.store-title {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limita a 2 lineas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-actions {
    margin-top: auto;
}

/* === FIX TESTIMONIOS (Icono Google) === */
.google-icon-fix {
    font-size: 1.5rem;
    color: #fff;
    /* Blanco puro */
}

/* === FIX FINAL RECAPTCHA (TEXTO LEGAL) === */
.recaptcha-legal-text {
    font-size: 0.6rem;
    color: #666;
    line-height: 1.2;
    text-align: right;
    max-width: 200px;
}

.recaptcha-legal-text a {
    color: #888;
    text-decoration: underline;
}

/* === TIENDA ESTILO EBAY (REDSEÑO) === */
.ebay-sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.ebay-link {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.95rem;
    transition: 0.2s;
}

.ebay-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
    transform: translateX(5px);
}

.ebay-card {
    background-color: #121212;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}

.ebay-card:hover {
    border-color: #555;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.ebay-img-container {
    width: 100%;
    /* Aspect ratio fijo para evitar deformaciones */
    aspect-ratio: 4/3;
    background-color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ebay-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Asegura que la imagen no se estire */
    transition: transform 0.3s;
}

.ebay-body {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ebay-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    /* Evita que el título sea kilométrico */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    /* Altura fija para alineación */
}

.ebay-card:hover .ebay-title {
    color: var(--accent-gold);
    /* Título cambia de color al hover */
    text-decoration: underline;
}

.ebay-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-top: auto;
}

.ebay-shipping {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
}

/* Skeleton Loading (Para que no se vea vacío mientras carga) */
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* === TIENDA HERO BANNER (EL "BOOM") === */
.store-hero {
    background: linear-gradient(135deg, #050505 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.store-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.store-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.store-badge {
    background-color: var(--accent-gold);
    color: #000;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

/* === PRODUCT CARDS REFINADAS (Estilo Amazon Dark/eBay) === */
.product-card-store {
    background-color: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-store:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
}

.product-card-img-wrapper {
    background-color: #fff;
    /* Fondo blanco para resaltar el producto */
    padding: 20px;
    border-radius: 8px 8px 0 0;
    position: relative;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card-store:hover img {
    transform: scale(1.1);
}

.product-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category-label {
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #eee;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-top: auto;
    /* Empuja el precio al fondo */
    margin-bottom: 15px;
}

.btn-add-fast {
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 700;
    padding: 8px;
    border-radius: 4px;
    transition: 0.2s;
}

.btn-add-fast:hover {
    background: var(--accent-gold);
    color: #000;
}

/* === ESTILOS TIENDA EBAY DARK === */
.ebay-link {
    color: #ccc;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ebay-link:hover {
    background: #222;
    color: var(--accent-gold);
    padding-left: 20px;
}

.ebay-card {
    background-color: #121212;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.ebay-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.ebay-img-container {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #fff;
    /* Fondo blanco para producto */
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ebay-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.3s;
}

.ebay-card:hover img {
    transform: scale(1.1);
}

.ebay-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ebay-title {
    font-size: 1rem;
    color: #eee;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ebay-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-top: auto;
}

.ebay-shipping {
    font-size: 0.75rem;
    color: #2ecc71;
    /* Verde envío gratis */
    margin-bottom: 10px;
    font-weight: bold;
}

/* =================================================================== */
/* ===== TIENDA V2: "CYBER-PREMIUM" (EL REDISEÑO) ===== */
/* =================================================================== */

/* 1. BUSCADOR FLOTANTE (NEÓN) */
.search-bar-container {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.search-bar-container:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
    transform: scale(1.01);
}

.search-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 500;
}

.search-input::placeholder {
    color: #555;
}

.search-btn {
    background: var(--accent-gold);
    color: #000;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: 0.3s;
}

.search-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--accent-gold);
}

/* 2. SIDEBAR ESTILO HUD (HEADS-UP DISPLAY) */
.tienda-sidebar {
    background: linear-gradient(180deg, #0f0f0f 0%, #050505 100%);
    border: 1px solid #222;
}

.ebay-sidebar-title {
    background: #000;
    color: var(--accent-gold);
    letter-spacing: 2px;
    font-size: 0.9rem;
    border-bottom: 2px solid #222;
}

.ebay-link {
    padding: 12px 15px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #111;
    color: #888;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ebay-link:hover {
    background: #111;
    color: #fff;
    padding-left: 25px;
    border-left-color: var(--accent-gold);
}

.ebay-link::after {
    content: '>';
    position: absolute;
    right: -20px;
    transition: 0.3s;
    color: var(--accent-gold);
}

.ebay-link:hover::after {
    right: 15px;
}

/* 3. TARJETAS DE PRODUCTO "HOVER REVEAL" */
.store-card {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

/* Estado Normal */
.store-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* Contenedor de Imagen (Con gradiente suave para integrar) */
.ebay-img-container {
    background: radial-gradient(circle, #2a2a2a 0%, #0f0f0f 70%);
    /* Ya no es blanco puro */
    padding: 20px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ebay-img-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
    /* Sombra real a la imagen */
    transition: transform 0.4s ease;
}

.store-card:hover .ebay-img-container img {
    transform: scale(1.15) rotate(-2deg);
    /* Efecto 3D al hover */
}

/* Cuerpo de la tarjeta */
.ebay-body {
    padding: 20px;
    background: #0f0f0f;
    position: relative;
    z-index: 2;
}

.ebay-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
    min-height: 45px;
}

.ebay-price {
    font-size: 1.8rem;
    background: linear-gradient(90deg, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-top: 10px;
}

/* Botón que aparece mágicamente */
.btn-add-fast {
    background: var(--accent-gold);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 10px;
    margin-top: 15px;
    width: 100%;
    opacity: 0.7;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.store-card:hover .btn-add-fast {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* =================================================================== */
/* ===== CARRITO V2: "CHECKOUT EXPERIENCE" ===== */
/* =================================================================== */

/* Tarjeta de Producto Horizontal */
.cart-item-card {
    background-color: var(--bg-surface);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

/* Imagen del producto en el carrito */
.cart-img-wrapper {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 20px;
}

.cart-img-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Info del producto */
.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-decoration: none;
    transition: 0.2s;
}

.cart-item-title:hover {
    color: var(--accent-gold);
}

.cart-item-cat {
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Control de Cantidad Estilizado */
.qty-control-group {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #333;
    border-radius: 50px;
    padding: 5px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover {
    background: var(--accent-gold);
    color: #000;
}

.qty-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: bold;
}

/* Precio y Eliminar */
.cart-item-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-gold);
    min-width: 120px;
    text-align: right;
}

.btn-trash {
    color: #555;
    background: transparent;
    border: none;
    margin-left: 20px;
    transition: 0.2s;
    font-size: 1.2rem;
}

.btn-trash:hover {
    color: var(--danger);
    transform: scale(1.1);
}

/* Panel de Resumen (Sticky) */
.checkout-summary-card {
    background: #121212;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 100px;
    /* Para que baje con el scroll */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 0.95rem;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #555;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-item-card {
        flex-wrap: wrap;
    }

    .cart-img-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .cart-item-info {
        width: 100%;
        margin-bottom: 15px;
    }

    .qty-control-group {
        margin-right: auto;
    }

    .cart-item-price {
        text-align: left;
        margin-left: auto;
    }
}

/* Checkout Radio Button Style */
.form-check-input {
    background-color: #222;
    border-color: #555;
}

.form-check-input:checked {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.form-check-label {
    cursor: pointer;
    font-weight: 600;
}

/* =================================================================== */
/* ===== TIENDA V3: HERO HÍBRIDO + CARRUSEL 3D + SIDEBAR FIX ===== */
/* =================================================================== */

/* --- 1. HERO REESTRUCTURADO --- */
.store-hero-v2 {
    background: radial-gradient(circle at 30% 50%, #1a1a1a 0%, #050505 100%);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    /* Sombra interna para profundidad */
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* --- 2. BUSCADOR INTEGRADO (Más compacto) --- */
.hero-search-form {
    max-width: 500px;
    /* Limita el ancho para que no se estire */
    position: relative;
    margin-top: 1.5rem;
}

.hero-search-input {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    padding: 12px 15px;
    width: 100%;
    transition: 0.3s;
}

.hero-search-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    color: #fff;
}

.hero-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 0 15px;
    font-weight: bold;
    transition: 0.2s;
}

.hero-search-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

/* --- 3. CARRUSEL 3D INFINITO (Estilo Rotativo) --- */
.carousel-3d-container {
    perspective: 2000px;
    /* Aumentamos perspectiva para que no se vea deforme el anillo grande */
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Cortamos lo que se salga del contenedor */
}

.carousel-3d-rotator {
    width: 160px;
    /* Tarjetas un poco más chicas para que entren bien */
    height: 120px;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotate3d 40s infinite linear;
    /* Rotación más lenta por la cantidad de items */
}

.carousel-3d-item {
    position: absolute;
    width: 160px;
    height: 120px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Borde dorado sutil */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    /* La magia ocurre aquí: Backface visibility hace que se vean por detrás */
    backface-visibility: visible;
}

/* Matemáticas para 20 Items (360 / 20 = 18 grados por item) */
/* Radio (TranslateZ) aumentado a 550px para que el círculo sea grande */
.carousel-3d-item:nth-child(1) {
    transform: rotateY(0deg) translateZ(550px);
}

.carousel-3d-item:nth-child(2) {
    transform: rotateY(18deg) translateZ(550px);
}

.carousel-3d-item:nth-child(3) {
    transform: rotateY(36deg) translateZ(550px);
}

.carousel-3d-item:nth-child(4) {
    transform: rotateY(54deg) translateZ(550px);
}

.carousel-3d-item:nth-child(5) {
    transform: rotateY(72deg) translateZ(550px);
}

.carousel-3d-item:nth-child(6) {
    transform: rotateY(90deg) translateZ(550px);
}

.carousel-3d-item:nth-child(7) {
    transform: rotateY(108deg) translateZ(550px);
}

.carousel-3d-item:nth-child(8) {
    transform: rotateY(126deg) translateZ(550px);
}

.carousel-3d-item:nth-child(9) {
    transform: rotateY(144deg) translateZ(550px);
}

.carousel-3d-item:nth-child(10) {
    transform: rotateY(162deg) translateZ(550px);
}

.carousel-3d-item:nth-child(11) {
    transform: rotateY(180deg) translateZ(550px);
}

.carousel-3d-item:nth-child(12) {
    transform: rotateY(198deg) translateZ(550px);
}

.carousel-3d-item:nth-child(13) {
    transform: rotateY(216deg) translateZ(550px);
}

.carousel-3d-item:nth-child(14) {
    transform: rotateY(234deg) translateZ(550px);
}

.carousel-3d-item:nth-child(15) {
    transform: rotateY(252deg) translateZ(550px);
}

.carousel-3d-item:nth-child(16) {
    transform: rotateY(270deg) translateZ(550px);
}

.carousel-3d-item:nth-child(17) {
    transform: rotateY(288deg) translateZ(550px);
}

.carousel-3d-item:nth-child(18) {
    transform: rotateY(306deg) translateZ(550px);
}

.carousel-3d-item:nth-child(19) {
    transform: rotateY(324deg) translateZ(550px);
}

.carousel-3d-item:nth-child(20) {
    transform: rotateY(342deg) translateZ(550px);
}

.carousel-3d-item img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

/* Efecto de reflejo/brillo en las tarjetas */
.carousel-3d-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

@keyframes rotate3d {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(-360deg);
    }
}

/* Pausar animación al pasar el mouse para ver productos */
.carousel-3d-container:hover .carousel-3d-rotator {
    animation-play-state: paused;
}

/* --- 4. FIX SIDEBAR (Subcategorías) --- */
.tienda-sidebar .nav-category-item {
    cursor: pointer;
}

/* Contenedor del enlace y la flecha */
.nav-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.nav-link-wrapper:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Flecha de rotación */
.toggle-icon {
    color: var(--accent-gold);
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

/* Estilo cuando está abierto */
.nav-category-item.open>.nav-link-wrapper .toggle-icon {
    transform: rotate(90deg);
}

/* Lista oculta por defecto */
.nav-subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #0a0a0a;
    /* Fondo más oscuro para subcategorías */
    border-left: 2px solid var(--accent-gold);
}

/* Mostrar lista cuando tiene la clase open */
.nav-category-item.open>.nav-subcategories {
    max-height: 500px;
    /* Altura suficiente para mostrar contenido */
}

/* Enlaces de subcategoría */
.nav-subcategories a {
    padding-left: 25px !important;
    font-size: 0.9rem !important;
    color: #999 !important;
}

.nav-subcategories a:hover {
    color: #fff !important;
}

/* Responsive para el carrusel */
@media (max-width: 991px) {
    .carousel-3d-container {
        display: none;
        /* Ocultar carrusel 3D en móvil para ahorrar espacio */
    }

    .store-hero-v2 {
        text-align: center;
    }

    .hero-search-form {
        margin: 1.5rem auto 0 auto;
    }
}

/* FIX FINAL "EFECTO FIDEO" */
.store-card,
.ebay-card {
    width: 100%;
    /* Ocupar todo el ancho de la columna col-lg-4 */
    max-width: 100%;
    /* No excederse */
    display: flex;
    flex-direction: column;
}

/* Asegurar que la imagen no colapse */
.ebay-img-container {
    width: 100%;
    height: 250px;
    /* Altura fija para uniformidad */
    min-height: 250px;
}

/* =================================================================== */
/* ===== PÁGINA DE PRODUCTO: GALERÍA Y LIGHTBOX PRO ===== */
/* =================================================================== */

/* Layout Principal */
.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* --- GALERÍA PRINCIPAL CON ZOOM --- */
.product-gallery-container {
    position: sticky;
    top: 100px;
}

.main-image-frame {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #fff;
    /* Fondo blanco para ver bien el producto */
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    /* Transición muy rápida para el seguimiento del mouse */
    padding: 20px;
}

/* Miniaturas */
.thumbnails-track {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    flex-shrink: 0;
    padding: 5px;
}

.thumb-item:hover,
.thumb-item.active {
    opacity: 1;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- INFORMACIÓN DEL PRODUCTO --- */
.product-info-col h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

/* Selectores de Variantes (Píldoras) */
.variant-group {
    margin-bottom: 1.5rem;
}

.variant-label {
    font-weight: 600;
    color: #aaa;
    margin-bottom: 0.5rem;
    display: block;
}

.variant-pill {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}

.variant-pill:hover {
    border-color: #666;
}

.variant-pill.active {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
    font-weight: 700;
}

.variant-pill.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* --- LIGHTBOX MODAL (PANTALLA COMPLETA) --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor de la imagen dentro del modal */
.lightbox-content {
    position: relative;
    width: 90%;
    height: 80%;
    overflow: hidden;
    /* Importante para el recorte al hacer zoom */
    cursor: grab;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content:active {
    cursor: grabbing;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease;
    /* Suavidad al arrastrar */
    user-select: none;
    /* Evitar selección al arrastrar */
}

/* Controles del Modal */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    gap: 20px;
    z-index: 10001;
}

.lightbox-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-btn:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
}

@media (max-width: 991px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery-container {
        position: static;
    }
}

/* =================================================================== */
/* ===== HERO SECTION CON LOGO DE FONDO (BACKGROUND) ===== */
/* =================================================================== */

/* Animación de respiración para el logo de fondo */
@keyframes breathe-logo {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.2;
    }
}

.hero-section {
    position: relative;
    padding: 10rem 0;
    /* Más espacio vertical para que respire */
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 80%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* El Logo Gigante de Fondo */
.hero-logo-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    /* Tamaño base grande */
    max-width: 90vw;
    /* Que no se salga en móviles */
    z-index: 1;
    /* Detrás del texto */
    pointer-events: none;
    /* Para que no bloquee los clicks */
    animation: breathe-logo 10s infinite ease-in-out;
    /* Movimiento lento */
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.1));
    /* Resplandor dorado sutil */
}

/* El contenido (Texto y botones) */
.hero-content {
    position: relative;
    z-index: 2;
    /* Delante del logo */
    width: 100%;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .hero-logo-background {
        width: 100%;
        opacity: 0.1 !important;
        /* Más sutil en móvil para no molestar lectura */
    }

    .hero-section {
        padding: 6rem 0;
    }
}

/* === CORRECCIÓN DE LEGIBILIDAD === */

/* Forzar textos secundarios a gris claro en fondo oscuro */
.tienda-wrapper .text-white-50,
.tienda-wrapper .text-secondary,
.tienda-wrapper .text-muted {
    color: #b0b0b0 !important;
    /* Gris claro muy legible */
}

/* Títulos de tarjetas */
.store-title,
.card-title {
    color: #ffffff !important;
    font-weight: 600;
}

/* Enlaces del Sidebar */
.category-list-item,
.tienda-sidebar a {
    color: #e0e0e0 !important;
    /* Casi blanco */
    text-decoration: none;
}

.category-list-item:hover,
.tienda-sidebar a:hover {
    color: #D4AF37 !important;
    /* Dorado al pasar el mouse */
    background-color: rgba(255, 255, 255, 0.05);
}

/* Textos de "0 productos encontrados" */
#results-count {
    color: #aaa !important;
}

/* Placeholder de búsqueda */
.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.hero-search-input {
    color: #fff !important;
}

/* Fix específico para tarjetas */
.store-card,
.card {
    background-color: #121212 !important;
    /* Asegurar fondo oscuro */
    border: 1px solid #282828 !important;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.store-card:hover,
.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.2);
}

.store-card .store-img-wrapper img {
    transition: transform 0.4s ease;
}

.store-card:hover .store-img-wrapper img {
    transform: scale(1.1);
}

/* =================================================================== */
/* ===== PAGINATION V2: "NEON GLOW" ===== */
/* =================================================================== */

.pagination {
    --pagination-glow: 0 0 15px rgba(212, 175, 55, 0.5);
    --pagination-color: var(--accent-gold);
    --pagination-bg: transparent;
    --pagination-border-color: rgba(212, 175, 55, 0.5);
    padding: 0;
    justify-content: center;
}

.page-item .page-link {
    border-radius: 8px !important;
    margin: 0 4px;
    border: 1px solid var(--pagination-border-color) !important;
    background-color: var(--pagination-bg) !important;
    color: var(--pagination-color) !important;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(212, 175, 55, 0.2);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    padding: 0.5rem 0.9rem;
}

.page-item .page-link:hover {
    background-color: var(--accent-gold) !important;
    color: #000 !important;
    box-shadow: var(--pagination-glow);
    transform: translateY(-2px);
    text-shadow: none;
}

.page-item.active .page-link {
    background-color: var(--accent-gold) !important;
    color: #000 !important;
    box-shadow: var(--pagination-glow);
    transform: translateY(-2px);
    text-shadow: none;
    border-color: var(--accent-gold) !important;
}

.page-item.disabled .page-link {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #555 !important;
    box-shadow: none;
    text-shadow: none;
    pointer-events: none;
}

/* =================================================================== */
/* ===== PRODUCT STATUS LABELS V2: HIGH VISIBILITY ===== */
/* =================================================================== */

/* "CONSULTAR" Price Label */
.text-gold.text-uppercase {
    color: var(--accent-gold-light) !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
    letter-spacing: 1px;
}

/* "Agotado" Stock Label */
.badge.bg-secondary {
    background-color: #333 !important;
    color: #999 !important;
    border: 1px solid #555 !important;
    font-weight: 700;
    text-transform: uppercase;
}

/* =================================================================== */
/* ===== SEARCH BAR V2: "NEON FOCUS" ===== */
/* =================================================================== */

#hero-search-input {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 50rem !important;
    font-size: 1rem;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease;
}

#hero-search-input:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

#hero-search-input::placeholder {
    color: #777 !important;
    font-style: italic;
}

#hero-search-form .btn {
    width: 45px;
    height: 45px;
    background: var(--accent-gold);
    border: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

#hero-search-form .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}