/* === Gradiente marrón elegante === */
.gradient-bg {
  background: linear-gradient(to top, #4a2c1a, #a67b5b);
}

/* === Tipografía general === */
body {
  font-family: 'Inter', sans-serif;
  color: #2b2b2b;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* === Galería === */
.gallery-card {
  background-size: cover;
  background-position: center;
  border-radius: 0.75rem;
  height: 250px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.overlay {
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.2rem;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .overlay {
  opacity: 1;
}

/* === Formularios === */
input, textarea {
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
  border-color: #a67b5b;
  box-shadow: 0 0 0 2px rgba(166, 123, 91, 0.25);
}

/* ======= SLIDESHOW ======= */
#slideshow .slide {
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

#slideshow .slide.active {
  opacity: 1;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* === Catálogo expandible (placeholders) === */
.catalogo-img {
  height: 220px;
  border-radius: 0.75rem;
  background: repeating-linear-gradient(
    45deg,
    #e5e7eb,
    #e5e7eb 10px,
    #f3f4f6 10px,
    #f3f4f6 20px
  );
  position: relative;
  overflow: hidden;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Mostrar texto placeholder solo si el contenedor está vacío */
.catalogo-img:empty::after {
  content: "Imagen de producto";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hacer que las imágenes llenen el contenedor */
.catalogo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox styles */
#lightbox {
  display: none;
  align-items: center;
  justify-content: center;
}

#lightbox img {
  max-width: 100%;
  max-height: 90vh;
}
#lightbox-close {
  background: transparent;
  border: none;
  cursor: pointer;
}
#lightbox[aria-hidden="false"] {
  display: flex;
}
