/* ============================================
   IMAGE PLACEHOLDERS (rendimiento)
   ============================================ */

.cabin-carousel .carousel-slide {
  background-color: #2d3a2a;
}

.gallery-carousel .carousel-slide {
  background-color: #1a2e1f;
}

.exp-card picture {
  background-color: #3d4a3a;
  display: block;
}

.bento-img-wrapper {
  background-color: #2a3a2f;
}

picture img {
  color: transparent;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--ease-out-expo);
}

.nav-bar.scrolled {
  background: rgba(245, 242, 237, 0.92);
  backdrop-filter: blur(16px);
  padding: 0.75rem 3rem;
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-snow);
  transition: color 0.3s ease;
  opacity: 0.9;
}

.nav-bar.scrolled .nav-logo {
  color: var(--color-forest);
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-bar.scrolled .nav-link {
  color: var(--color-text-muted);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-snow);
  opacity: 1;
}

.nav-bar.scrolled .nav-link:hover {
  color: var(--color-text);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  color: var(--color-snow);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.nav-bar.scrolled .nav-cta::before {
  border-color: var(--color-forest);
}

.nav-bar.scrolled .nav-cta {
  color: var(--color-forest);
}

.nav-cta:hover {
  background: var(--color-snow);
  color: var(--color-forest);
}

.nav-cta:hover::before {
  border-color: var(--color-snow);
}

.nav-bar.scrolled .nav-cta:hover {
  background: var(--color-forest);
  color: var(--color-snow);
}

.nav-bar.scrolled .nav-cta:hover::before {
  border-color: var(--color-forest);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    transparent 60%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-snow);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.2s var(--ease-out-expo) 0.3s forwards;
}

.hero-title-line {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.6em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  margin: 1rem auto;
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-sub {
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s var(--ease-out-expo) 0.6s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1.75rem;
  color: var(--color-snow);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s var(--ease-out-expo) 0.9s forwards;
  transition: all 0.4s var(--ease-out-expo);
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  transition: all 0.4s var(--ease-out-expo);
}

.hero-cta:hover {
  gap: 1.75rem;
  padding-left: 2.25rem;
  padding-right: 2.25rem;
  background: rgba(255, 255, 255, 0.08);
}

.hero-cta:hover::before {
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-cta-diamond {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  transition: all 0.4s var(--ease-out-expo);
  flex-shrink: 0;
}

.hero-cta:hover .hero-cta-diamond {
  transform: rotate(0deg);
  background: var(--color-snow);
  border-color: var(--color-snow);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero.morphing .hero-content {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
}

.hero-scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--color-snow), transparent);
  animation: scrollPulse 2.5s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ============================================
   ABOUT / PROYECTO
   ============================================ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--color-bg);
}

.about-image {
  position: relative;
  overflow: hidden;
  background: var(--color-forest);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out-expo);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem;
}

.about-text {
  max-width: 32rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.about-gallery-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-dawn);
}

.about-gallery-links p {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.gallery-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-mist);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.gallery-trigger span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-forest);
  transition: color 0.3s ease;
}

.gallery-trigger i {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.gallery-trigger:hover span {
  color: var(--color-moss);
}

.gallery-trigger:hover i {
  transform: translateX(4px);
  color: var(--color-moss);
}

/* ============================================
   REFUGIOS (CABAÑAS)
   ============================================ */

.refugios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100vh;
  gap: 2px;
  background: var(--color-forest);
}

.cabin-item {
  position: relative;
  overflow: hidden;
  background: var(--color-forest);
  isolation: isolate;
  cursor: pointer;
}

.cabin-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.cabin-item:hover::after {
  opacity: 0;
}

.cabin-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* --- Carousel Track --- */
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.08, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-slide picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide.active picture img {
  transform: scale(1.08);
}

/* --- Arrows (always visible, glass morphism) --- */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.85rem;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  animation: carousel-pulse 3s ease-in-out infinite;
}

.carousel-control i {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  animation: none;
}

.carousel-control:hover i {
  transform: scale(1.2);
}

.carousel-control.prev:hover i {
  transform: translateX(-2px) scale(1.2);
}

.carousel-control.next:hover i {
  transform: translateX(2px) scale(1.2);
}

.carousel-control:active {
  transform: translateY(-50%) scale(0.92);
}

.carousel-control.prev { left: 1rem; }
.carousel-control.next { right: 1rem; }

@keyframes carousel-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 255, 255, 0); }
  50% { box-shadow: 0 0 12px rgba(255, 255, 255, 0.08); }
}

/* --- Progress Bar (replaces dots) --- */
.carousel-progress {
  position: absolute;
  bottom: 1.25rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  gap: 4px;
  z-index: 10;
  height: 3px;
}

.carousel-progress-segment {
  flex: 1;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.carousel-progress-segment .carousel-progress-fill {
  position: absolute;
  inset: 0;
  background: white;
  width: 0%;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.65, 0, 0.08, 1);
}

.carousel-progress-segment.active .carousel-progress-fill {
  width: 100%;
  transition: width 5s linear;
}

.carousel-progress-segment.visited .carousel-progress-fill {
  width: 100%;
  transition: width 0.4s cubic-bezier(0.65, 0, 0.08, 1);
}

/* --- Cabin Content Animation --- */
.cabin-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5rem 2rem 3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
  z-index: 5;
}

.cabin-content > * {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cabin-content.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.cabin-content.visible h3 { transition-delay: 0.05s; }
.cabin-content.visible p { transition-delay: 0.1s; }
.cabin-content.visible a { transition-delay: 0.15s; }

.cabin-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-snow);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.cabin-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  max-width: 90%;
}

.cabin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 8rem;
  padding: 0 1.25rem;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-snow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cabin-btn::after {
  content: '\f232';
  font-family: 'Font Awesome 6 Brands';
  font-weight: 400;
  font-size: 0.75rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cabin-btn:hover {
  background: var(--color-snow);
  color: var(--color-forest);
  border-color: var(--color-snow);
}

.cabin-btn:hover::after {
  transform: translateX(2px);
}

/* ============================================
   EXPERIENCIAS
   ============================================ */

.experiencias {
  padding: 8rem 0;
  background: var(--color-snow);
}

.experiencias-header {
  text-align: center;
  margin-bottom: 5rem;
}

.experiencias-header .section-subtitle {
  margin: 0 auto;
}

.experiencias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: min(1280px, 92vw);
  margin: 0 auto;
  padding: 0 2rem;
}

.exp-card {
  position: relative;
  height: 28rem;
  overflow: hidden;
  cursor: pointer;
}

.exp-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.exp-card picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}

.exp-card:hover img {
  transform: scale(1.06);
}

.exp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}

.exp-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-snow);
  margin-bottom: 0.5rem;
}

.exp-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ============================================
   CONTACTO
   ============================================ */

.contacto {
  padding: 6rem 0;
  background: var(--color-bg);
}

.contacto-head {
  text-align: center;
  margin-bottom: 3rem;
}

.contacto-head .section-subtitle {
  margin: 0 auto;
}

.contacto-container {
  max-width: min(1320px, 92vw);
  margin: 0 auto;
  padding: 3rem;
  background: var(--color-snow);
  border: 1px solid var(--color-mist);
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contacto-map {
  height: 30rem;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-mist);
}

.map-wrapper iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.35) sepia(0.05);
  transition: filter 0.4s var(--ease-out-expo);
}

.map-wrapper:hover iframe {
  filter: grayscale(0) sepia(0);
}

.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.map-fallback a {
  color: var(--color-moss);
  text-decoration: underline;
}

.map-fallback-coords {
  font-family: var(--font-display);
  font-size: 0.8rem;
  opacity: 0.7;
}

.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(10, 26, 15, 0.7) 0%, rgba(10, 26, 15, 0.1) 40%, transparent 60%);
  opacity: 1;
  transition: opacity 0.4s var(--ease-out-expo);
  z-index: 3;
  flex-wrap: wrap;
}

@media (hover: hover) {
  .map-overlay {
    opacity: 0;
    visibility: hidden;
  }
  .map-wrapper:hover .map-overlay {
    opacity: 1;
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-overlay,
  .map-wrapper iframe {
    transition: none;
  }
  .map-wrapper:hover iframe {
    filter: grayscale(0.35) sepia(0.05);
  }
}

.map-overlay * {
  pointer-events: auto;
}

.map-coords {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-snow);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.map-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-snow);
  text-decoration: none;
  padding: 0.5rem 1.15rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 2rem;
  transition: background 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
  margin-left: auto;
}

.map-directions:hover {
  background: var(--color-moss);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.contacto-coords {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--color-moss);
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contacto-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-moss);
  font-size: 0.9rem;
}

.contacto-item h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contacto-item p,
.contacto-item a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.contacto-item a:hover {
  color: var(--color-moss);
}

.contacto-cta {
  margin-top: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-forest);
  color: var(--color-snow);
  padding: 6rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: min(1280px, 92vw);
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-brand .sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  max-width: 28rem;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  position: relative;
  width: fit-content;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-moss);
  transition: width 0.3s var(--ease-out-expo);
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-nav a:hover {
  color: var(--color-moss);
}

.footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

.footer-wa {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer-wa:hover {
  color: #25d366;
}

.footer a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--color-moss);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-socials a {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  border-color: var(--color-moss);
  color: var(--color-moss);
  background: rgba(123, 160, 91, 0.1);
  transform: translateY(-2px);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.06), transparent);
  max-width: min(1280px, 92vw);
  margin: 0 auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  max-width: min(1280px, 92vw);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-bottom p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
}

.footer-bottom .location {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
}

/* ============================================
   MORPH OVERLAY (NAV)
   ============================================ */

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  margin-left: 1rem;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--color-snow);
  transition: all 0.35s var(--ease-out-expo);
  transform-origin: center;
}

.nav-bar.scrolled .hamburger span {
  background: var(--color-forest);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    margin-left: 0;
  }
}

.morph-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.morph-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.morph-close {
  position: fixed;
  top: 1.25rem;
  right: 3rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}

.morph-close span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--color-snow);
  transition: all 0.35s var(--ease-out-expo);
  transform-origin: center;
}

.morph-close span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.morph-close span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.morph-close span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.morph-overlay.active .morph-close {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 768px) {
  .morph-close {
    top: 0.75rem;
    right: 1.25rem;
  }
}

.morph-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 15, 0.98);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo);
}

.morph-overlay.active .morph-backdrop {
  opacity: 1;
}

.morph-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: all 0.7s var(--ease-out-expo) 0.15s;
}

.morph-overlay.active .morph-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.morph-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
}

.morph-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.5s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(16px);
  position: relative;
}

.morph-overlay.active .morph-item {
  opacity: 1;
  transform: translateY(0);
}

.morph-overlay.active .morph-item:nth-child(1) { transition-delay: 0.25s; }
.morph-overlay.active .morph-item:nth-child(2) { transition-delay: 0.3s; }
.morph-overlay.active .morph-item:nth-child(3) { transition-delay: 0.35s; }
.morph-overlay.active .morph-item:nth-child(4) { transition-delay: 0.4s; }
.morph-overlay.active .morph-item:nth-child(5) { transition-delay: 0.45s; }

.morph-item:last-child {
  border-bottom: none;
}

.morph-num {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.15);
  min-width: 2rem;
  transition: color 0.4s ease;
}

.morph-item span:not(.morph-num) {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-snow);
  transition: all 0.3s ease;
}

.morph-item i {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.morph-item:hover {
  padding-left: 0.5rem;
}

.morph-item:hover .morph-num {
  color: var(--color-moss);
}

.morph-item:hover i {
  color: var(--color-moss);
  transform: translateX(6px);
}



/* ============================================
   MODAL DE GALERÍA
   ============================================ */

#galleryModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#galleryModal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

#galleryModal.visible {
  opacity: 1;
}

#galleryBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 10, 0.94);
  backdrop-filter: blur(20px);
  cursor: pointer;
}

#closeGalleryBtn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

#closeGalleryBtn:hover {
  border-color: white;
  color: white;
  transform: rotate(90deg);
}

#prevGalleryBtn,
#nextGalleryBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  padding: 1rem;
  transition: all 0.3s ease;
}

#prevGalleryBtn:hover,
#nextGalleryBtn:hover {
  color: white;
  transform: translateY(-50%) scale(1.15);
}

#prevGalleryBtn { left: 1.5rem; }
#nextGalleryBtn { right: 1.5rem; }

#galleryInfo {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: white;
  z-index: 10;
}

#galleryInfo h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

#galleryInfo p {
  font-size: 0.8rem;
  opacity: 0.4;
  letter-spacing: 0.1em;
}

#galleryImageWrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
  width: 100%;
  height: 100%;
  z-index: 5;
}

#galleryImage {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

#galleryImage.loaded {
  opacity: 1;
}

#galleryLoader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.5rem;
}

body.gallery-active {
  overflow: hidden;
}

/* ============================================
   FAUNA GRID — Especímenes del Bosque
   ============================================ */

.fauna-section {
  background: var(--color-forest);
  padding: 6rem 0 4rem;
  position: relative;
}

.fauna-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 160, 91, 0.3), transparent);
}

.fauna-intro {
  max-width: min(1280px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
  text-align: center;
  margin-bottom: 4rem;
}

.fauna-intro p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Grid principal --- */
.fauna-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  max-width: 100%;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.25);
  grid-auto-flow: dense;
}

/* --- Cada celda --- */
.fauna-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1a2e1f;
  cursor: pointer;
}

.fauna-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.fauna-item picture {
  width: 100%;
  height: 100%;
  display: block;
}

.fauna-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1),
              filter 200ms ease;
}

/* --- Hover states --- */
@media (hover: hover) and (pointer: fine) {
  .fauna-item:hover img {
    transform: scale(1.06);
    filter: brightness(1.08) saturate(1.05);
  }

  .fauna-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 45%);
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
    z-index: 1;
  }

  .fauna-item:hover::after {
    opacity: 1;
  }
}

/* --- Focus-visible for keyboard nav --- */
.fauna-item a:focus-visible {
  outline: 2px solid var(--color-moss);
  outline-offset: -4px;
}

/* --- Loading state placeholder & fallback text --- */
.fauna-item img {
  background: #1a2e1f;
  color: transparent;
}

/* ============================================
   GALLERY LABEL (reusable)
   ============================================ */

.gallery-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-moss);
  margin-bottom: 1rem;
  display: block;
}
