/* Variables de colores según el logo de ZONAEROTIK */
:root {
    --primary: #e91e63;       /* Rosa fuerte */
    --secondary: #9c27b0;     /* Morado */
    --accent: #03a9f4;        /* Azul neón */
    --dark: #121212;          /* Negro */
    --light: #f5f5f5;         /* Blanco-gris */
    --white: #ffffff;         /* Blanco puro */
    --neon-pink: #ff00ff;     /* Rosa neón para efectos */
    --neon-blue: #00ffff;     /* Azul neón para efectos */
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-dark: linear-gradient(135deg, var(--dark), #000000);
    --neon-shadow: 0 0 5px rgba(255, 0, 255, 0.7), 0 0 10px rgba(255, 0, 255, 0.5), 0 0 15px rgba(255, 0, 255, 0.3);
    --blue-shadow: 0 0 5px rgba(0, 255, 255, 0.7), 0 0 10px rgba(0, 255, 255, 0.5), 0 0 15px rgba(0, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Estilos del Header */
.top-bar {
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 8px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar span {
    margin: 0 10px;
}

header {
    background-color: rgba(0, 0, 0, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.8));
}

.logo img {
    width: 100%;
    height: auto;
}

.search-bar {
    flex-grow: 1;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    background-color: rgba(33, 33, 33, 0.7);
    color: var(--white);
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--gradient);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    transform: scale(1.1);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-actions a {
    margin-left: 15px;
    color: var(--light);
    font-size: 1.2rem;
    position: relative;
}

.nav-actions a:hover {
    color: var(--primary);
    text-shadow: var(--neon-shadow);
}

.cart-icon, .favorites-icon {
    position: relative;
}

.cart-count, .favorites-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neon-shadow);
    border: 1px solid var(--dark);
    z-index: 10;
}

/* Navegación principal */
nav {
    background: var(--gradient-dark);
    padding: 10px 0;
    border-bottom: 3px solid var(--primary);
}

nav .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

nav ul li a:hover {
    color: var(--neon-pink);
    text-shadow: var(--neon-shadow);
}

nav ul li a.active {
    background: var(--gradient);
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background-color: #000;
    overflow: hidden;
    border-bottom: 5px solid var(--primary);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary);
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.neon-text {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink),
                 0 0 10px var(--neon-pink),
                 0 0 20px var(--neon-pink);
}

.flicker-neon {
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 5px var(--neon-pink),
                     0 0 10px var(--neon-pink),
                     0 0 20px var(--neon-pink);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.neon-btn {
    background: var(--dark);
    color: var(--white);
    padding: 12px 30px;
    border: 2px solid var(--neon-pink);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 10px var(--neon-pink), 0 0 20px rgba(255, 0, 255, 0.5);
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    transition: all 0.4s;
    z-index: -1;
}

.neon-btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--neon-pink), 0 0 30px rgba(255, 0, 255, 0.7);
}

.neon-btn:hover::before {
    left: 100%;
}

/* Sección de categorías */
.categories {
    padding: 60px 0;
    background-color: var(--dark);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--white);
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient);
    margin: 10px auto 0;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    background-color: rgba(33, 33, 33, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    border: 1px solid rgba(233, 30, 99, 0.3);
    max-width: none;
    width: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.4);
    border-color: var(--primary);
}

.category-img {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.category-name {
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
}

.category-card:hover .category-name {
    background: var(--gradient);
}

/* Productos */
.featured-products, .new-products {
    padding: 60px 0;
    background-color: #0f0f0f;
    position: relative;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,0,255,0.1)" stroke-width="1"/></svg>') repeat;
    opacity: 0.1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.products-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.products-slider::-webkit-scrollbar {
    display: none;
}

.product-card {
    background-color: rgba(33, 33, 33, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(233, 30, 99, 0.3);
    flex: 0 0 280px;
    min-width: 280px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.4);
    border-color: var(--primary);
}

.product-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gradient);
    color: var(--white);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.7);
}

.product-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff3d00;
    color: var(--white);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 61, 0, 0.7);
}

.product-category {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--white);
    font-weight: 500;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.9rem;
    font-weight: normal;
}

.product-stock {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #4caf50;
}

.product-stock.low-stock {
    color: #ff9800;
}

.product-stock.out-of-stock {
    color: #f44336;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart {
    flex: 1;
    padding: 8px 0;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.add-to-cart:hover {
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.7);
}

.add-to-cart.disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.wishlist {
    width: 35px;
    height: 35px;
    background-color: rgba(33, 33, 33, 0.8);
    border: 1px solid var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: all 0.3s ease;
}

.wishlist:hover, .wishlist.active {
    color: var(--primary);
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.7);
}

.wishlist.active i {
    color: var(--primary);
}

/* Beneficios */
.benefits {
    padding: 60px 0;
    background-color: var(--dark);
    position: relative;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.05) 10%, transparent 70%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.benefit-card {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
    width: 100%;
    max-width: none;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.2);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    margin: 0 auto 10px;
    background: var(--gradient);
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.5);
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 600;
}

.benefit-card p {
    color: #ddd;
}

/* Newsletter */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://via.placeholder.com/1920x1080') center/cover no-repeat;
    position: relative;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
    text-transform: uppercase;
}

.newsletter-content p {
    color: #ddd;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--primary);
    border-radius: 4px 0 0 4px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    outline: none;
}

.newsletter-btn {
    padding: 0 25px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
}

.newsletter-btn:hover {
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.5);
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: var(--light);
    border-top: 3px solid var(--primary);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-column h4::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    position: absolute;
    bottom: 0;
    left: 0;
}

.footer-column p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
    font-size: 0.9rem;
}

.footer-column ul li a::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-column ul li a:hover::before {
    left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--gradient);
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 0.9rem;
}

.contact-info li i {
    margin-right: 10px;
    color: var(--primary);
}

.newsletter {
    display: flex;
    margin-top: 15px;
}

.newsletter input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 2px solid var(--primary);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-btn {
    padding: 10px 15px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #777;
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* ===== Carrito flotante (sidebar) ===== */
/* Carrito flotante */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 90%;
  height: 100%;
  background-color: var(--dark);
  z-index: 1001;
  transition: right 0.35s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { right: 0; }

.cart-overlay {
  position: fixed; inset: 0;
  background-color: rgba(0,0,0,.7);
  z-index: 1000;
  display: none;
}
.cart-overlay.show { display: block; }

.cart-sidebar { right: -420px; transition: right .35s ease; }
.cart-sidebar.active, .cart-sidebar.open { right: 0; }

.cart-overlay { display: none; }
.cart-overlay.active, .cart-overlay.show { display: block; }



/* ===== Header ===== */
.cart-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 {
  font-size: 1.5rem;
  color: var(--white);
}
.close-cart {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Lista de items ===== */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-item:last-child {
  border-bottom: 0;
}

/* Miniatura del producto */
.cart-item .item-img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}
.cart-item .item-img img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Info del producto */
.cart-item .item-info {
  flex: 1;
  min-width: 0;
}
.cart-item .item-title {
  color: var(--white);
  font-size: .98rem;
  margin-bottom: 4px;
  line-height: 1.2;
  word-break: break-word;
}
.cart-item .item-price {
  opacity: .9;
  font-size: .9rem;
}

/* Acciones (cantidad / quitar) */
.cart-item .item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}
.qty {
  min-width: 22px;
  text-align: center;
  color: var(--white);
}
.remove-item {
  background: transparent;
  border: none;
  color: #e57373;
  cursor: pointer;
}

/* ===== Carrito vacío ===== */
.empty-cart {
  text-align: center;
  padding: 50px 0;
}
.empty-cart i {
  font-size: 4rem;
  color: #555;
  margin-bottom: 15px;
}
.empty-cart p { color: #aaa; }

/* Mensaje de envío gratis */
.free-shipping-msg {
  background-color: #4caf50;
  color: var(--white);
  text-align: center;
  padding: 10px;
}

/* ===== Footer: totales / botones ===== */
.cart-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cart-subtotal,
.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cart-total {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}
.checkout-btn,
.continue-shopping {
  width: 100%;
  padding: 12px 0;
  text-align: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 4px;
}
.checkout-btn {
  background: var(--gradient);
  color: var(--white);
  margin-bottom: 10px;
}
.checkout-btn:hover {
  box-shadow: 0 0 15px rgba(233, 30, 99, 0.5);
}
.checkout-btn:disabled {
  background: #666;
  cursor: not-allowed;
}
.continue-shopping {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--white);
}
.continue-shopping:hover {
  background-color: rgba(233, 30, 99, 0.1);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .cart-sidebar {
    width: 100%;
    max-width: 100%;
    right: -100%;              /* off-screen limpio en móvil */
  }
  .cart-sidebar.active,
  .cart-sidebar.open {
    right: 0;
  }
}


/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 4px;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Favoritos modal */
.favorites-modal {
  position: fixed;
  inset: 0;
  display: none;              /* escondido por defecto */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  z-index: 1002;
}

/* muéstralo con cualquiera de estas clases */
.favorites-modal.open,
.favorites-modal.active {
  display: flex;
}

.favorites-container {
  width: min(900px, 92vw);
  max-height: 80vh;
  overflow: auto;
  background: var(--dark);
  border-radius: 14px;
  padding: 16px 16px 20px;
    box-shadow: 0 10 30px rgba(0,0,0,.5);
}

.close-favorites {
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.favorites-header h3 {margin: 0;
    font-size: 1.5rem;
    color: var(--white);
}

.favorites-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 6px 6px;
    }

@media (min-width: 560px) {.favorites-grid {
    grid-template-columns: 1fr 1fr;
} }


.favorites-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
}

.favorites-empty i {
    font-size: 4rem;
    color: #555;
    margin-bottom: 15px;
}

.favorites-empty p {
    color: #aaa;
}

/* Catálogo */
.breadcrumb {
    padding: 15px 0;
    color: var(--light);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 5px;
}

.catalog-section {
    padding: 30px 0 60px;
}

.catalog-section h1 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.catalog-sidebar {
    background-color: rgba(33, 33, 33, 0.7);
    border-radius: 10px;
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group:last-child {
    margin-bottom: 15px;
}

.filter-group h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group ul {
    list-style: none;
}

.filter-group ul li {
    margin-bottom: 8px;
}

.filter-link {
    display: block;
    padding: 5px 0;
    color: #ddd;
    transition: all 0.2s ease;
}

.filter-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.filter-link.active {
    color: var(--primary);
    font-weight: 500;
}

.price-slider {
    padding: 10px 0;
}

.slider {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #555;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(233, 30, 99, 0.5);
}

.price-range {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ddd;
}

.checkbox-filter {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.checkbox-filter input {
    margin-right: 8px;
    accent-color: var(--primary);
}

.checkbox-filter label {
    color: #ddd;
    cursor: pointer;
}

.apply-filters-btn {
    width: 100%;
    padding: 10px 0;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.apply-filters-btn:hover {
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.3);
}

.catalog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-count {
    color: #ddd;
    font-size: 0.9rem;
}

.catalog-count span {
    color: var(--white);
    font-weight: bold;
}

.catalog-sort {
    display: flex;
    align-items: center;
}

.catalog-sort label {
    margin-right: 10px;
    color: #ddd;
}

.catalog-sort select {
    padding: 8px 12px;
    background-color: rgba(33, 33, 33, 0.7);
    color: var(--white);
    border: 1px solid var(--primary);
    border-radius: 4px;
    outline: none;
}

.catalog-view {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 35px;
    height: 35px;
    background-color: rgba(33, 33, 33, 0.7);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover, .view-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(33, 33, 33, 0.7);
    color: var(--white);
    border: 1px solid var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    margin: 0 15px;
    display: flex;
    gap: 5px;
}

.pagination-numbers span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-numbers span:hover {
    color: var(--primary);
}

.pagination-numbers span.active {
    background: var(--gradient);
    color: var(--white);
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .search-bar {
        display: none;
    }
    
    .header-container {
        padding: 10px;
    }
    
    .catalog-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .catalog-view {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Cart sidebar: item compacto ===== */
.cart-items .cart-item{
  display:flex; align-items:center; gap:10px;
  padding:10px 0; border-bottom:1px solid var(--dark-light);
}
.cart-items .thumb{ width:64px; height:64px; border-radius:8px; overflow:hidden; flex:0 0 64px; }
.cart-items .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.cart-items .info{ flex:1; min-width:0; }
.cart-items .name{ margin:0 0 4px; font-size:.95rem; font-weight:600; line-height:1.2; }
.cart-items .price{ font-size:.9rem; opacity:.9; }

/* ===== Favoritos modal: grid y thumbs recortados ===== */
#favorites-modal .favorites-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:16px;
}
.favorite-card{ background:var(--dark); border-radius:12px; overflow:hidden; }
.favorite-card .pic{ aspect-ratio:1/1; overflow:hidden; }
.favorite-card .pic img{ width:100%; height:100%; object-fit:cover; display:block; }
.favorite-card .meta{ padding:10px; }
.favorite-card .meta h4{ margin:0 0 4px; font-size:1rem; }
.favorite-card .meta .price{ font-weight:700; }
.favorite-card .actions{ display:flex; gap:8px; margin-top:8px; }
.favorite-card .actions button{ flex:1; padding:8px 10px; border-radius:8px; }

/* Carrito lateral y favoritos: miniaturas */
.cart-sidebar .cart-item .item-img img,
.favorite-item-card .fav-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.favorite-item-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--dark-light);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px 12px;
}
.favorite-item-card .fav-title { font-weight: 600; }
.favorite-item-card .fav-actions .btn { margin-right: 6px; }

/* Carrito lateral */
.cart-sidebar .item-img img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 6px;
}

/* Tarjeta en favoritos (modal) */
.favorites-grid .favorite-item-card .fav-thumb img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block;
}


/* ---- Favorites modal ---- */
.favorites-modal {
  position: fixed;
  inset: 0;
  display: none;              /* inicia oculto */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  z-index: 1102;              /* > cart-overlay (1000) y > cart-sidebar (1001) */
}

.favorites-modal.open { display: flex; }

.favorites-container {
  width: min(900px, 92vw);
  max-height: 80vh;
  overflow: auto;
  background: var(--dark);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  padding: 16px;
  color: var(--white);
}

.favorites-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 8px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 12px;
}

.favorite-item-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 10px;
}

.fav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.fav-title { font-weight: 600; margin:0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-price { opacity: .9; margin-bottom: 8px; }

.fav-actions {
  display: flex;
  gap: 8px;
}

.fav-actions .btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06);
  color: var(--white); cursor: pointer;
}
.fav-actions .btn.remove { border-color: rgba(255,75,75,.35); background: rgba(255,75,75,.15); }
.favorites-empty {
  text-align: center; color: #aaa;
  padding: 30px 10px;
}

/* Quick View button sobre la imagen del producto */
.product-img {
  position: relative;
}

.product-img .quick-view {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--primary);
  background: rgba(33,33,33,0.85);
  color: var(--white);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: all .2s ease;
  z-index: 2;
}

.product-card:hover .quick-view {
  opacity: 1;
  transform: translateY(0);
}

.product-img .quick-view i {
  pointer-events: none;
}

