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


  :root {
    --color-primary: #FFCE00;
    --color-primary-dark: #0f0f0f;
    --color-secondary: #111;
    --color-text: #333;
    --color-light: #f4f4f4;
    --color-white: #fff;
    --color-accent: #ff4081;
    --color-bg-gray: #474747;
  }
  a {
    cursor: pointer !important;
  }
 
  

  body {
    font-family: sans-serif;
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.1px;
    color: #333;
  }
  h1,h2,h3,h4,button{
    font-family: 'Nunito Sans', sans-serif;

  }
  
  .top-bar {
    background-color:var(--color-bg-gray);
    padding: 10px 20px;
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    border: none;
  }
  
  .top-bar button {
    border: none;
    color: #fff;
    background-color: var(--color-bg-gray);
    cursor: pointer;
    font-size: 14px;
    margin-right: 8px;
  }
  .top-bar a {
    border: none;
    color: #fff;
    background-color: var(--color-bg-gray);
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    margin-right: 8px;

  } 
  .top-bar-btn-left {
    float:left;
    width: 50%;
  } 
  .top-bar-btn-right {
    float: right;
    width: 50%;
    text-align: right;  }
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1); /* opcional: flotante */
  }
  
  .logo {
    font-weight: bold;
    font-size: 20px;
    max-width: 300px;
    }
    .logo img {
      width: 200px !important;
      }
    
  
  .search-box {
    flex: 1;
    margin: 0 20px;
  }
  
  .search-box input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  
  .header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
  }
  
  .header-icons i {
    margin-right: 5px;
  }
  
  .header-icons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
  }
  
  .main-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
  }
  
  .main-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }
  
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }
  
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: #111;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    padding: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    display: flex;
    flex-direction: column;
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  .mobile-menu .close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-primary);
  }
  
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }
  
  .mobile-menu a {
    color:var(--color-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
  }
  
  .mobile-search {
    padding: 10px 0;
  }
  
  .mobile-search input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1000;
  }
  
  @media (max-width: 768px) {
    .main-menu,
    .search-box,
    .header-icons {
      display: none;
    }
  
    .menu-toggle {
      display: block;
      font-size: 28px !important;
    }
  }
  
  .mobile-search-bar {
    display: none;
    padding: 10px 20px;
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
  }
  
  .mobile-search-bar input {
    width: 82%;
    padding: 11px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
  
  @media (max-width: 768px) {
    .mobile-search-bar {
      display: block;
    }
  
    /* Si el buscador de escritorio está dentro del header, lo ocultamos */
    .header .search-box {
      display: none;
    }
  }
/* Carrusel */
.carousel {
  width: 100%;
  height: 388px; /* Para desktop */
  position: relative;
  overflow: hidden;
  display: flex;
  transition: transform 0.5s ease-in-out; /* Transición suave entre slides */
}

/* Cada slide */
.carousel-slide {
  flex: 0 0 100%; /* Cada slide ocupa el 100% del ancho */
  height: 100%;
  display: none; /* Inicialmente, no se muestran los slides */
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-slide.active {
  display: block; /* Solo el slide activo se muestra */
}

/* Estilo de los puntos de navegación */
.dots {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.dot.active {
  opacity: 1;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 30px;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Estilos para la versión móvil */
@media (max-width: 768px) {
  .carousel {
    height: 300px; /* Cambiamos la altura para mobile */
  }
}
.carousel {
    width: 100%;
    height: 388px;
    position: relative;
    overflow: hidden;
    display: flex;
    transition: transform 0.5s ease-in-out; /* Transición suave */
  }
  
  .carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
    position: relative;
  }
  
  .carousel-slide.active {
    display: block;
  }
  
  .carousel-content {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 20px 30px;
    max-width: 400px;
    border-radius: 8px;
    text-align: left;
  }
  
  .carousel-content h1 {
    margin: 0 0 10px;
    font-size: 2rem;
  }
  
  .carousel-content p {
    margin: 0 0 20px;
    font-size: 1rem;
  }
  
  .cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #111;
    color: white;
    text-decoration: none;
    border-radius: 5px;
  }
  
  /* Flechas */
  .carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
  }
  
  .carousel-prev {
    left: 20px;
  }
  
  .carousel-next {
    right: 20px;
  }
  
  /* Puntos de navegación */
  .carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
  }
  
  .carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
  }
  
  .carousel-dots .dot.active {
    background-color: white;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .carousel {
      height: 300px;
    }
  
    .carousel-content {
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      background: rgba(255, 255, 255, 0.85);
      text-align: center;
      padding: 15px;
      width: 80%;
      max-width: 300px;
    }
  
    .carousel-content h1 {
      font-size: 1.5rem;
    }
  
    .carousel-content p {
      font-size: 0.9rem;
      margin-bottom: 15px;
    }
  
    .cta-button {
      display: inline-block;
      padding: 10px 20px;
      background-color: #111;
      color: white;
      text-decoration: none;
      border-radius: 5px;
    }
  }
  .categorias {
    padding: 2rem;
  }
  
  .categorias-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  
  .categorias-header h2 {
    font-size: 1.8rem;
    margin: 0;
  }
  
  .ver-todo {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
  }
  
  .categorias-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .categoria {
    flex: 0 0 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    border-radius: 8px;
    padding-left: 12px;
    scroll-snap-align: start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 60px;
    color: white;
  }
  
  .categoria img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
  }
  
  .cat-text {
    font-size: 1rem;
    font-weight: 600;
    }
    .cat-text:hover {
      font-size: 1rem;
      font-weight: 600;
      }
  
  /* Desktop: Mostrar todos en fila */
  @media (min-width: 1024px) {
    .categorias-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 1rem;
      overflow: visible;
    }
  
    .categoria {
      flex: none;
      min-width: auto;
      color: white;
    }
  }
  .categoria {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    background-color: #000;
    margin-bottom: 20px;
  }
  
  .categoria:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    color: #000;
  }
  .banner-cta {
    width: 100%;
    height: 180px; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
  }
  
  .banner-inner { 
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .cta-banner {
    background-color: black;
    color: var(--color-primary);
    
    padding: 0.7rem 1.4rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
  }
  .cta-banner1 {
    background-color: black;
    color: var(--color-primary);
    border: solid 3px var(--color-primary);
    padding: 0.7rem 1.4rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
  }
  
  
  .cta-banner:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
     }
  .cta-seguimiento {
    background-color: var(--color-primary);
    color: black;
    padding: 0.7rem 1.4rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
  }
  
  @media (max-width: 768px) {
    .banner-cta {
      height: auto;
      background-image: url('banner-mobile.jpg');
    }
  
    .banner-inner {
      flex-direction: column;
      justify-content: center;
      text-align: center;
      gap: 1rem;
    }
  }
  

  .seccion-productos {
    padding: 2rem;
  }
  
  .productos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
  }
  
  .productos-header h2 {
    font-size: 1.8rem;
    margin: 0;
  }
  
  .ver-todo {
    color:var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
  }
  .ver-todo:hover {
    color:var(--color-primary)
   
  }
  
  
  .productos-grid {
 /*   display: flex;  
    gap: 1rem;*/
    display: grid;
    gap: 2rem;    
    margin-top: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .producto-card {
    flex: 0 0 240px;
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    position: relative;
  }
  .producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  }
  
  .chip {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #333;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
  }
  
  .producto-card img {
    width: 100%;
    height: 208px;
    object-fit: contain;
    margin: 1rem 0;
  }
  
  .producto-nombre {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 1rem;
  }
  
  .producto-precios {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
  }
  
  .descuento {
    background-color: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
  }
  
  .precio-info {
    text-align: right;
  }
  
  .precio-ant {
    text-decoration: line-through;
    color: red;
    font-size: 0.9rem;
    display: block;
  }
  
  .precio-real {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
  }
  
  .btn-carrito {
    width: 100%;
    padding: 0.7rem;
    background-color: #111;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .btn-carrito:hover {
    background-color:var(--color-primary);
    color: var(--color-primary-dark);
    
  }
  
  /* Desktop: grilla de 7 columnas */
  @media (min-width: 1024px) {
    .productos-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 1rem;
      overflow: visible;
    }
  
    .producto-card {
      flex: none;
    }
  }
  .promo-banners {
    width: 100%;
    padding: 2rem;
  }
  
  .promo-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .promo-item {
    display: block;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
  }
  
  .promo-item:hover {
    transform: scale(1.01);
  }
  
  .promo-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.55);
    padding: 1rem;
    box-sizing: border-box;
  }
  
  .promo-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .promo-cta {
    background-color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s ease;
  }
  
  .promo-cta:hover {
    background-color: var(--color-primary);
  }

  /*
  height: 187px; mobile
  */
  @media (max-width: 768px) {
    .promo-item{
        height: 187px;
        
    }
  }
  
  /* Desktop: 2 columnas */
  @media (min-width: 1024px) {
    .promo-grid {
      flex-direction: row;
    }
  
    .promo-item {
      flex: 1;
    }
  }
  .seccion-marcas {
    padding: 2rem;
    text-align: center;
  }
  
  .seccion-marcas h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .marcas-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
    justify-items: center;
    align-items: center;
  }
  
  /* Cada logo */
  .marca {
    background: #fff;
    border-radius: 6px;
    padding: 1rem;
    height: 100px;
    width: 100%;
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
  }
  
  .marca img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
  }
  
  /* 👇 Hover animado */
  .marca:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .marca:hover img {
    transform: scale(1.08);
  }
  
  
  /* Mobile: carrusel horizontal */
  @media (max-width: 768px) {
    .marcas-grid {
      display: flex;
      overflow-x: auto;
      flex-wrap: nowrap;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
    }
  
    .marca {
      flex: 0 0 140px;
      scroll-snap-align: center;
    }
  }
  .confianza {
    background-color:var(--color-bg-gray);
    padding: 3rem 2rem;
    text-align: center;
  }
  
  .confianza-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .confianza-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: var(--color-bg-gray);
    padding: 1.5rem;
    border-radius: 8px;
    opacity: 1;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s ease, opacity 0.5s ease;
  }
  
  /* Scroll in effect */
  .confianza-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
  
  /* Hover solo en desktop */
  @media (min-width: 768px) {
    .confianza-item:hover {
      transform: scale(1.03);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }
  }
  
  
  .confianza-item i {
    font-size: 2.5rem;
    color:white
  }
  
  .confianza-item h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
  }
  @media (max-width: 765px) {
    .confianza-item i {
        font-size: 4.5rem;
        padding: 2rem;
        color:white
      }
      .confianza-item h3 {
        font-size: 1.8rem;
       
        color:white
      }
    
  }
  
  /* Desktop: 4 columnas */
  @media (min-width: 768px) {
    .confianza-grid {
      grid-template-columns: repeat(4, 1fr);
    }
   
  }
  
  .footer {
    background-color: #111;
    color: #eee;
    padding: 3rem 2rem 2rem;
    font-size: 0.95rem;
  }
  
  .footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
  }
  
  .footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
  
  .footer-col h2 {
    color: #fff;
    margin-bottom: 0.5rem;
  }
  
  .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-col ul li {
    margin-bottom: 0.5rem;
  }
  
  .footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
  }
  
  .footer-col a:hover {
    color: var(--color-primary);
    cursor: pointer;
  }
  
  .footer-social a {
    font-size: 1.3rem;
    margin-right: 1rem;
    color: #eee;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .footer-social a:hover {
    color: var(--color-primary);
  }
  
  .footer-bottom {
    border-top: 1px solid #333;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
  }
  /* Scrollbar general (Chrome, Edge, Opera) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    padding-top: 4px;
    margin-top: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--color-primary-dark);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 6px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
  }
  @media (max-width: 768px) {
    .header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background-color: #fff;
    }
  
    .mobile-search-bar {
      position: sticky;
      top: 106px;
      z-index: 999;
      background-color: #fff;
      padding: 0.5rem 1rem;
      align-items: center;
      margin-left: auto;
      margin-right: auto;
  }
  }
  .carrito-wrapper {
    position: relative;
  }
  
  .carrito-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: red;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    display: inline-block;
    min-width: 20px;
    text-align: center;
    transition: transform 0.2s ease;
  }
  
  /* Rebote */
  .rebote {
    animation: rebotar 0.3s ease;
  }
  
  @keyframes rebotar {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
  }
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  /* Ocultar login/teléfono en mobile si los tienes */
  @media (max-width: 768px) {
    .header .search-box,
    .header .header-icons button:not(#menuToggle):not(#carritoBtn) {
      display: none;
    }
  }
  
  a:hover {
    font-weight: bold;
  }
  li:hover {
    font-weight: bold;
  }
  .search-box {
    position: relative;
    width: 100%;
    max-width: 50%;
  }
  
  .search-box input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }
  
  .search-box i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
  }
  .btn-search {
    background: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
    border-radius: 0 4px 4px 0;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    float: right;
}
  .carrito {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: auto;
  }
  
  .carrito-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .carrito-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
  }
  
  .carrito-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
  }
  
  .carrito-info h2 {
    font-size: 1rem;
    margin: 0;
  }
  
  .tachado {
    text-decoration: line-through;
    color: red;
    margin-right: 0.5rem;
  }
  
  .carrito-controles button {
    background: transparent;
    border: 1px solid #ccc;
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .carrito-eliminar {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: red;
  }
  
  .carrito-resumen {
    margin-top: 2rem;
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .resumen-linea, .resumen-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }
  
  .btn-finalizar {
    display: block;
    text-align: center;
    background: var(--color-primary);
    color: var(--color-primary-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-decoration: none;
  }
  .btn-finalizar:hover {
    display: block;
    text-align: center;
    background: var(--color-primary-dark);
    color: var(--color-primary);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-decoration: none;
  }
  .carrito-vacio {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-top: 2rem;
  }
  .carrito-wrapper {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    flex-wrap: wrap;
  }
  
  .carrito-principal {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .carrito-sidebar {

      height: 90vh;         /* Ocupa todo el alto de la pantalla */
  overflow-y: auto;      /* Scroll solo en vertical si es necesario */
  flex: 1 1 300px;
  max-width: 300px;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
 /*   flex: 1 1 300px;
    max-width: 300px;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;*/
  }
  
  .oferta-item {
    margin-bottom: 1.5rem;
    border: 1px solid #fff;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
  }
  
  .oferta-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 0.5rem;
  }
  
  .precio-oferta .tachado {
    text-decoration: line-through;
    color: red;
    margin-right: 0.5rem;
  }
  
  .btn-agregar-oferta {
    background: var(--color-primary);
    color: var(--color-primary-dark);
    padding: 0.5rem;
    width: 100%;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  .btn-agregar-oferta:hover {
    background: var(--color-primary-dark);
    color:var(--color-primary);
    padding: 0.5rem;
    width: 100%;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  @media (min-width: 768px) {
    .carrito-principal {
      flex: 2 1 60%;
    }
  
    .carrito-sidebar {
      flex: 1 1 35%;
    }
  }
.oferta-item img {
    max-width: 120px;;
}   
.mini-cart {
   /* height: 60%;*/
    overflow: overlay;
    position: fixed;
    top: 115px;
    right: 0%;
    width: 400px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 1rem;
    display: inline;
  }
  
  .mini-cart.oculto {
    display: none;
    
  }
  
  .mini-cart-item {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0.5rem;
  }
  
  .btn-mini {
    display: inline-block;
    margin-right: 3%;
    padding: 0.5rem;
    background: var(--color-primary-dark);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 47%;
    text-align: center;
  }
  
  .btn-primary {
    background: var(--color-primary, #000);
    color: black;
  }
  .checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
  }
  
  .checkout-main {
    flex: 1 1 65%;
  }
  
  .checkout-sidebar {
    flex: 1 1 30%;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 1rem;
  }
  
  .formulario-compra {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .formulario-compra input[type="text"],
  .formulario-compra input[type="email"],
  .formulario-compra input[type="tel"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
  }
  
  .btn-finalizar {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-primary,);
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
  
  /* Sidebar productos */
  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .sidebar-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
  }
  
  .sidebar-item .nombre {
    font-weight: bold;
    margin: 0;
  }
  
  .sidebar-item .precio {
    margin: 0; 
    font-size: 0.85rem;
    color: #666;
  }
  
  /* Totales */
  .resumen-linea, .resumen-total {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
  }
  
  .resumen-total {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
  }
  
  @media (max-width: 768px) {
    .checkout-container {
      flex-direction: column;
    }
  
    .checkout-sidebar {
      position: relative;
      top: unset;
    }
  }
  .detalle-producto {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  /*max-width: 1100px;*/
  max-width: 70%;
  margin: auto;
  padding: 2rem 1rem;
}

.galeria-producto {
  flex: 1 1 45%;
}

.galeria-producto {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 1rem;
}
.imagen-principal {
  width: 100%;
  max-height: 480px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background-color: #f5f5f5;
  border-radius: 8px;
  display: block;
}
.imagen-principal {
  aspect-ratio: 4 / 3;
  max-height: 480px;
}

.miniaturas {
 /* display: flex;*/
  gap: 0.5rem;
}

.miniaturas img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s;
}

.miniaturas img:hover {
  border-color: var(--color-primary, #000);
}

.info-producto {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.categoria {
  color: #fff;
  font-size: 0.9rem;
  margin-top: -0.5rem;
}

.precio {
  font-size: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.precio-antiguo {
  text-decoration: line-through;
  color: red;
  font-size: 1rem;
}

.descripcion {
  line-height: 1.5;
  color: #444;
}

.acciones-producto {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.acciones-producto input[type="number"] {
  width: 70px;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn-agregar-carrito {
  background: var(--color-primary, #000);
  color: black;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn-agregar-carrito:hover {
  background:  black; 
  color:var(--color-primary, #000);
  padding: 0.8rem 1.2rem;
  border: none;
  font-weight: bolder;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .detalle-producto {
    flex-direction: column;
  }
}
.breadcrumbs {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: var(--color-primary, #000);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .actual {
  color: #999;
  font-weight: bold;
}
.compartir-producto {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.compartir-producto img {
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.compartir-producto img:hover {
  transform: scale(1.1);
}
.chip-categoria {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background-color: #f0f0f0;
  color: #333;
  border-radius: 20px;
  max-width:fit-content;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  user-select: none;
}
