/* General */
* {
  font-family: "Questrial", sans-serif;
}

body {
  margin: 0;
  font-family: sans-serif;
  background-color: #203145;
  color: #fff;
}

/* Header */
.header {
  justify-content: space-between;
  background-color: #203145;
  top: 10;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 20px 50px;
}

.back-arrow,
.contact-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

.logo {
  height: 1.5rem;
}

/* Gallery layout */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  max-width: 92%;
  margin: auto;
}

/* Fila normal de 2 columnas (por si mantienes otras) */
.gallery-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

/* Fila invertida */
.gallery-row.reverse {
  grid-template-columns: 2fr 1fr;
}

/* NUEVA clase: Fila de 4 columnas para imagen/texto/texto/imagen */
.gallery-row.four-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-row.four-columns > div {
  flex: 1 1 22%;
  min-width: 250px;
  box-sizing: border-box;
}
/* NUEVA clase: Fila de 4 columnas para texto/imagen/texto */
.gallery-row.three-columns-center-image {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 columnas iguales */
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}


/* Imagen */
.image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  transition: transform 0.2s ease;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
}

.image-container.zoom img {
  transform: scale(var(--zoom, 1));
}

/* Texto */
.texto-container {
  position: relative;
  width: 100%;
}

.text-overlay {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.1rem;
  color: white;
  box-sizing: border-box;
  height: 100%;
}

.text-content {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.text-content h1 {
  margin-top: 7%;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  text-align: left;
  margin-bottom: 1.5rem;
}

.text-content p {
  font-size: clamp(1.1rem, 2.2vw, 1.1rem);
  line-height: 1.4;
  text-align: justify;
}

/* Redes sociales */
.social-links {
    width: 80%;
    gap: 10px; /* Espacio entre enlaces */
    margin: auto auto; /* Centra horizontalmente */
}

.social-links a {
    padding: 3px;
    color: #E8EEF1;
    text-decoration: none;
    font-size: 30px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover i {
    color: #E8EEF1; /* o cualquier color que quieras al pasar el mouse */
    transform: scale(1.2); /* efecto de zoom suave */
  }

/* Footer */
footer {
    text-align: center; /* Centra texto en el footer */
    padding: 1rem 4rem; /* Espaciado arriba/abajo e izquierda/derecha */
    font-size: 0.9rem;
    background-color: #203145; /* Gris oscuro */
  }

/* Responsive */
@media (max-width: 1024px) {
  .gallery-row.four-columns > div {
    flex: 1 1 45%; /* 2 columnas por fila en tablets */
  }
  .gallery-row.three-columns-center-image > div {
    flex: 1 1 100%; /* 2 columnas por fila en tablets */
  }
}

@media (max-width: 600px) {
    
  .social-links {
        width: 100%;
        justify-content: center;
    }
      .social-links a {
        font-size: 24px;
    }
  }
@media (max-width: 1024px) {
  .gallery-row.four-columns > div {
    flex: 1 1 45%; /* 2 columnas por fila en tablets */
  }
}

@media (max-width: 600px) {
  .header {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .contenedor-scroll {
    max-height: 180px;
    overflow-y: auto;
    padding: 0 2%;
    scrollbar-width: thin;
    scrollbar-color: rgba(252, 75, 75, 0.568) transparent;
  }

  .contenedor-scroll::-webkit-scrollbar {
    width: 6px;
  }

  .contenedor-scroll::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 4px;
  }

  .contenedor-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .gallery-row,
  .gallery-row.reverse {
    grid-template-columns: 1fr;
  }

  .gallery-row.four-columns {
    flex-direction: column;
  }

  .gallery-row.four-columns > div {
    flex: 1 1 100%;
  }

  .info-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
  }

  .text-overlay {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .text-content {
    padding: 0.5rem;
  }

  .text-content h1 {
    font-size: clamp(1rem, 4vw, 1.4rem);
  }

  .text-content p {
    font-size: clamp(0.8rem, 3vw, 1.1rem);
  }
  @media (max-width: 768px) {
  .gallery-row.three-columns-center-image {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }
}

}
