/* ================== VARIABLES ================== */
:root {
  --first-color: #00abff;
  --button-color: hsl(0, 0%, 17%);
  --title-color: hsl(0, 0%, 15%);
  --text-color: hsl(0, 0%, 35%);
  --container-color: #fff;

  --body-font: 'Roboto', sans-serif;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1rem;
  --normal-font-size: 1rem;
  --font-medium: 600;

  --mb-1: 1rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
}
@media (min-width: 992px) {
}
@media (min-width: 768px) {
}
/* Ocultar en móviles */
.solo-escritorio {
    display: block;
}

@media (max-width: 768px) {
    .solo-escritorio {
        display: none;
    }
}

.productos__layout {
    display: flex;
    align-items: flex-start; /* Alinea arriba */
    gap: 2rem; /* Espacio entre el menú y las tarjetas */
}

/* Asegúrate de que el menú tenga un ancho fijo */
.menu-escritorio {
    width: 220px;
}

/* Y que el contenido de productos ocupe el resto */
.contenido-productos {
    flex: 1;
}


/* Por defecto: escritorio */
.menu-escritorio {
    display: block;
}

.menu-movil {
    display: none;
}

/* Para móviles: pantallas menores a 768px */
@media screen and (max-width: 768px) {
    .menu-escritorio {
        display: none;
    }

    .menu-movil {
        display: block;
    }
}

.breadcrumb__section {
    margin-top: 80px;
    background-color: #f9f9f9;
    font-size: 20px;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
}

/* Para pantallas medianas hacia arriba */
@media screen and (min-width: 768px) {
    .breadcrumb__section {
        padding: 10px 20px;
    }
}

/* Para pantallas grandes (laptops y PC de escritorio) */
@media screen and (min-width: 1024px) {
    .breadcrumb__section {
        padding: 10px 220px;
    }
}

.breadcrumb__nav {
  
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.breadcrumb__item {
    text-decoration: none;
    color: #333; /* gris sobrio */
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    transition: color 0.2s ease;
}

.breadcrumb__item:hover {
    color: #007bff; /* azul usado en íconos y enlaces */
    text-decoration: none;
}

.breadcrumb__current {
    color: #000; /* más marcado, para el nombre del producto */
    font-weight: 600;
    cursor: default;
}

.breadcrumb__separator {
    color: #999; /* separador más tenue */
}

/* ==== MENÚ LATERAL ==== */
.menu-lateral {
  width: 280px;
  background-color: #f9f9f9;
  border-right: 1px solid #ddd;
  padding: 20px 0;
  height: auto; /* o 100% si quieres que se extienda con la página */
  font-family: 'Poppins', sans-serif;
}

.categoria-lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.categoria-item {
  position: relative;
}

/* Botón categoría */
.categoria-boton {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.categoria-boton:hover {
  background-color: #e8e8e8;
  color: #007bff;
}

/* Submenú de marcas */
.marca-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #ffffff;
  border: 1px solid #ccc;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.categoria-item:hover .marca-submenu {
  display: block;
}


/* Botón marca */
.marca-boton {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.marca-boton:hover {
  background-color: #f0f0f0;
  color: #007bff;
}

/* Opcional: pequeña flecha al lado derecho del botón de categoría */
.categoria-boton::after {
  content: "▶";
  float: right;
  margin-right: 10px;
  font-size: 12px;
  color: #888;
}
.menu-toggle {
  display: none;
  background-color: #004080;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  margin: 10px 5px;
  border-radius: 5px;
  cursor: pointer;
}

.cerrar-menu {
  background: none;
  border: none;
  font-size: 22px;
  float: right;
  margin: 10px;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: inline-block;
  }

  .menu-lateral {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background-color: #fff;
    z-index: 999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    padding: 20px;
  }

  .menu-lateral.abierto {
    left: 0;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
  }

  .overlay.visible {
    display: block;
  }

  .menu-categorias li,
  .menu-marcas li {
    list-style: none;
    margin-bottom: 10px;
  }

  .menu-categorias button,
  .menu-marcas button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    background-color: #f3f3f3;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
  }

  .menu-categorias button:hover,
  .menu-marcas button:hover {
    background-color: #dbe7ff;
  }
}
/* Mostrar solo en escritorio */
.menu-escritorio {
    display: block;
}

.menu-movil {
    display: none;
}

/* Para móviles (pantallas menores de 768px) */
@media screen and (max-width: 768px) {
    .menu-escritorio {
        display: none;
    }

    .menu-movil {
        display: block;
    }
}
.productos__layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Fijamos el ancho del menú */
.menu-escritorio {
    width: 280px;
    flex-shrink: 0;
}

/* El contenido principal ocupa el resto del ancho */
.productos__contenido {
    flex-grow: 1;
    background-color: #fff;
    padding: 10px;
}



/*Tarejetas*/

/* === TARJETA DE PRODUCTO === */
.producto-tarjeta {
  width: 260px;
  height: 400px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.producto-tarjeta:hover {
  transform: translateY(-5px);
}

.producto-imagen img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.producto-detalle {
  flex-grow: 1;
  padding: 1rem;
  padding-bottom: 3.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  height: 100%;
  justify-content: flex-start;
}

.producto-marca {
  font-size: 14px;
  color: #777;
  margin: 0;
}

.producto-nombre {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #222;
  margin: 0;
    overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* máximo 2 líneas */
  -webkit-box-orient: vertical;

}

.producto-precio {
  font-size: 18px;
  font-weight: bold;
  color: #00abff;
  margin: 0;
}

.producto-caracteristicas {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #444;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* máximo 4 líneas visibles */
  -webkit-box-orient: vertical;
  padding-right: 3rem;
}

.producto-caracteristicas li {
  margin-bottom: 4px;
}

.producto-caracteristicas i {
  color: #00abff;
  margin-right: 6px;
}

/* Botón de WhatsApp */
.producto-whatsapp {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #25D366;
  font-size: 22px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.producto-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}
/* ===== CONTENEDOR PRINCIPAL DE TARJETAS ===== */
.contenido-productos {
  display: flex;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* GRID QUE CONTIENE TODAS LAS TARJETAS */
.grid-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1000px; /* Limita el ancho para que se vea centrado */
  padding: 30px; /* deja espacio para el menú lateral */
  box-sizing: border-box;
}

/* ===== MÓVILES ===== */
@media screen and (max-width: 768px) {
  .productos__layout {
    display: block; /* Quita el flex para que el contenido fluya en vertical */
  }
  .contenido-productos {
    padding: 10px;
  }

  .grid-tarjetas {
    max-width: 100%;
    grid-template-columns: 1fr; /* Una tarjeta por fila */
    justify-items: center;      /* Centrar tarjeta horizontalmente */
  }
}
.tarjeta-enlace {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Asegúrate que el botón WhatsApp no cubra el enlace */
.producto-whatsapp {
  display: flex;
  text-align: center;
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: #25d366;
  color: white;
  padding: 10px;
  border-radius: 50%;
  font-size: 30px;
  z-index: 10;
}

/* Contenedor de los botones de paginación */
.paginacion {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

/* Botones individuales */
.paginacion-btn {
    padding: 8px 12px;
    min-width: 40px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

/* Hover */
.paginacion-btn:hover {
    background-color: #007bff;
    color: #fff;
}

/* Botón activo */
.paginacion-btn.activo {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}
.paginacion-container{
    padding-left: 20%;
    padding-right: 20%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
