@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-celeste: #00afdd;
  --margen-izq: 260px;
  --margen-top: 60px;
}


body {
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; */
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: light;
  font-style: normal;


  color: #393939;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0px;
  text-align: left;
  -webkit-font-smoothing: subpixel-antialiased;
  -webkit-text-size-adjust: 100%;

}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: #00afdd;
  text-transform: none;
  line-height: 2.5em;
}

h1 {
  font-size: 1.3em;
}

h2 {
  font-size: 1.2em;
}

p {
  margin: 0 0 1em;
}

a {
  color: #00afdd;
  -webkit-transition: color .2s linear;
  transition: color .2s linear;
  text-decoration: underline;
}

a:hover {
  color: #000000;
}

.descripcion {
  max-width: 840px;
  text-align: left;
  padding: 1em;
  margin-left: var(--margen-izq);
  margin-top: var(--margen-top);
}

/* HEADER STYLE (Estilo Youruguay) */
.site-header {
  width: var(--margen-izq);
  height: 100vh;
  border-bottom: 1px solid #fff;
  position: fixed;
  top: 0;
  background-color: #fff;
  z-index: 100;
}


.header-container {
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
}


.site-logo {
  /* font-size: 18px; */
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  color: #000;
}
.site-logo img {
  width: 100%;
  max-width: 190px;
  height: auto;
}

.site-navigation {
  padding-left: 0.2em;
  margin-top: 2em;
}


.site-navigation ul {
  list-style: none;
  display: flex;
  gap: 14px;
  flex-direction: column;
}

.site-navigation a {
  text-decoration: none;
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 1px;
  color: #444444;
  transition: color 0.2s ease;
}

.site-navigation a:hover,
.site-navigation a.active {
  color: #00afdd;
  font-weight: bold;
}

/* --- Sub Menú de Portfolio --- */
.site-navigation .sub-menu-portfolio {
  padding-left: 12px;
  /* Genera la sangría hacia la derecha */
  gap: 8px;
  /* Un entrelineado un poco más compacto que el principal */
  margin-top: 6px;
  /* Despega los sub-ítems del botón PORTFOLIO */
}

.site-navigation .sub-menu-portfolio a {
  font-size: 0.95em;
  /* Un puntito más chico para marcar jerarquía */
  color: #232323;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* --- Estados Hover y Activo para las sub-opciones --- */
.site-navigation .sub-menu-portfolio a:hover,
.site-navigation .sub-menu-portfolio .current-sub-item a {
  color: #00afdd;
  /* Mantiene el color de acento de tu marca */
  font-weight: 500;
  /* Un peso medio para que no "baile" el texto al activarse */
}

/* --- ESTILOS RESPONSIVE PARA EL MENÚ (MOBILE-FIRST) --- */

/* Ocultar el botón por defecto en escritorio */
.burger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
  flex-direction: column;
  gap: 5px;
}

.burger-bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #888;
  /* Combina con tu color de texto pasivo */
  transition: all 0.3s ease;
}

/* Animación de la hamburguesa transformándose en una 'X' */
.burger-toggle.is-active .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: #00afdd;
}

.burger-toggle.is-active .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger-toggle.is-active .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: #00afdd;
}

/* --- MEDIA QUERY PARA DISPOSITIVOS MÓVILES (< 768px) --- */
@media (max-width: 767px) {

  :root {
    --margen-izq: 0px;
    --margen-top: 80px;
  }


  .burger-toggle {
    display: flex;
    position: absolute;
    right: 0;
    top: 2em;
  }

  .descripcion {
    padding: 1.5em;
  }

  .gallery-mosaico {
    margin-top: var(--margen-top);
  }



  .header-container {
    padding: 0.2em;

  }

  .language-selector {
    position: absolute;
    top: 0.5em;
    right: 1em;
  }

  /* Modificamos el contenedor de la navegación para que sea un panel oculto */
  .site-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    /* Totalmente oculto a la derecha */
    width: 100%;
    /* Ocupa gran parte de la pantalla */
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    padding: 100px 30px 40px 30px;
    /* Espacio arriba para que no lo tape el logo/burger */
    transition: right 0.4s ease;
    margin-top: 0;
    z-index: 998;
  }

  .site-logo {
    z-index: 999;
    padding-left: 0.5em;
  }

  .site-header {
    width: 100%;
    height: var(--margen-top);
    padding: 0em;
  }

  /* Cuando el menú esté activo, entra a la pantalla */
  .site-navigation.is-active {
    right: 0;
  }

  /* El selector de idiomas también lo metemos al menú o lo acomodamos para que no tape */
  .language-selector {
    /* Ajustes opcionales si querés moverlo de lugar en móvil */
  }
}

/* MOSAICO CSS COLUMNS (Súper Compatible) */
.gallery-container {
  /* max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px; */
  margin-left: var(--margen-izq);
  position: relative;
  overflow: visible;
  padding: 0px 30px 2.5em 0px;
}

.gallery-mosaico {
  column-count: 1;
  column-gap: 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .gallery-mosaico {
    column-count: 2;
  }


}

@media (max-width: 768px) {

  .gallery-container {
    padding: 1em;
    margin: 0;
  }
}

@media (min-width: 1200px) {
  .gallery-mosaico {
    column-count: 3;
  }
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 24px;
  overflow: hidden;
  background-color: #fcfcfc;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  opacity: 0.85;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.7em;
  color: #aaa;
  border-top: 1px solid #f9f9f9;
}

/* ==========================================================================
   AJUSTES DEFINITIVOS PARA PHOTOSWIPE V5
   ========================================================================== */

/* 1. Botón de Fullscreen */
.pswp__button--fullscreen-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #fff;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.pswp__button--fullscreen-btn:hover {
  opacity: 1;
}

.pswp__button--fullscreen-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* 1. Posicionamos el contenedor que creamos con JS abajo de todo */
.pswp__custom-caption {
  position: absolute;
  bottom: 0;
  /* Lo clava en el piso de la pantalla */
  left: 0;
  width: 100%;
  padding: 15px 20px;
  background: #fff !important;
  color: #00afdd !important;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1em;
  z-index: 99999 !important;
  padding: 0.1em;
}

/* 2. Estilos específicos para tus etiquetas internas */
.pswp__custom-caption strong {
  color: #00afdd !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pswp__custom-caption span {
  color: #00afdd !important;
  display: inline-block;
  margin: 0 10px;
}

/* 3. Ajuste de seguridad para el contenedor nativo de PhotoSwipe */
.pswp__ui {
  z-index: 99990 !important;
}

.pswp__icn {
  position: relative;
  fill: #00afdd;
  color: #fff;
}

.pswp__icn-shadow {
  /* stroke: var(--pswp-icon-stroke-color); */
  stroke-width: 0;
  fill: none;
}

.pswp__bg {
  /* background: #fff; */
  background: #000;
  opacity: 0.99 !important;
}

.pswp__counter {
  color: #00afdd;
  text-shadow: 0 0 BLACK;
  font-weight: 500;
}
.pswp__share-btn, .pswp__fullscreen-btn{
 cursor: pointer;
 padding: 0.2em;
     width: 50px;
    height: 60px;
}

.pswp__top-bar>* {
  border: 0;
  background: transparent;
}
/* Centrar el icono custom de compartir */
.pswp__button--share-btn img {
  display: block;
  object-fit: contain;
  margin: auto;
}

/* Estilos para el mensaje flotante de "Copiado" */
.pswp-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: sans-serif;
  z-index: 99999;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: pswpToastIn 0.3s ease;
}

@keyframes pswpToastIn {
  from { bottom: 10px; opacity: 0; }
  to { bottom: 20px; opacity: 1; }
}


/* Custom Fade Transition para PhotoSwipe v5 */


/* //////// SLIDE SHOW HOME //// */
/* Contenedor fijo que ocupa toda la pantalla */
.home-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}



/* La imagen cubre todo sin deformarse */
/* Todas las fotos nacen invisibles */
/* Todas las fotos nacen invisibles */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  padding-left: var(--margen-izq);
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
  z-index: 1;
}

/* La imagen escala al 100% de la pantalla usando el punto focal */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* El truco del inicio rápido: la primera se muestra por defecto */
.home-slider .slide:first-child {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* LA SOLUCIÓN AL BUG: Si cualquier OTRA foto se activa, apagamos la fuerza de la primera */
.home-slider:has(.slide:nth-child(n+2).active) .slide:first-child {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

/* Cuando una foto normal se activa, pasa al frente */
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 3;
  /* Un nivel más arriba para tapar con seguridad */
}

/* Textos flotantes con animación sutil de aparición */
.slide-info {
  position: absolute;
  bottom: 60px;
  left: 60px;
  color: #fff;
  z-index: 10;
  font-family: system-ui, -apple-system, sans-serif;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 1.2s ease-in-out;

  /* Evita que el texto capture el clic, pasándoselo al slider por detrás */
  pointer-events: none;

  /* Evita que se seleccione el texto azul al hacer doble clic rápido en móviles o desktop */
  user-select: none;
}

.slide.active .slide-info {
  transform: translateY(0);
}

.slide-info h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.slide-info span {
  font-size: 1.2rem;
  color: #e0e0e0;
  letter-spacing: 1px;
}


/* IDIOMAS */
.language-selector {
  position: absolute;
  bottom: 1em;
}

.language-selector ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Color de los idiomas inactivos */
.language-selector a {
  text-decoration: none;
  font-weight: normal;
  color: #888;

}

.language-selector li.current-language a {
  font-weight: bold;
  /* Color del idioma actual */
  color: var(--color-celeste)
}

/* ==========================================================================
   Fade de las descripciones
   ========================================================================== */
/* Definimos la animación */
@keyframes fadeInEffect {
  from {
    opacity: 0;
    transform: translateY(10px);
    /* Opcional: le da un empujoncito hacia arriba de 10px muy sutil */
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicamos la clase */
.fade-in-onload {
  opacity: 0;
  /* Empieza invisible */
  animation: fadeInEffect 0.8s ease-out forwards;
  /* 'forwards' hace que se quede en opacidad 1 al terminar */
  animation-delay: 0.2s;
  /* Un mini retraso opcional para que cargue primero el layout */
}