/* =============================================
   GALLERY MODAL - ESTILOS CSS SIN TAILWIND
   ============================================= */

/* Overlay del modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 60;
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.3s ease;
}

.gallery-modal.is-visible {
  display: flex;
  opacity: 1;
}

@media (min-width: 768px) {
  .gallery-modal {
    padding: 3rem;
  }
}

/* Contenedor del modal */
.gallery-modal-container {
  background-color: #ffffff;
  width: 100%;
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

@media (min-width: 768px) {
  .gallery-modal-container {
    flex-direction: row;
    height: 600px;
  }
}

/* Botón de cierre */
.gallery-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  color: #000000;
  border: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 1.25rem;
  line-height: 1;
}

.gallery-modal-close:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Contenedor de la imagen */
.gallery-modal-image-container {
  width: 100%;
  height: 16rem;
  background-color: #f3f4f6;
}

@media (min-width: 768px) {
  .gallery-modal-image-container {
    width: 66.666667%;
    height: 100%;
  }
}

.gallery-modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contenedor del contenido */
.gallery-modal-content {
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background-color: #FAFAFA;
  height: 100%;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .gallery-modal-content {
    width: 33.333333%;
    padding: 3rem;
  }
}

/* Etiqueta */
.gallery-modal-label {
  color: #0044a5;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

/* Título */
.gallery-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .gallery-modal-title {
    font-size: 1.5rem;
  }
}

/* Descripción */
.gallery-modal-description {
  color: #4b5563;
  font-weight: 300;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

/* Botón de WhatsApp */
.gallery-modal-whatsapp {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.25rem;
  color: #ffffff;
  background-color: #25D366;
  text-decoration: none;
  transition: background-color 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  width: 100%;
  flex-shrink: 0;
}

.gallery-modal-whatsapp:hover {
  background-color: #1ebe5d;
}

.gallery-modal-whatsapp:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.5);
}

.gallery-modal-whatsapp svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* =============================================
   UTILIDADES ADICIONALES
   ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Estilos para el scroll en el contenido */
.gallery-modal-content::-webkit-scrollbar {
  width: 4px;
}

.gallery-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-modal-content::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 2px;
}