        :root {
            --primary: #d32f2f;
            --primary-dark: #b71c1c;
            --gray-100: #f5f5f5;
            --gray-200: #eeeeee;
            --gray-300: #e0e0e0;
            --gray-500: #9e9e9e;
            --gray-700: #616161;
            --gray-900: #212121;
            --white: #ffffff;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Inter', sans-serif;
            color: var(--gray-900);
            background-color: var(--white);
            line-height: 1.6;
        }
        header {
            background-color: var(--white);
            box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 1rem 0;
        }
        .header-container {
            max-width: 100%;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary-dark);
        }
        .logo span {
            color: var(--gray-900);
        }
        .logo::before {
            content: '';
            display: block;
            width: 40px;
            height: 40px;
            background: var(--primary);
            border-radius: 8px;
        }
        .contact-info {
            font-size: 0.7rem;
            margin-bottom:12px;
            color: var(--gray-700);
        }
        .contact-info a {
            color: var(--primary);
            text-decoration: none;
        }
        nav ul {
            display: flex;
            list-style: none;
            gap: 1.5rem;
            flex-wrap: wrap;
        }
        nav a {
            text-decoration: none;
            color: var(--gray-700);
            font-weight: 500;
            font-size: 0.95rem;
            transition: color 0.2s;
        }
        nav a:hover {
            color: var(--primary);
        }
        .auth-buttons {
            display: flex;
            gap: 1rem;
        }
        .btn {
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
        }
        .btn-outline {
            padding-top:10px;
            border: 3px solid var(--primary);
            color: var(--primary);
            background: transparent;
        }
        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }

        .btn-outline2 {
            color: #7E7E7E;
            font-size:14px;
            text-decoration:none;
            margin-top:5px;
            background: transparent;
        }
        .btn-outline2:hover {
            color: red;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            border: none;
        }
        .btn-primary:hover {
            background: var(--primary-dark);
        }


        main {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1.5rem;
        }
        .hero {
            text-align: center;
            margin-bottom: 3rem;
            padding: 2rem;
            background: var(--gray-100);
            border-radius: 12px;
        }
        .hero h1 {
            font-size: 2rem;
            color: var(--primary-dark);
            margin-bottom: 0.5rem;
        }
        .hero p {
            color: var(--gray-700);
            max-width: 700px;
            margin: 0 auto;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }
        .product-card {
            border: 1px solid var(--gray-300);
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
            background: white;
        }
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .product-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        .product-info {
            padding: 1rem;
        }
        .product-category {
            font-size: 0.8rem;
            color: var(--primary);
            font-weight: 500;
        }
        .product-name {
            font-size: 1.1rem;
            margin: 0.5rem 0;
            font-weight: 600;
        }
        .product-desc {
            font-size: 0.9rem;
            color: var(--gray-700);
            margin-bottom: 0.8rem;
        }
        .product-price {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-dark);
        }
        .product-stock {
            font-size: 0.85rem;
            color: var(--gray-500);
        }
        .product-offer {
            /*background: var(--primary);*/
            background-color: #339900;
            color: white;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            display: inline-block;
            margin-top: 0.5rem;
        }
        .product-rating {
            color: gold;
            font-size: 0.9rem;
            margin: 0.3rem 0;
        }
        .btn-add-cart {
            width: 100%;
            padding: 0.7rem;
            margin-top: 1rem;
            /*background: var(--primary);*/
            background-color: #5F5F5F;
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
        }
        .btn-add-cart:hover {
            background: var(--primary-dark);
        }

        footer {
            background: var(--gray-900);
            color: var(--white);
            padding: 3rem 0 1.5rem;
            margin-top: 4rem;
        }
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
        }
        .footer-section h3 {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            color: var(--primary);
        }
        .footer-section ul {
            list-style: none;
        }
        .footer-section ul li {
            margin-bottom: 0.5rem;
        }
        .footer-section a {
            color: var(--gray-300);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s;
        }
        .footer-section a:hover {
            color: var(--primary);
        }
        .newsletter {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        .newsletter input {
            flex: 1;
            padding: 0.6rem;
            border: none;
            border-radius: 6px;
            font-size: 0.9rem;
        }
        .newsletter button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0 0.8rem;
            border-radius: 6px;
            cursor: pointer;
        }
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid var(--gray-800);
            color: var(--gray-500);
            font-size: 0.9rem;
        }

        .admin-btn {
            background: var(--primary-dark);
            color: white;
            margin-top: 1rem;
            display: inline-block;
            padding: 0.6rem 1rem;
            border-radius: 6px;
            text-decoration: none;
            font-size: 0.9rem;
        }
        .admin-btn:hover {
            background: var(--primary);
        }

   .menu_user{
    position:absolute;
    /*box-shadow: 0 22px 20px rgba(0, 0, 0, 0.3);*/
    box-shadow: 5px 2px 40px rgba(0, 0, 0, 0.3);
    z-index:1001;
    width:160px;
    padding:0px;
    color:#888;
    background-color: rgba(255,255,255,.62);
    backdrop-filter: saturate(180%) blur(20px);
    /*display:block;*/
    border-radius:0px 0px 10px 10px;
    border: 2px solid #fff;
}
.sub_menu_user{
    padding:15px;
    margin-bottom: 0px;
    font-size:14px;
    color:#888;
    cursor:pointer;
}
.sub_menu_user:hover{
    background-color: rgba(10, 10, 10,.1);
}
/* Fondo gris oscuro */
.navbar-toggler {
  background-color: #333; /* gris oscuro */
  border: none;
  padding: 8px 10px;
  border-radius: 4px;
}

/* Líneas verdes intensas */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='limegreen' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.bloque-fijo-imagenes {
    position: relative;
    width: 100%;
    max-width: 1200px; /* opcional */
    margin: 0 auto;
    height: 0px; /* ajusta según tamaño de tus imágenes */
}

.social {
    display: block;
}

/*////// PARA EL CARRITO*/
.cart-wrapper {
    position: relative;
    display: inline-block;
}

.cart-button {
    cursor: pointer;
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: none;
    z-index: 9999;
    border-radius: 6px;
}

/* Animación suave */
.cart-dropdown {
    opacity: 0;
    transform: translateY(10px);
    transition: all .25s ease;
    pointer-events: none;
}

.cart-wrapper:hover .cart-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mini-cart-item {
    font-size: 14px;
    line-height: 1.3;
}

.redes-icono {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.redes-icono:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}




/* ?? En móviles, que ocupen toda la fila */
@media (max-width: 600px) {


.social {
    display: none;
}

}




        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
            nav ul {
                justify-content: center;
            }
            .auth-buttons {
                justify-content: center;
            }
        }

@media (max-width: 991px) {
  .navbar-nav .nav-link {
    font-size: 1.25rem; /* ˜ 20px */
    font-weight: 600;
  }
}

    </style>

<style>
/* Barra principal */
.barra-menu {
  background-color: #F8F9FA;
  padding: 0;
}

.menu-principal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.menu-principal > li {
  position: relative;
}

.menu-principal > li > a {
  display: block;
  padding: 10px 5px;
  color: #57576C;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  font-size:14px;
  font-weight: bold;
}

.menu-principal > li > a:hover {
  /*background-color: #CC0000;*/
  color:#CC0000;
  font-family: 'Open Sans', sans-serif;
  border-radius: 10px 10px 0px 0px;
  /*box-shadow: 0 2px 10px rgba(0,0,0,0.4); */
  font-weight:bold;
}

/* Submenús verticales */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  list-style: none;
  font-family: 'Open Sans', sans-serif;
  font-size:14px;
  padding: 0;
  margin: 0;
  display: none;
    max-height: 420px; /* Ajusta la altura que quieras */
    /*overflow-y: auto;*/ /* Activa el scroll vertical */

  min-width: 240px;
  z-index: 100;
  /*border-radius:0px 10px 10px 10px;*/
  box-shadow: 5px 2px 40px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.submenu li a {
  display: block;
  padding: 6px 8px;
  color: black;
  text-decoration: none;
  text-align: left;
}

.submenu li a:hover {
  background-color: #CC0000;
  color: white;
  border-radius:8px;
}

.inverso {
  filter: brightness(100);
  border-radius:8px;
}

.submenu li a:hover .inverso {
  filter: brightness(0);
  border-radius:8px;
}



/* Mostrar submenú al pasar el ratón */
.menu-principal > li:hover .submenu {
  display: block;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .menu-principal {
    flex-direction: column;
    gap: 0px;
    margin: 0;
    padding: 0;
  }

  .menu-principal > li {
    width: 100%;
    margin: 0;
    padding: 0;
  }

.menu-principal > li > a {
  display: block;
  padding: 10px 5px;
  color: #57576C;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  font-size:19px;
  font-weight: bold;
  border-bottom:1px solid #A7A7A7;
}

.menu-principal > li > a:hover {
  background-color: #CC0000;
  color:white;
}

/*  .menu-principal > li > a {
    padding: 14px 28px;
    margin: 0;
    line-height: 1.4;
  }

  .submenu li a {
    padding: 12px 20px;
    margin: 0;
    line-height: 1.2;
  }*/

  .submenu {
    position: static;
    display: none;
    font-family: 'Open Sans', sans-serif;
max-height: 340px; /* Ajusta la altura que quieras */
overflow-y: auto; /* Activa el scroll vertical */
text-align: left;
  }

  .menu-principal > li:focus-within .submenu,
  .menu-principal > li:hover .submenu {
    display: block;
  }
}