@import url('https://fonts.googleapis.com/css2?family=Stack+Sans+Headline:wght@200..700&display=swap');


body {
  font-family: 'Montserrat Light', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #080808;
  color: #f5f5f5;
  scroll-behavior: smooth;
  overflow-x: hidden;

}

header {
  text-align: center;
  padding: 400px 0;
  background: linear-gradient(135deg, #99b8cd, #99b8cd);
  color: #333;
  border-bottom: 5px solid #99b8cd;
}


html {
  overflow-y: scroll;
}


nav {
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #080808;
  padding: 10px 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  color: #f5f5f5;
}

nav a {

  text-decoration: none;
  color: #f5f5f5;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 400;
  text-align: center;
  min-width: 100px;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
}

nav a:hover {
  font-weight: bold;
  /* o usar transform: scale(...) si prefieres */
}

nav a.active {
  color: f5f5f5;
  font-weight: bold;
}

.nav-name {
  position: absolute;
  left: 50px;
  color: rgb(179, 179, 179);
  top: 50%;
  transform: translateY(-50%);
  padding-left: 10px;
  font-size: 1.2rem;
  white-space: nowrap;
  max-width: 140px;
  /* o ajusta para que no se salga */
  overflow: visible;
  /* asegúrate que no se corte */
  text-overflow: ellipsis;
  /* opcional, para recortar con "..." si muy largo */
  font-family: "Stack+Sans+Headline", sans-serif;
  font-weight: bold;
}

.nav-icons {
  position: fixed;
  top: 10px;
  right: 30px;
  display: flex;
  /* Menos espacio entre iconos */
  align-items: center;
  z-index: 1000;
}


.nav-icons a {
  min-width: 20px;
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 12px;
  padding: 2px;
  /* Opcional, para que el área clickeable no quede tan pequeña */
}

.nav-icons a:hover {
  color: grey;
}

.nav-icons svg {
  width: 30px;
  height: 30px;
  display: block;
}

.icon-instagram {
  width: 22px;
  height: 22px !important;
  display: block;
}

.icon-whatsapp {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.icon-whatsapp svg {
  display: block;
  width: 22px;
  height: 22px;
}


/* Cambiamos el fondo al hacer hover */
.icon-whatsapp svg .icon-background {
  transition: fill 0.3s ease;
  fill: #f5f5f5;
  /* color inicial fondo */
}

.icon-whatsapp:hover svg .icon-background {
  fill: grey;
  /* color fondo al hacer hover */
}

/* El teléfono negro no cambia */
.icon-whatsapp svg .icon-phone {
  fill: #080808;
  transition: none;
  /* sin transición ni cambio */
}

/* Botón hamburguesa oculto por defecto */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #f5f5f5;
  border-radius: 2px;
  align-items: right;
}

/* NUEVO: Estilo por defecto en escritorio */
.menu-content {
  display: flex;
  gap: 15px;
  align-items: center;
}


.inici {
  background-image: url('images/7.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  width: 100vw;
  /* ancho completo viewport */

  /* Ajustamos la altura considerando el espacio que ocupa el menú y el footer.
     Si por ejemplo el menú y footer ocupan 100px en total, 
     restamos eso del viewport height */
  height: calc(100vh - 40px);

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  color: #f5f5f5;
  text-align: center;
  padding: 10px 20px;
  /* reducimos el padding lateral para evitar scroll horizontal */
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
}

.inici h1 {
  margin-bottom: 0.2em;
  /* reduce el margen inferior del h1 */
  font-size: 60px;
}

.inici h3 {
  margin-top: 0;
  /* elimina margen superior del h3 */
  color: rgb(194, 194, 194)
}

main {
  height: calc(100vh - 180px);
  /* espacio disponible entre nav y footer */
  overflow-y: auto;
  /* permitir scroll solo dentro del main si es necesario */
}

.photos-content {
  padding-top: 20px;
  padding-bottom: 80px;
}

.photos-content-multi {
  padding-top: 20px;
  padding-bottom: 80px;
}

h2 {
  text-align: center;
}

h4 {
  text-align: center;
}

.pages-titles {
  text-decoration: underline;
}

p {
  max-width: 1200px;
  /* Limita el ancho */
  margin: 0 auto;
  /* Centra el párrafo */
  text-align: justify;
  /* Justifica el texto */
  padding-bottom: 12px;
  line-height: 1.5;
}

.fotos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* Espacio entre imágenes */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  /* Centra las imágenes en la fila */

}

.fotos-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* Espacio entre imágenes */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  /* Centra las imágenes en la fila */
  margin-bottom: 20px;
  margin-top: 20px;
  padding-bottom: 40px;
}

.fotos-multi .foto {
  width: 500px;
  /* ancho fijo o relativo */
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: cover;
  /* para que las imágenes mantengan proporción */
}

.fotos-multi .foto:hover {
  transform: scale(1.07);
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.fotos-multi .foto_v {
  width: 230px;
  /* ancho fijo o relativo */
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: cover;
  /* para que las imágenes mantengan proporción */
}

.fotos-multi .foto_v:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.fotos-multi-galery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columnas siempre */
  gap: 20px;
  /* Espacio entre imágenes */
  justify-items: center;
  /* Centra las imágenes dentro de cada celda */
  margin-bottom: 20px;
  margin-top: 20px;
  padding-bottom: 40px;
}

.fotos-multi-galery .foto {
  width: 500px;
  /* ancho fijo o relativo */
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: cover;
  /* para que las imágenes mantengan proporción */
}

.fotos-multi-galery .foto:hover {
  transform: scale(1.07);
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.fotos-multi-galery .foto_v {
  width: 230px;
  /* ancho fijo o relativo */
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: cover;
  /* para que las imágenes mantengan proporción */
}

.fotos-multi-galery .foto_v:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.fotos .foto {
  width: 350px;
  /* ancho fijo o relativo */
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 8px;
  object-fit: cover;
  /* para que las imágenes mantengan proporción */
}

.fotos .foto:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.item-galery {
  position: relative;
  overflow: hidden;
}


.item-galery .foto {
  width: 500px;
  height: 350px;
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: cover;
  /* para que las imágenes mantengan proporción */
}

.item-galery .foto_v {
  width: 230px;
  height: 350px;
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: cover;
  /* para que las imágenes mantengan proporción */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.overlay-content {
  font-size: 14px;
  width: 95%;
  line-height: 1.3;
  word-break: break-word;
  /* evita que palabras largas se salgan */
}

.overlay-content p {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
  line-height: 1.4;
  /* mantiene legibilidad sin demasiado aire */
}

.item-galery:hover .overlay {
  opacity: 1;
}

.item-galery:hover img {
  transform: scale(0);
}

.repo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* cambia aquí el minmax */
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
  padding-bottom: 40px;
}

.repo .item {
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  overflow: hidden;
  /* Quitamos el width fijo */
}

.repo .item p {
  margin-top: 15px;
  /* o el valor que prefieras */
  font-size: 1rem;
  text-align: center;
}

.img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  /* o la proporción que quieras */
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.img-wrapper:hover img {
  transform: scale(1.1);
}


#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: default;
  padding: 30px;
  box-sizing: border-box;
}

#lightbox-img {
  max-width: calc(100vw - 60px);
  /* ancho total menos 30px por lado */
  height: auto;
  /* altura automática para respetar proporción */
  max-height: none;
  /* quitar limitación de altura */
  border-radius: 8px;
  object-fit: contain;
  max-height: calc(100vh);
}

#close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #f5f5f5;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

#prev-btn {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  font-size: 40px;
  color: #f5f5f5;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

#next-btn {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 40px;
  color: #f5f5f5;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.recerca-section {
  padding-top: 100px;
  text-align: center;
}

.recerca-content p {
  width: 100% !important;
}

.recerca-text {
  width: 100% !important;
}

.image-wrapper {
  display: inline-block;
  overflow: hidden;
  /* Esto corta el exceso del zoom */
  border-radius: 8px;
  /* Opcional: redondear bordes */
}

.image-wrapper img {
  width: 450px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-wrapper img:hover {
  transform: scale(1.05);
}

.image-wrapper-both {
  display: flex;
  justify-content: center;
  gap: 30px;
  overflow: hidden;
  /* Esto corta el exceso del zoom */
  border-radius: 8px;
  /* Opcional: redondear bordes */
}

.image-wrapper-both img {
  width: 450px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-wrapper-both img:hover {
  transform: scale(1.05);
}

.recerca-section p {
  margin-top: 20px;
  text-align: left;
  padding-bottom: 40px;
}

.about {
  padding: 20px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
  margin-bottom: 100px;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-image {
  width: 250px;
  height: 400px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  text-align: justify;
  max-width: 60%;
  line-height: 1.5;
}

.about-content {
  padding-top: 100px;
}

.about-text h1 {
  color: rgb(155, 155, 155)
}



.contact-section {
  padding: 250px 20px;
  text-align: center;
  background-color: #080808;


}

.contact-section h2 {
  font-size: 2em;
  margin-bottom: 40px;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-card {
  background: #080808;
  border: 1px solid #d3d3d3;
  border-radius: 12px;
  padding: 20px 30px;
  width: 280px;
  text-decoration: none;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: box-shadow 0.3s;
}

.contact-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-card img {
  width: 30px;
  height: 30px;
}


footer {
  display: flex;
  justify-content: space-between;
  /* separa los párrafos a los extremos */
  align-items: center;
  /* centra verticalmente */
  padding: 0px 20px;
  background-color: #121212;
  color: #f5f5f5;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  /* para que padding no haga overflow */
  font-size: 14px;
}

footer p {
  all: unset;
  /* elimina casi todos los estilos heredados */
  display: inline;
  /* o inline-block, o block según necesites */
  color: inherit;
  font: inherit;
  margin: 10px;
}

.final-repor {
  height: 150px;
}

@media (max-width: 1450px) {
  .fotos-multi-galery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Espacio entre imágenes */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    /* Centra las imágenes en la fila */
    margin-bottom: 20px;
    margin-top: 20px;
    padding-bottom: 40px;
  }
}

/* Responsive: ocultar menu-content y mostrar botón */
@media (max-width: 1200px) {
  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    /* o space-between si quieres */
    padding: 10px 20px;
    color: #f5f5f5;
    display: flex;
    align-items: center;

  }

  .nav-name {
    position: fixed;
    top: 10px;
    /* fija la distancia arriba */
    left: 20px;
    /* fija la distancia desde la izquierda, igual que en desktop */
    transform: none;
    /* quita el translateY para que no se mueva */
    z-index: 1001;
    /* que esté encima del menú desplegable */
    padding: 5px;
  }

  .menu-toggle {
    display: flex;
    justify-content: center;
    /* centra los tres puntos dentro del botón */
    align-items: center;
    margin-left: auto;
    /* empuja el botón a la derecha */
    margin-right: 30px;
    color: #f5f5f5;
    padding: 5px;
    /* Quita width: 100%; */
  }

  /* Estilo vertical para móvil */
  .menu-content {
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  nav.show .menu-content {
    display: flex;
    width: 90vw;
  }

  .menu-content a {
    padding: 10px;
    width: 100%;
    text-align: center;
  }

  .nav-icons {
    display: none;
  }

  p {

    margin: 30px;
    /* Centra el párrafo */
    text-align: justify;
    /* Justifica el texto */
  }

}

@media (max-width: 600px) {


  .inici {
    padding-bottom: 60px;
  }


  .fotos-multi .foto {
    width: 90vw;
  }

  .about {
    max-width: 100% !important;
    /* que no limite ancho */
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .about-container {
    max-width: 100% !important;
    /* que ocupe todo el ancho posible */
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex-direction: column !important;
    align-items: center !important;

  }

  .about-text {
    max-width: 100% !important;
    /* ocupa todo el ancho */
    text-align: center !important;
    padding: 0 !important;
  }

  .about-image {
    width: 100% !important;
    height: auto !important;
  }

  .about-image img {
    width: 100% !important;
    height: auto !important;
  }

  .contact-section {
    padding: 50px 20px;
    margin-bottom: 60px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* evita que haya espacio innecesario */
    gap: 0px;
    /* elimina espacio entre elementos */
    padding: 5px 10px;
    /* reduce el padding vertical */
    height: auto;
    /* permite que el footer se adapte al contenido */
  }

  footer p {
    margin: 2px 0;
    /* reduce el margen entre párrafos */
    text-align: center;
  }

  .repo {
    padding-bottom: 80px;
    /* centrado horizontal */
  }

  .recerca-section {
    padding: 20px;
    padding-top: 100px;
    text-align: center;

  }

  .image-wrapper img {
    width: 90vw;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }

  .image-wrapper-both {
    flex-direction: column;
    gap: 20px;
  }

  .image-wrapper-both img {
    width: 90vw;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }
}