/* ================= RESET BÁSICO ================= */

:root {
  --naranjo: #F37021;        /* Naranjo oficial */
  --naranjo-hover: #d85e1c;  /* Hover oficial */
  --gris-carbon: #151515;    /* Gris carbón oficial */
  --marfil: #F1EFED;         /* Fondo oficial */
  --blanco: #ffffff;
}

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

/* ================= ESTILOS GENERALES ================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--marfil); /* Fondo oficial */
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= CONTENEDOR ================= */
.contenedor {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px 40px;
  flex: 1;
}

/* ================= HEADER ================= */
header.main-header {
  width: 100%;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

header.main-header .logo-img {
  max-width: 200px;
  height: auto;
}

/* Barra de búsqueda */
header.main-header .header-search {
  flex: 1 1 200px;
  display: flex;
  gap: 5px;
  justify-content: center;
}

header.main-header .header-search input {
  flex: 1;
  padding: 10px 25px;
  border-radius: 35px;
  border: 1px solid #ccc;
  outline: none;
}

header.main-header .header-search input:focus {
  border-color: var(--naranjo);
}

header.main-header .search-btn {
  background-color: var(--naranjo);
  color: var(--blanco);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Info adicional del header */
header.main-header .header-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

header.main-header .header-languages img {
  width: 25px;
  height: auto;
  cursor: pointer;
}

header.main-header .header-contact a {
  text-decoration: none;
  color: var(--gris-carbon); /* Texto oficial */
  font-weight: bold;
}

header.main-header .header-contact a:hover {
  text-decoration: underline;
}

/* ================= FORMULARIO DE BÚSQUEDA ================= */
form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

form input[type="text"] {
  width: 300px;
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: #fff;
}

form input[type="text"]:focus {
  border-color: var(--naranjo);
  box-shadow: 0 0 6px rgba(243, 112, 33, 0.4);
  outline: none;
}

form button {
  background-color: var(--naranjo);
  color: var(--blanco);
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(243, 112, 33, 0.4);
}

form button:hover {
  background-color: var(--naranjo-hover);
  box-shadow: 0 6px 14px rgba(216, 94, 28, 0.5);
}

/* ================= LISTADO DE PRODUCTOS ================= */
#productos {
  display: grid;
  gap: 25px;
  padding: 0 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 992px) {
  #productos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  #productos {
    grid-template-columns: 1fr;
  }
}

.producto {
  background-color: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.producto:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(243, 112, 33, 0.25);
}

/* ================= COMPRESIÓN DEL CONTENIDO ================= */

/* Título del producto */
.producto h3 {
  color: var(--naranjo);
  margin-bottom: 6px;      /* antes 12px */
  font-size: 1.25rem;       /* antes 1.4 rem → más compacto */
  font-weight: 700;
  min-height: auto;         /* antes 54px → hacía la carta muy alta */
  line-height: 1.2;         /* más compacto */
}

/* Descripción / categoría */
.producto p {
  color: var(--gris-carbon);
  font-size: 0.95rem;       /* 1rem → reduce altura */
  line-height: 1.25;        /* reduce la separación vertical */
  margin-bottom: 6px;       /* antes 10px */
}

/* Precio */
.producto strong {
  font-size: 1.05rem;       /* antes 1.2rem */
  color: var(--gris-carbon);
  font-weight: 800;
  margin-bottom: 8px;       /* añade separación mínima */
}

/* Contenedor interno */
.producto .contenido {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;                 /* compacta TODOS los elementos internos */
  padding: 14px 16px 18px;  /* antes 20px y 30px */
}


#productos .img {
  height: 220px;
  padding: 12px;
  background: var(--marfil); /* Fondo oficial */
  display: flex;
  justify-content: center;
  align-items: center;
}

#productos .img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.producto .contenido {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  padding-bottom: 30px;
}

/* Adaptaciones por pantalla */
@media (max-width: 1400px) {
  #productos {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  #productos {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  #productos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  #productos {
    grid-template-columns: 1fr;
  }
}

.producto .agregar-carrito {
  width: 100%;
  display: block;
  text-align: center;
  background-color: var(--gris-carbon);
  color: var(--blanco);
  border: none;
  padding: 12px 0;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.producto .agregar-carrito:hover {
  background-color: var(--gris-carbon);
}

.btn-detalle {
  display: inline-block;
  background: var(--naranjo);
  color: var(--blanco);
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease;
  margin-right: 6px;
}

.btn-detalle:hover {
  background: var(--naranjo-hover);
}

/* Centrado del botón Ver detalle dentro de la tarjeta */
.producto .btn-detalle {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  margin: 10px 0 0 0;
  border-radius: 8px;
  font-weight: 700;
}


/* ================= FOOTER ================= */
footer {
  background-color: #1e1e2d;
  color: #ccc;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

  /* Botón hamburguesa */
#menu-toggle {
    font-size: 28px;
    cursor: pointer;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    color: #fff;
    background: #ff6600;
    padding: 8px 12px;
    border-radius: 6px;
}

/* Menú lateral */
#sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    left: -250px; /* escondido por defecto */
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
    transition: 0.3s;
    z-index: 1000;
    padding-top: 60px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
}

/* Encabezado dentro del menú */
#sidebar h2 {
    color: #ff6600;
    text-align: center;
    margin-bottom: 20px;
}

/* Lista de categorías */
#sidebar ul {
    list-style-type: none;
    padding: 0;
}

#sidebar ul li {
    padding: 12px 20px;
}

#sidebar ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
    transition: 0.2s;
}

#sidebar ul li a:hover {
    background: #ff6600;
    color: #fff;
    border-radius: 4px;
}
/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  form {
    flex-direction: column;
    align-items: center;
  }
  form input[type="text"] {
    width: 90%;
  }
  header.main-header {
    flex-direction: column;
    align-items: center;
  }
  header.main-header .header-search {
    flex: 1 1 100%;
    margin: 10px 0;
  }
  header.main-header .header-info {
    justify-content: center;
    margin-bottom: 10px;
  }
}


/* ================= BOTÓN LIMPIAR FILTROS ================= */
.btn-limpiar {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: transparent;
  color: #FFA500; /* naranjo principal */
  border: 2px solid #FFA500;
  box-shadow: 0 2px 6px rgba(255, 165, 0, 0.25);
}

.btn-limpiar:hover {
  background-color: #FFA500;
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 165, 0, 0.4);
  transform: translateY(-1px);
}







/* =======================================================
   Carrusel de productos destacados
   ======================================================= */

#carouselDestacados {
  margin-top: 5rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  z-index: 1;
  background: linear-gradient(180deg, #F1EFED 0%, #F7E7D4 55%, #F37021 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/*  Cada item del carrusel en formato horizontal */
#carouselDestacados .carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

/*  Imagen del producto a la izquierda */
#carouselDestacados .carousel-item img {
  width: 43%;
  max-width: 360px;
  height: 320px;
  object-fit: contain;
  border-radius: 12px;
  background-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#carouselDestacados .carousel-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/*  Contenedor del texto a la derecha */
#carouselDestacados .carousel-caption {
  position: static;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 25px 35px;
  color: #151515;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  width: 38%;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/*  Título del producto */
#carouselDestacados .carousel-caption h5 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Precio */
#carouselDestacados .carousel-caption p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #F37021;
  margin-bottom: 14px;
}

/*  Botón “Ver producto” */
#carouselDestacados .carousel-caption .btn-ver-producto {
  background: #F37021;
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
  align-self: center;
}

#carouselDestacados .carousel-caption .btn-ver-producto:hover {
  background: #d85e1c;
  transform: scale(1.05);
}



/*  Badge “Destacado” */
.promo-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #F37021;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

/*  Controles del carrusel */
.carousel-indicators [data-bs-target] {
  background-color: #F37021;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}





/* =======================================================
   🎨 Navbar coherente con la marca (tono piel original)
   ======================================================= */
header, .navbar, .navbar-container {
  position: relative;
  z-index: 100;
}

/* Color piel suave */
.navbar,
.navbar-nav,
.navbar-container {
  background-color: #FBECE3 !important; /* ✅ tono piel cálido */
  color: #151515 !important;
  border: none !important;
}

.navbar a,
.navbar-brand,
.navbar-nav .nav-link,
.navbar-text {
  color: #151515 !important;
  transition: color 0.2s ease-in-out;
  font-weight: 500;
}

.navbar a:hover,
.navbar-nav .nav-link:hover {
  color: #F37021 !important; /* acento naranjo */
}

.navbar-toggler {
  border-color: transparent !important;
}

