/* === ESTILOS ESPECÍFICOS PARA EL CATÁLOGO === */

.catalogo {
  background: #f8f9fa;
  padding: 100px 20px;
  text-align: center;
  min-height: 100vh;
}

.catalogo h2 {
  color: #153e54;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.catalogo .lead {
  color: #6c7b86;
  margin-bottom: 60px;
  font-size: 1rem;
  line-height: 1.6;
}

/* === GRID === */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === PRODUCTOS === */
.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-card img:hover {
  transform: scale(1.05);
}

.product-card h3 {
  color: #153e54;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 16px 0 6px;
}

.product-card .price {
  color: #eb8531;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.product-card .btn {
  display: inline-block;
  background: linear-gradient(90deg, #eb8531, #f39a50);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.product-card .btn:hover {
  background: #f39a50;
  transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .catalogo {
    padding: 70px 14px;
  }
  .catalogo h2 {
    font-size: 2rem;
  }
  .product-card img {
    height: 180px;
  }
}

/* === LIGHTBOX PRO FINAL (Efecto Transparente Silmaur) === */
.lightbox-pro {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

/* === CONTENEDOR PRINCIPAL === */
.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 90%;
  max-height: 90%;
  color: #fff;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px) saturate(130%);
  -webkit-backdrop-filter: blur(15px) saturate(130%);
  border-radius: 22px;

  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 6px 30px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(235, 133, 49, 0.25);

  background-image: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.08),
    rgba(21, 62, 84, 0.12) 70%
  );

  padding: 28px 26px 22px;
  animation: fadeIn 0.3s ease;
}

/* === IMAGEN PRINCIPAL === */
.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 63vh;
  object-fit: contain;
  margin: 20px 0 12px;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease;
  animation: zoomIn 0.4s ease;
}

/* === FLECHAS DE NAVEGACIÓN === */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(21, 62, 84, 0.6);
  color: #fff;
  border: none;
  font-size: 2.4rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.nav-btn:hover {
  background: rgba(235, 133, 49, 0.95);
  transform: translateY(-50%) scale(1.1);
}

.nav-btn.prev { left: 12px; }
.nav-btn.next { right: 12px; }

/* === BOTÓN CERRAR === */
.close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 34px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.close:hover {
  background: rgba(235, 133, 49, 0.9);
  transform: scale(1.1);
}

/* === MINIATURAS === */
.thumbnails {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.thumbnails::-webkit-scrollbar { display: none; }

.thumbnails img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.thumbnails img:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.thumbnails img.active {
  opacity: 1;
  border-color: #eb8531;
  box-shadow: 0 0 10px rgba(235, 133, 49, 0.8);
}

/* === CAPTION === */
.caption {
  margin-top: 18px;
  color: #fff;
  text-align: center;
  line-height: 1.4;
  animation: fadeInUp 0.4s ease;
}

.caption h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.caption p {
  color: #eb8531;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

/* === ANIMACIONES === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE LIGHTBOX === */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    padding: 16px;
  }

  .lightbox-content img {
    max-width: 92%;
    max-height: 55vh;
    margin: 16px 0 8px;
  }

  .nav-btn {
    font-size: 2rem;
    width: 45px;
    height: 45px;
  }

  .nav-btn.prev { left: 6px; }
  .nav-btn.next { right: 6px; }

  .close {
    top: 6px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .thumbnails img {
    width: 60px;
    height: 60px;
  }

  .caption h3 { font-size: 1.2rem; }
  .caption p { font-size: 1rem; }
}

/* === 💎 ESTILOS DE OFERTAS SILMAUR === */
.price {
  margin-bottom: 16px;
  font-weight: 700;
}

.old-price {
  color: #6c7b86;
  font-size: 0.95rem;
  text-decoration: line-through;
  margin-right: 8px;
  opacity: 0.7;
}

.new-price {
  color: #eb8531;
  font-size: 1.2rem;
  font-weight: 800;
}

/* === BADGE DE OFERTA 🔥 === */
.discount-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(235, 133, 49, 0.9);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 8px 8px 8px 0;
  padding: 5px 10px;
  box-shadow: 0 2px 8px rgba(235, 133, 49, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: offerGlow 2.8s infinite ease-in-out;
  z-index: 5;
}

.discount-tag span {
  display: inline-block;
  animation: bounceText 2s infinite ease-in-out;
}

/* 🔥 Animaciones suaves */
@keyframes offerGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(235,133,49,0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(235,133,49,0.9);
    transform: scale(1.05);
  }
}

@keyframes bounceText {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Responsive oferta */
@media (max-width: 768px) {
  .discount-tag {
    top: 8px;
    right: 8px;
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}
