:root {
  --bg: #f3efe5;
  --bg-2: #e7e0d2;
  --surface: rgba(252, 248, 240, 0.86);
  --surface-strong: #fcf8f0;
  --surface-deep: #163324;
  --ink: #102018;
  --muted: #496155;
  --forest: #1b3022;
  --forest-2: #224131;
  --earth: #a4875d;
  --line: rgba(26, 50, 36, 0.12);
  --shadow: 0 24px 60px rgba(16, 32, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(27, 48, 34, 0.08), transparent 33%),
    radial-gradient(circle at 85% 8%, rgba(164, 135, 93, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #f6f2e9 48%, #efe8dd 100%);
}

body.menu-open {
  overflow: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 14%, rgba(27, 48, 34, 0.16), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(164, 135, 93, 0.16), transparent 28%),
    radial-gradient(circle at 50% 85%, rgba(27, 48, 34, 0.08), transparent 30%);
  z-index: -2;
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 50;
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(15, 31, 21, 0.08);
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(19, 35, 24, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(11, 22, 16, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.5);
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .menu a,
.site-header.is-scrolled .menu-toggle {
  color: #f4f1e8;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu a,
.text-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.menu a {
  position: relative;
  opacity: 0.92;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 180ms ease;
}

.menu a:hover::after,
.menu a:focus-visible::after {
  width: 100%;
}

.btn,
.menu-toggle,
.drawer-close,
.social-link {
  -webkit-tap-highlight-color: transparent;
}
/* Fondo del modal */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro traslúcido */
    backdrop-filter: blur(5px); /* Efecto de desenfoque */
}

/* Caja de contenido */
.modal-content {
    background-color: #f9f9f9;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 80%;
    max-width: 700px;
    color: #333;
    position: relative;
    max-height: 85vh;
    overflow-y: auto; /* Scroll interno si el texto es largo */
}

/* Botón de cerrar */
.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover { color: #000; }

/* Estilos de texto interno */
#modal-body h2 { color: #1a3a3a; margin-bottom: 10px; text-transform: uppercase; }
#modal-body h3 { margin-top: 20px; border-bottom: 1px solid #ddd; padding-bottom: 5px; }
#modal-body ul { list-style: none; padding-left: 10px; }
#modal-body ul li:before { content: "- "; }
.importante-box { background: #fff3cd; padding: 15px; border-radius: 10px; margin-top: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(160deg, #223c2d, #122015);
  color: #fbf7f0;
  box-shadow: 0 18px 36px rgba(15, 29, 20, 0.2);
}

.btn-ghost,
.btn-whatsapp {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #f8f4eb;
  backdrop-filter: blur(12px);
}

.btn-whatsapp {
  background: rgba(27, 48, 34, 0.95);
  border-color: rgba(164, 135, 93, 0.25);
}

.btn-header {
  margin-left: auto;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 16, 12, 0.52);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer__panel {
  width: min(88vw, 340px);
  height: 100%;
  margin-left: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(16, 24, 18, 0.96);
  color: #f5f0e8;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.25);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.menu-mobile {
  display: grid;
  gap: 0.25rem;
}

.menu-mobile a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer__cta {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

main {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.3rem;
  text-align: center;
  overflow: hidden;
  padding: 25rem 1rem 2.4rem;
  border-radius: 0;
  border: 0;
  background:
    /*linear-gradient(180deg, rgba(8, 15, 11, 0.3), rgba(8, 15, 11, 0.56)),*/
    url("fotos/web/ph/1.jpeg") center 35% / cover no-repeat;
  box-shadow: 0 36px 80px rgba(7, 16, 12, 0.26);
  color: #f7f3ea;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 27, 19, 0.18), rgba(14, 27, 19, 0.5));
}

.hero-copy,
.hero-actions,
.hero-meta {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 700px;
}

.kicker {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 800;
  color: rgba(247, 243, 234, 0.86);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  text-wrap: balance;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.44);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1rem;
}

.hero-text {
  margin: 0.9rem auto 0;
  max-width: 60ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: rgba(250, 246, 239, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero-actions .btn {
  padding-inline: 1.4rem;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
}

.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.hero-meta span,
.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.panel {
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  border-radius: 1.8rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: stretch;
}

.panel p {
  color: var(--muted);
  line-height: 1.75;
}

.panel-statements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.panel-statements article,
.location-grid article,
.fishing-grid article,
.cabin-item {
  border: 1px solid rgba(26, 50, 36, 0.08);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 24px rgba(16, 32, 24, 0.06);
}

.panel-statements article {
  padding: 1rem;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--earth);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-head p {
  max-width: 46ch;
  margin: 0;
}

.cabins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cabin-item {
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.cabin-item:hover,
.cabin-item:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(16, 32, 24, 0.14);
}

.cabin-media {
  position: relative;
  overflow: hidden;
}

.cabin-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.cabin-item:hover img,
.cabin-item:focus-within img {
  transform: scale(1.04);
}

.cabin-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fffdf8;
  background: rgba(27, 48, 34, 0.74);
  backdrop-filter: blur(10px);
}

.cabin-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fffdf8;
  background: rgba(16, 24, 18, 0.5);
  backdrop-filter: blur(10px);
}

.cabin-copy {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.cabin-copy p {
  margin: 0;
}

.cabin-cta {
  justify-self: start;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
  border-color: rgba(27, 48, 34, 0.16);
  background: rgba(27, 48, 34, 0.95);
  color: #f6f1e8;
}

.cabin-item:hover .cabin-cta,
.cabin-item:focus-within .cabin-cta {
  opacity: 1;
  transform: translateY(0);
}

.fishing-panel {
  background:
    linear-gradient(180deg, rgba(247, 242, 232, 0.96), rgba(239, 232, 220, 0.96));
}

.fishing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fishing-grid article {
  padding: 1.1rem;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 0.9rem;
  color: var(--forest);
  background: rgba(27, 48, 34, 0.08);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(26, 50, 36, 0.1);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(16, 32, 24, 0.08);
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.service-card .feature-icon {
  margin-bottom: 0.2rem;
}

.service-card h3 {
  margin: 0;
  font-size: 1rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.location-grid article {
  padding: 1rem;
}

.location-grid p {
  margin-bottom: 0;
}

.map-embed-wrap {
  margin-top: 1rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(27, 48, 34, 0.1);
  box-shadow: 0 18px 40px rgba(16, 32, 24, 0.14);
}

.map-embed {
  width: 100%;
  height: min(540px, 72vw);
  border: 0;
  display: block;
}

.footer {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto 1.2rem;
  padding: 1.2rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #112316 0%, #1b3022 55%, #0f1b13 100%);
  color: #f7f1e7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  display: grid;
  gap: 0.35rem;
}

.footer h2,
.footer p {
  margin: 0;
  color: inherit;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.55rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
}

.social-link svg {
  width: 19px;
  height: 19px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(7, 15, 11, 0.84);
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(1120px, 96vw);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 1rem;
  background: #09120e;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .site-header {
    width: calc(100% - 1rem);
    border-radius: 1.2rem;
    top: 0.5rem;
  }

  .menu-desktop,
  .btn-header {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 100svh;
    padding-top: 39rem;
    justify-content: flex-start;
    padding-bottom: 3rem;
    background-position: center center;
  }

  .panel-statements,
  .panel-split,
  .cabins-grid,
  .fishing-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    width: calc(100% - 1rem);
  }

  .footer-actions {
    width: 100%;
  }

  .footer-actions .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 640px) {
  main {
    width: calc(100% - 1rem);
  }

  .hero {
    text-align: left;
    align-items: flex-start;
    padding: 40rem 1rem 2rem;
    justify-content: flex-start;
    
  }

  .hero-copy {
    flex: 0 0 auto;
  }

  .hero-actions {
    margin-top: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --- CARRUSEL DE IMÁGENES --- */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  margin-top: 0.5rem;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  /* 35s es la velocidad. Podés subirlo o bajarlo si lo querés más lento/rápido */
  animation: scroll-infinity 35s linear infinite; 
}

/* Pausar animación al pasar el mouse */
.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-track img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(16, 32, 24, 0.1);
  cursor: pointer;
  user-select: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.carousel-track video {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(16, 32, 24, 0.1);
  cursor: pointer;
  user-select: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
/* Efecto al pasar el mouse por cada foto individual */
.carousel-track img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(16, 32, 24, 0.18);
}

.carousel-track video:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(16, 32, 24, 0.18);
}

.carousel-track img:active {
  transform: scale(0.98);
}

@keyframes scroll-infinity {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.5rem)); } /* -50% para que recorra exactamente un set entero */
}

/* Adaptación para celulares */
@media (max-width: 768px) {
  .carousel-track img {
    width: 220px;
    height: 160px;
  }
}
/* Escudo para que el carrusel no rompa el grid principal */
.carrusel-fix {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Simple cabin slider styles */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.carousel .carousel-track {
  display: flex;
  gap: 0;
  width: 100%;
  animation: none;
  transition: transform 350ms ease;
}
.carousel .slide {
  flex: 0 0 100%;
}
.carousel .slide img { width: 100%; height: 220px; object-fit: cover; display: block; }
.carousel-prev, .carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.42); color: #fff; border: none; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px; display: flex; gap: 6px; }
.carousel-dots .dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(0,0,0,0.35); border: none; }
.carousel-dots .dot.active { background: #fff; }
@media (max-width: 768px) {
  .hero {
    background-position: center -220px;
  }
  .hero {
    background-size: cover;
    background-position: center 20%; /* Ajusta este porcentaje para bajar la imagen y que se vea la cabaña */
}
}