/* galeria.css - Estilos para la página de galería */

/* Estilos generales */
.gallery-section {
  padding: 3rem 0;
  background-color: #f9f7ea;
  font-family: "Nunito Sans", sans-serif;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #735b56;
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Estilos del carrusel */
#galleryCarousel {
  margin-bottom: 3rem;
  box-shadow: 0 10px 20px rgba(115, 91, 86, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
}

.carousel-caption {
  background-color: rgba(249, 247, 234, 0.85);
  padding: 1.5rem;
  border-radius: 8px;
  bottom: 3rem;
  left: 10%;
  right: 10%;
}

.carousel-caption h5 {
  color: #735b56;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  color: #986c6c;
  font-size: 1.1rem;
}

.carousel-indicators button {
  background-color: #d4b569;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: #df9908;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #df9908;
  border-radius: 50%;
  padding: 1.5rem;
  background-size: 60%;
}

/* Estilos del catálogo */
.catalog-container {
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-title {
  text-align: center;
  font-size: 2rem;
  color: #735b56;
  margin-bottom: 1.5rem;
  position: relative;
}

.catalog-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, #d4b569, #df9908);
  margin: 0.5rem auto 0;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid #d4b569;
  background-color: transparent;
  color: #735b56;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #d4b569;
  color: #f9f7ea;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

/* Estilos de las tarjetas de arreglos florales (se generarán dinámicamente) */
.flower-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(115, 91, 86, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flower-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(115, 91, 86, 0.2);
}

.flower-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.flower-info {
  padding: 1.5rem;
}

.flower-title {
  color: #735b56;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.flower-price {
  color: #df9908;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.flower-description {
  color: #986c6c;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.flower-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: #d4b569;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.flower-btn:hover {
  background-color: #df9908;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .carousel-item img {
    height: 350px;
  }

  .carousel-caption {
    bottom: 1.5rem;
    left: 5%;
    right: 5%;
  }

  .carousel-caption h5 {
    font-size: 1.3rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }

  .carousel-item img {
    height: 250px;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 80%;
    text-align: center;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/*CSS adicional para el zoom*/

/* Estilos para el modal de zoom */
.modal-zoom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(115, 91, 86, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: zoom-out;
}

.modal-zoom .modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-zoom img {
  max-height: 80vh;
  max-width: 90vw;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: -40px;
  right: -40px;
  color: #f9f7ea;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #d4b569;
}

.modal-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.nav-btn {
  background-color: rgba(249, 247, 234, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-btn:hover {
  background-color: #d4b569;
  color: white;
}

/* Efecto hover para las imágenes */
.catalog-item .item-image {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.zoomable-image {
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.zoomable-image:hover {
  transform: scale(1.05);
}

/* Responsive para el modal */
@media (max-width: 768px) {
  .modal-zoom img {
    max-width: 95vw;
  }

  .close-modal {
    top: -30px;
    right: 0;
    font-size: 30px;
  }

  .nav-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}

/* Hero Section para Galería con Animaciones */
.gallery-hero {
  background-color: #735b56; /* russett */
  color: #f9f7ea; /* quarter-spanish white */
  padding: 100px 20px;
  text-align: center;
  background-image: linear-gradient(
      rgba(115, 91, 86, 0.8),
      rgba(115, 91, 86, 0.8)
    ),
    url("../images/galeria-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  animation: fadeIn 0.8s ease-out forwards;
}

.gallery-hero .hero-content {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.gallery-hero .hero-content h1 {
  font-family: "Parisienne", cursive;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.gallery-hero .hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Efecto hover para el hero */
.gallery-hero:hover {
  background-image: linear-gradient(
      rgba(115, 91, 86, 0.7),
      rgba(115, 91, 86, 0.7)
    ),
    url("../images/galeria-hero-bg.jpg");
}

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

/* Efecto de aparición escalonada para los elementos hijos */
.hero-content > * {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content h1 {
  animation-delay: 0.3s;
}

.hero-content p {
  animation-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-hero {
    padding: 80px 20px;
    min-height: 350px;
  }

  .gallery-hero .hero-content h1 {
    font-size: 2.8rem;
  }

  .gallery-hero .hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .gallery-hero {
    padding: 60px 15px;
    min-height: 300px;
  }

  .gallery-hero .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .gallery-hero .hero-content p {
    font-size: 1rem;
    max-width: 100%;
    padding: 0 10px;
  }
}

:root {
  --quarter-spanish-white: #f9f7ea;
  --gamboge: #df9908;
  --tacha: #d4b569;
  --russett: #735b56;
  --lucky: #a99318;
  --sahara: #b89611;
  --buff: #f2d785;
  --dusty-gray: #a99394;
  --copper-rose: #986c6c;
  --anzac: #e1bf40;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 30px;
  background-color: var(--quarter-spanish-white);
}

.catalog-item {
  border: 1px solid var(--tacha);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: white;
  box-shadow: 0 5px 15px rgba(115, 91, 86, 0.1);
}

.catalog-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(115, 91, 86, 0.15);
}

.item-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  cursor: zoom-in;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.catalog-item:hover .item-image img {
  transform: scale(1.05);
}

.filter-buttons {
  display: flex;
  gap: 12px;
  padding: 15px 30px;
  flex-wrap: wrap;
  background-color: var(--quarter-spanish-white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.filter-btn {
  padding: 8px 18px;
  background: var(--buff);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  color: var(--russett);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(115, 91, 86, 0.1);
}

.filter-btn:hover {
  background: var(--tacha);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gamboge);
  color: var(--quarter-spanish-white);
  box-shadow: 0 4px 8px rgba(223, 153, 8, 0.3);
}

/* Modal para visualización de imágenes */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(115, 91, 86, 0.9);
  z-index: 100;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-image {
  max-height: 80vh;
  max-width: 90vw;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.4s ease;
}

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

.close-modal {
  position: absolute;
  top: -40px;
  right: -10px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.close-modal:hover {
  transform: rotate(90deg);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  background-color: rgba(223, 153, 8, 0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-arrow:hover {
  background-color: var(--gamboge);
}

.arrow-left {
  left: 20px;
}

.arrow-right {
  right: 20px;
}

/* Estilos adicionales para la información del item */
.item-info {
  padding: 15px;
  color: var(--russett);
}

.item-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--copper-rose);
}

.item-price {
  font-weight: bold;
  color: var(--gamboge);
  font-size: 1.3rem;
}

/* Añade esto al CSS existente */

.badge-destacado {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--gamboge);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.item-info {
  padding: 15px;
  background-color: white;
  border-top: 1px solid var(--tacha);
}

.item-info h3 {
  color: var(--copper-rose);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.item-price {
  color: var(--gamboge);
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.item-desc {
  color: var(--russett);
  font-size: 0.9rem;
  line-height: 1.4;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--russett);
  font-size: 1.2rem;
}

/* Mejoras para el modal */
.image-modal.active {
  display: flex;
  opacity: 1;
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: auto;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-image-container {
  position: relative;
  max-width: 100%;
  max-height: calc(90vh - 60px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  max-height: 80vh;
  max-width: 80vw;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  object-fit: contain;
  animation: zoomIn 0.4s ease;
}

/* Flechas mejor centradas verticalmente */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background-color: rgba(223, 153, 8, 0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  border: none;
  outline: none;
}

.nav-arrow:hover {
  background-color: var(--gamboge);
  transform: translateY(-50%) scale(1.1);
}

.arrow-left {
  left: 10px;
}

.arrow-right {
  right: 10px;
}

/* Miniaturas */
.thumbnail-container {
  display: flex;
  gap: 10px;
  padding: 15px;
  overflow-x: auto;
  max-width: 100%;
  margin-top: 10px;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.1);
  border-color: var(--gamboge);
}

.thumbnail.active {
  border-color: var(--gamboge);
  transform: scale(1.1);
}

/* Estilos para el filtro móvil */
.mobile-filter-container {
  display: none;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.mobile-filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid #d4b569;
  background-color: #d4b569;
  color: #f9f7ea;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.mobile-filter-btn:hover {
  background-color: #c9a95d;
}

.filter-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 200px;
  margin-top: 0.5rem;
}

.filter-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-dropdown-list li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter-dropdown-list li:hover {
  background-color: #f5f5f5;
}

.filter-dropdown-list li.active {
  background-color: #d4b569;
  color: white;
}

/* Mostrar/ocultar según el tamaño de pantalla */
@media (max-width: 768px) {
  .filter-buttons {
    display: none;
  }

  .mobile-filter-container {
    display: flex;
  }

  .filter-dropdown.hidden {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-filter-container {
    display: none !important;
  }

  .filter-buttons {
    display: flex;
  }
}

/* Estilos para la sección de precios */
.price-section {
  margin: 15px 0;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.price-option {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  align-items: center;
}

.size-label {
  font-weight: 600;
  color: #555;
}

.price {
  font-weight: 700;
  color: #2c3e50;
}

.flower-count {
  font-size: 0.85em;
  color: #7f8c8d;
}

/* Estilo para el botón de WhatsApp */
.whatsapp-button {
  display: block;
  background-color: #25d366;
  color: white;
  text-align: center;
  padding: 10px 15px;
  border-radius: 5px;
  margin-top: 15px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.whatsapp-button:hover {
  background-color: #128c7e;
}

.whatsapp-button i {
  margin-right: 8px;
}

/* Estilos para la sección de selección de tamaño */
.price-section {
  margin: 15px 0;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.size-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.size-selector label {
  font-weight: 600;
  color: #555;
}

.size-select {
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
}

.size-select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Estilo para el botón de WhatsApp */
.whatsapp-button {
  display: block;
  background-color: #25d366;
  color: white;
  text-align: center;
  padding: 10px 15px;
  border-radius: 5px;
  margin-top: 15px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  cursor: pointer;
}

.whatsapp-button:hover {
  background-color: #128c7e;
}

.whatsapp-button i {
  margin-right: 8px;
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.image-modal.active {
  display: flex;
}

.modal-content {
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  height: 90vh;
}

.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.close-modal {
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: #f1f1f1;
}

.modal-image-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modal-image {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
  animation: zoomIn 0.4s ease;
}

.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px 0;
  overflow-x: auto;
  max-width: 100%;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
  opacity: 0.7;
}

.thumbnail:hover {
  opacity: 1;
}

.thumbnail.active {
  border-color: white;
  opacity: 1;
}

@keyframes zoomIn {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    height: 95vh;
  }
  
  .thumbnail {
    width: 50px;
    height: 50px;
  }
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px dashed #ddd;
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.price-notice {
    font-size: 14px !important;
    color: #888 !important;
    font-style: italic;
    margin: 15px 0 !important;
}

.custom-whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: white !important;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
}

.custom-whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.custom-whatsapp-button i {
    margin-right: 8px;
    font-size: 18px;
}

.price-section {
  margin-top: 8px;
}

.price-note {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  line-height: 1.4;
}