/* Galería del salón (inicio y sobre nosotros) + visor de fotos ampliadas */
.salon{
  max-width: 1300px;
  margin: 0 auto;
  padding: 90px 20px;
}

.salon-head{ text-align: center; margin-bottom: 40px; }

.salon-head span{
  color: #2b496e;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.salon-head h2{
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  color: #1a2633;
  margin: 12px 0 10px 0;
}

.salon-head p{ font-size: 16px; color: #6a7482; margin: 0; }

.salon-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.salon-item{
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #e9edf2;
  cursor: zoom-in;
}

.salon-item.grande{ grid-column: span 2; grid-row: span 2; }

.salon-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.salon-item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,22,33,0.35));
  opacity: 0;
  transition: opacity .3s ease;
}

.salon-item:hover img{ transform: scale(1.06); }
.salon-item:hover::after{ opacity: 1; }
.salon-item:focus-visible{ outline: 3px solid #2b496e; outline-offset: 3px; }

/* Variante de 3 fotos verticales en columnas (sobre nosotros) */
.salon-trio{ grid-template-columns: repeat(3, 1fr); gap: 18px; }
.salon-trio .salon-item{ aspect-ratio: 3 / 4; border-radius: 20px; }

@media (max-width: 860px){
  .salon{ padding: 60px 16px; }
  /* en celular las 3 columnas se deslizan de costado */
  .salon-grid.salon-trio{
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .salon-trio::-webkit-scrollbar{ display: none; }
  .salon-trio .salon-item{ scroll-snap-align: center; }
  .salon-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .salon-item{ border-radius: 12px; }
  .salon-head h2{ font-size: 28px; }
}

.visor{
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10,14,20,0.94);
  display: none;
  align-items: center;
  justify-content: center;
}

.visor.abierto{ display: flex; }

.visor img{
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.visor button{
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  transition: background .2s ease;
}

.visor button:hover{ background: rgba(255,255,255,0.25); }
.visor-cerrar{ top: 20px; right: 20px; }
.visor-prev{ left: 20px; top: 50%; transform: translateY(-50%); }
.visor-next{ right: 20px; top: 50%; transform: translateY(-50%); }
.visor-contador{
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #cfd9e6;
  font-size: 14px;
  letter-spacing: 1px;
}

@media (max-width: 600px){
  .visor-prev{ left: 8px; }
  .visor-next{ right: 8px; }
  .visor button{ width: 44px; height: 44px; font-size: 22px; }
}
