/* Una ilustración que se construye a partir de trazos, sin fotografía ni controles. */
#alpine-loader {
  background: radial-gradient(ellipse at 50% 48%, #252132, #12121a 70%);
  backdrop-filter: none;
}
.mountain-sketch {
  width: min(900px, 94vw);
  max-height: 85vh;
  overflow: visible;
  filter: drop-shadow(0 0 8px #e9b89920);
}
.mountain-sketch path {
  fill: none;
  stroke: url(#sketch-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: sketchDraw 1.7s ease forwards;
}
.mountain-sketch .sketch-ridge {
  stroke-width: 2.3;
}
.sketch-facets path {
  animation-delay: 0.5s;
  opacity: 0.6;
}
.mountain-sketch .sketch-moon {
  animation-delay: 0.3s;
}
.mountain-sketch .sketch-trail {
  animation-delay: 0.9s;
  stroke: #efb28d;
}
.mountain-sketch .sketch-contour {
  animation-delay: 0.7s;
  opacity: 0.35;
}
.sketch-stars {
  opacity: 0;
  animation: sketchStars 1s 0.6s ease forwards;
}
.sketch-stars circle {
  fill: #d5ddd8;
}
.sketch-stars path {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}
@keyframes sketchDraw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes sketchStars {
  to {
    opacity: 0.75;
  }
}
/* Dos capas para fundir las fotografías sin destellos ni saltos. */
.gallery button > img,
.experience > img {
  transition:
    opacity 1.1s ease,
    transform 1.1s ease;
}
.gallery button > img.photo-next,
.experience > img.photo-next {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.gallery button > img.photo-visible,
.experience > img.photo-visible {
  opacity: 1;
}
.photo-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 24px;
}
.photo-controls > span {
  font-size: 12px;
  color: var(--muted);
}
/* Mosaico por proporciones: panorámica, horizontal y vertical de día y de noche. */
#paisajes .gallery {
  grid-template-columns: 1.3fr 1fr 0.9fr 0.8fr;
  grid-template-rows: auto auto;
  align-items: start;
  height: auto;
  gap: 24px;
  padding: 12px 0;
}
#paisajes .gallery button {
  min-width: 0;
  grid-column: auto;
  height: auto;
  margin: 0;
  animation: landscapeFloat 8s ease-in-out infinite alternate;
}
#paisajes .gallery button > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#paisajes .gallery button:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  width: 88%;
  aspect-ratio: 1.5;
  margin-top: 0;
  animation-duration: 10s;
  animation-delay: -3s;
}
#paisajes .gallery button:nth-child(3) {
  grid-column: 3;
  grid-row: 1 / span 2;
  aspect-ratio: 1365 / 2048;
  margin-top: 22px;
  animation-duration: 9s;
  animation-delay: -6s;
}
#paisajes .gallery button:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 2048 / 1537;
  margin-top: 18px;
  animation-duration: 11s;
  animation-delay: -2s;
}
#paisajes .gallery button:nth-child(1) {
  grid-column: 1 / span 2;
  grid-row: 1;
  aspect-ratio: 2.7;
}
#paisajes .gallery button:nth-child(5) {
  grid-column: 4;
  grid-row: 1 / span 2;
  aspect-ratio: 1537 / 2048;
  margin-top: 62px;
  animation-duration: 12s;
  animation-delay: -5s;
}
#paisajes .gallery span {
  left: 10px;
  right: 10px;
  bottom: 12px;
  padding: 6px 8px;
  font-size: 11px;
}
#paisajes .gallery button:hover,
#paisajes .gallery button:focus-visible,
#paisajes.photos-paused .gallery button {
  animation-play-state: paused;
}
@keyframes landscapeFloat {
  from {
    transform: translateY(-4px) rotate(-0.4deg);
  }
  to {
    transform: translateY(5px) rotate(0.4deg);
  }
}
@media (max-width: 800px) {
  #paisajes .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    gap: 20px 14px;
  }
  #paisajes .gallery button:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    margin-top: 0;
  }
  #paisajes .gallery button:nth-child(1) {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #paisajes .gallery button {
    animation: none;
  }
  .mountain-sketch path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .sketch-stars {
    animation: none;
    opacity: 0.75;
  }
  .gallery button > img,
  .experience > img {
    transition: none;
  }
}
