* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #fff !important;
  overflow-x: hidden; /* evita scroll horizontal no deseado */
}

.contenedor {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem;
}

@media (max-width: 480px) {
  .contenedor {
    width: 95%;
    padding: 0.5rem;
  }
}

.navbar {
  box-shadow: 0 2px 10px rgba(249, 180, 69, 0.3); /* Sombra acorde */
}

.navbar-brand img:hover {
  transform: scale(1.1);
}
.navbar-toggler {
  border-color: #e5a500 !important; /* Tono más oscuro */
  margin-left: 15px;
}
.navbar-nav {
  margin-top: 20px;
  --bs-nav-link-hover-color: #e5a500; /* Hover oscuro */
}
.nav-link {
  color: #222 !important; /* Texto oscuro para contraste */
  padding: 15px 20px;
  font-weight: 500;
  position: relative;
  transition: all 0.3s;
}
.nav-link:hover {
  color: #e5a500 !important;
}
.nav-link.active {
  color: #fdc05f !important;

  border-radius: 5px;
}
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
  }
}
@media (min-width: 992px) {
  .navbar-nav {
    margin-left: auto;
  }
  .nav-link.active:after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: black;
    border-radius: 3px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #fafafa !important;
  overflow-x: hidden;
}

.slide {
  position: relative;
  box-shadow: 0px 1px 6px rgba(0,0,0,0.64);
  margin-top: 1.5rem;
  max-width: 100%;
}

.slide-inner {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1920 / 900; /* proporción horizontal por defecto */
  background: #fafafa;
  opacity: 0;
  transition: opacity 0.6s ease-out;
  overflow: hidden;
}

.slide-open:checked + .slide-item {
  position: relative;
  opacity: 1;
}

.slide-item picture,
.slide-item img {
  width: 100%;
  height: 100%;
  display: block;
}

.slide-item img {
  object-fit: contain; /* nunca recorta */
  object-position: center;
}

/* En pantallas móviles, cambiamos proporción */
@media (max-width: 768px) {
  .slide-item {
    aspect-ratio: 9 / 16; /* vertical para móvil */
  }

  .slide-item img {
    object-fit: contain; /* mantiene imagen completa */
  }
}

.slide-control {
  background: rgba(0,0,0,0.28);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 2.5rem;
  height: 3.5rem;
  line-height: 3.5rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  width: 3.5rem;
  z-index: 10;
}

.slide-control.prev { left: 2%; }
.slide-control.next { right: 2%; }

.slide-control:hover {
  background: rgba(0,0,0,0.8);
  color: #aaa;
}

#slide-1:checked ~ .control-1,
#slide-2:checked ~ .control-2,
#slide-3:checked ~ .control-3 {
  display: block;
}

.slide-indicador {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  bottom: 2%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.slide-indicador li {
  display: inline-block;
  margin: 0 0.3rem;
}

.slide-circulo {
  color: #828282;
  cursor: pointer;
  display: block;
  font-size: 2rem;
}

.slide-circulo:hover {
  color: #aaa;
}

#slide-1:checked ~ .control-1 ~ .slide-indicador li:nth-child(1) .slide-circulo,
#slide-2:checked ~ .control-2 ~ .slide-indicador li:nth-child(2) .slide-circulo,
#slide-3:checked ~ .control-3 ~ .slide-indicador li:nth-child(3) .slide-circulo {
  color: #428bca;
}

@media (max-width: 480px) {
  .slide-control {
    font-size: 1.8rem;
    height: 2.5rem;
    width: 2.5rem;
    line-height: 2.5rem;
  }

  .slide-circulo {
    font-size: 1.5rem;
  }
}

h2 {
  text-align: center;
  font-size: 100px;
  position: relative;
}
h2::before,
h2::after {
  content: "---";
  margin: 0 10px;
  color: #888;
}
.categories-container {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* mínimo 280px, se ajusta con 1fr */
  gap: 30px;
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 15px;
}
.subfilters {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #666;
  user-select: none;
}
.subfilter {
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: "Roboto", sans-serif;
  font-weight: bold; /* Aquí se pone en negrita */
}
.subfilter:hover {
  background-color: #bfa98b;
  color: white;
  font-weight: 700; /* Negrita más fuerte al hover */
}
.subfilter.active {
  background-color: #bfa98b;
  color: white;
  font-weight: 700; /* Negrita más fuerte en activo */
}
.category {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(249, 180, 69, 0.3); /* Sombra igual que navbar */
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(249, 180, 69, 0.5);
}
.category-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}
.category h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #444;
}
.category p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .categories-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .categories-container {
    grid-template-columns: 1fr !important; /* solo 1 columna */
    gap: 20px;
    max-width: 90vw; /* aprovecha casi todo el ancho móvil */
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 480px) {
  h2::before,
  h2::after {
    content: "";
    margin: 0;
  }

  h2 {
    font-size: 24px;
  }

  .category {
    padding: 20px;
  }

  .category-img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
}

#kits {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

#kits .section-title {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

#kits .section-subtitle {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.product-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(249, 180, 69, 0.3);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(249, 180, 69, 0.5);
}

.product-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 18px;
  margin: 10px 0;
  color: #444;
}

.product-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.btn-comprar {
  background-color: #f9b445;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.btn-comprar:hover {
  background-color: #e0a23b;
}

#productSection {
  text-align: center;
}

/* Estilo del título */
#section-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #000000;
  margin-bottom: 20px;
  display: inline-block;   /* la línea solo ocupa lo que mide el texto */
  border-bottom: 3px solid #042B00;
  padding-bottom: 5px;
}

/* Elimina guiones heredados */
#section-title::before,
#section-title::after {
  content: none !important;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 15px;
  padding: 0;
}

.grid-item {
  width: 100%;
  overflow: hidden;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.grid-item:hover {
  transform: scale(1.03);
}

.grid-item img {
  width: 92%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.grid-item img.changing {
  opacity: 0.7;
  transform: scale(0.98);
}

.grid-item img {
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.grid-item img.secondary {
  position: absolute;
  top: 0;
  left: 4%;
  opacity: 0;
  z-index: 1;
}

.grid-item:hover img.primary {
  opacity: 0;
  transform: scale(0.95);
}

.grid-item:hover img.secondary {
  opacity: 1;
  transform: scale(1.03);
}

.grid-item.clicked img.primary {
  opacity: 0;
}

.grid-item.clicked img.secondary {
  opacity: 1;
}

.btn-comprar {
  width: 92%;
  margin-top: 1px;
  padding: 8px 12px;
  background-color: #bfa98b;
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-comprar:hover {
  background-color: #a68c6f;
  transform: scale(1.02);
}
@media (min-width: 768px) and (max-width: 912px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 15px;
  }

  .grid-item img {
    width: 92%;
  }

  .btn-comprar {
    width: 92%;
    padding: 10px 15px;
    font-size: 1rem;
  }
}

@media (min-width: 913px) {
  .masonry-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
  }

  .grid-item img {
    width: 92%;
  }

  .btn-comprar {
    width: 92%;
    padding: 10px 15px;
    font-size: 1rem;
  }
}

.popup-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      z-index: 1000;
      justify-content: center;
      align-items: center;
      animation: fadeIn 0.3s;
      padding: 100px 15px 15px 15px;
      box-sizing: border-box;
    }

    .popup-overlay.active {
      display: flex;
    }

    .popup-content {
      background: linear-gradient(135deg, #ffffff, #f9f9f9);
      border-radius: 20px;
      width: 90%;
      max-width: 900px;
      display: flex;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
      position: relative;
      animation: scaleUp 0.4s ease;
      overflow: hidden;
      max-height: 80vh;
    }

    .popup-text {
      flex: 0.8;
      padding: 40px 30px;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow-y: auto;
    }

    .popup-image {
      flex: 1.2;
      min-width: 350px;
      background: linear-gradient(135deg, #f7f6d1 0%, #f7f6d1 100%);
      background-image: url('../img/popup.png');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
    }

    .popup-image::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(248, 247, 228, 0.3), rgba(249, 248, 232, 0.3));
    }

    .popup-title {
      color: #222;
      font-size: 22px;
      font-weight: 700;
      line-height: 1.3;
      margin-bottom: 15px;
    }

    .popup-parrafo {
      color: #555;
      font-size: 13px;
      line-height: 1.6;
      margin-bottom: 8px;
    }

    .divider {
      width: 60px;
      height: 3px;
      background: #25d366;
      margin: 15px auto;
      border-radius: 2px;
    }

    .close-popup {
      position: absolute;
      top: 15px;
      right: 15px;
      font-size: 22px;
      color: #666;
      cursor: pointer;
      background: #fff;
      border-radius: 50%;
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.3s;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      z-index: 10;
    }

    .close-popup:hover {
      background: #f1f1f1;
      color: #000;
      transform: rotate(90deg);
    }

    .social-icons {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 20px;
    }

    .social-icons .icon {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #eee;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      color: #555;
      transition: all 0.3s ease;
      text-decoration: none;
    }

    .social-icons .instagram:hover {
      background: #e1306c;
      color: #fff;
      transform: scale(1.15);
    }

    .social-icons .whatsapp:hover {
      background: #25d366;
      color: #fff;
      transform: scale(1.15);
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes scaleUp {
      from { transform: scale(0.8); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    /* Responsive */
    @media (max-width: 768px) {
      .popup-overlay {
        padding: 80px 15px 15px 15px;
      }

      .popup-content {
        flex-direction: column;
        max-width: 600px;
        max-height: 85vh;
      }

      .popup-image {
        order: -1;
        min-height: 280px;
        height: 280px;
        min-width: 100%;
        flex-shrink: 0;
      }

      .popup-text {
        order: 1;
        padding: 30px 25px;
      }

      .popup-title {
        font-size: 20px;
      }

      .popup-parrafo {
        font-size: 13px;
      }
    }

    @media (max-width: 600px) {
      .popup-image {
        height: 300px;
        min-height: 300px;
      }
    }

    @media (max-width: 480px) {
      .popup-image {
        height: 320px;
        min-height: 320px;
      }

      .popup-text {
        padding: 25px 20px;
      }

      .popup-title {
        font-size: 18px;
      }

      .popup-parrafo {
        font-size: 12px;
      }

      .social-icons .icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
      }
    }

    @media (max-width: 360px) {
      .popup-image {
        height: 280px;
        min-height: 280px;
      }

      .popup-title {
        font-size: 17px;
      }
    }
          
#pagination-controls button {
  min-width: 80px;
}

#pagination-controls button {
  min-width: 80px;
  padding: 8px 15px;
  border-radius: 4px;
  border: 1px solid #bfa98b;
  background-color: white;
  color: #bfa98b;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-left: 10px;
}

#pagination-controls button:hover {
  background-color: #bfa98b;
  color: white;
}

#pagination-controls button:disabled {
  background-color: #f5f5f5;
  color: #999;
  border-color: #ccc;
  cursor: default;
}

#pageNumbers button {
  min-width: 35px;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 3px;
}

#pageNumbers button.active,
#pageNumbers button:hover {
  background-color: #bfa98b;
  color: white;
  border-color: #bfa98b;
}

footer {
  background-color: #f9f4de;
  color: #020202;
  padding: 5px 0;
  margin-top: 40px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(249, 180, 69, 0.3);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
  padding: 0 15px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 5px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #020202;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #0c0c0c;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #000000;
}

.footer-section p {
  line-height: 1.6;
  color: #000000;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #444;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  line-height: 40px;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: #4caf50;
}

.footer-bottom {
  background-color: #fdc05f;
  padding: 15px 0;
  text-align: center;
  margin-top: 20px;
}

.footer-bottom p {
  color: #000000;
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-section {
    flex: 100%;
    max-width: 100%; /* Asegura que no exceda el ancho */
    padding: 0 100px; /* Ajusta padding si hace falta */
  }

  .footer-container {
    padding: 0 15px; /* Para que no toque los bordes del móvil */
  }
}
