@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600&display=swap");

/* COLORES Y BASE */
:root {
  --cream: #f7f3ea;
  --sand: #e8ddcc;
  --green: #344c3d;
  --brown: #795d46;
  --purple: #462c49;
  --ink: #302a25;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: var(--sand);
}

h1,
h2,
h3,
p {
  margin: 0 0 18px;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
}

h1 {
  font-size: clamp(52px, 6.5vw, 88px);
  letter-spacing: -2px;
}

h2 {
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -1.5px;
}

h3 {
  font-size: 30px;
}

em {
  font-weight: 400;
}

p {
  max-width: 58ch;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #94739f;
  outline-offset: 5px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}

.section {
  padding-block: 58px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
}

.light {
  color: #e9dfce;
}

.fine {
  color: #64594e;
  font-size: 12px;
  line-height: 1.6;
}

.full {
  grid-column: 1 / -1;
}

/* BOTONES */
.button,
.button.cream,
.button.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1.5px solid var(--purple);
  border-radius: 8px;
  background: var(--purple);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.button:hover,
.button.cream:hover,
.button.outline:hover {
  background: #5b3d60;
  color: white;
  box-shadow: 0 4px 12px #462c4920;
  transform: translateY(-2px);
}

.button.small {
  min-height: 42px;
  padding: 9px 16px;
}

/* ACCESIBILIDAD */
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 100;
  padding: 10px;
  background: white;
}

.skip:focus {
  top: 10px;
}

/* ENCABEZADO */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 82px;
  padding-inline: 40px;
  border-bottom: 1px solid #302a2512;
  background: var(--cream);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.brand-mark {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 42px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav > a {
  font-size: 12px;
  text-decoration: none;
}

nav > a:hover {
  text-decoration: underline;
}

nav > .button:hover {
  text-decoration: none;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: transparent;
  color: var(--green);
}

/* PORTADA */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 560px;
  background: var(--green);
  color: white;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgb(16 40 30 / 90%),
    rgb(16 40 30 / 32%)
  );
  content: "";
}

.hero-content {
  padding-block: 65px 110px;
}

.hero-content > p:not(.eyebrow) {
  max-width: 380px;
  margin: 24px 0;
  color: #fffdeb;
  font-size: 15px;
}

.hero .button {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--purple);
}

.hero .button:hover {
  border-color: var(--sand);
  background: var(--sand);
  color: var(--purple);
}

.hero-bottom {
  position: absolute;
  right: 40px;
  bottom: 25px;
  left: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid #ffffff55;
  font-size: 10px;
  letter-spacing: 2px;
  text-decoration: none;
}

/* PRESENTACIÓN */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 55px;
}

.intro > div:nth-child(2) {
  padding-top: 15px;
}

.lead {
  color: var(--green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
}

/* CINCO COMODIDADES EN UNA FILA */
.amenities {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin-top: 18px;
  padding-block: 22px;
  border-top: 1px solid #795d4633;
  border-bottom: 1px solid #795d4633;
}

.amenities article {
  min-width: 0;
}

.amenities article > span {
  color: var(--green);
  font-size: 30px;
}

.amenities h3 {
  margin: 12px 0 6px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.amenities p {
  margin: 0;
  color: #64594e;
  font-size: 12px;
}

/* ÍCONOS */
.amenity-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border: 1px solid #344c3d35;
  border-radius: 50%;
  background: #344c3d08;
  color: var(--green);
}

.amenity-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* TÍTULOS DE SECCIÓN */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 18px;
}

.section-heading > p {
  color: #64594e;
  font-size: 13px;
}

/* GALERÍA VERTICAL */
.gallery-section {
  background: var(--cream);
}

.vertical-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.vertical-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #344c3d25;
  border-radius: 12px;
  background: var(--cream);
}

.vertical-card video,
.vertical-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #203126;
}

.vertical-card video {
  object-fit: contain;
}

.vertical-card img {
  object-fit: cover;
}

.vertical-card figcaption {
  padding: 12px;
  color: var(--green);
  font-size: 12px;
  line-height: 1.5;
}

/* PLAZA, PLAYA Y CAMPING */
.activities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 25px;
}

.activities article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 25px;
  border-left: 1px solid #795d4640;
}

.activities article:first-child {
  padding-left: 0;
  border-left: 0;
}

.number {
  color: var(--brown);
  font-size: 10px;
  letter-spacing: 1.5px;
}

.activities h3 {
  margin-top: 18px;
}

.activities p {
  font-size: 14px;
}

.activities .attraction-photo {
  display: block;
  width: 100%;
  height: 220px;
  margin: auto 0 20px;
  border-radius: 10px;
  object-fit: cover;
}

/* BOTONES DE PASEOS Y CONTACTO */
.activities article > a,
.booking .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: fit-content;
  min-height: 44px;
  padding: 10px 15px;
  border: 1.5px solid var(--green);
  border-radius: 8px;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.activities article > a:hover {
  background: var(--green);
  color: var(--cream);
}

/* UBICACIÓN */
.location {
  background: var(--cream);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 45px;
}

.location p {
  font-size: 14px;
}

.location iframe {
  width: 100%;
  height: 350px;
  border: 1px solid #795d4635;
  border-radius: 12px;
  background: var(--sand);
}

/* PREGUNTAS EN TARJETAS */
.rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 45px;
}

.rules details {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #795d4635;
  border-radius: 12px;
  background: #eee7db;
  box-shadow: 0 3px 10px #302a2508;
}

.rules summary {
  padding: 19px 22px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.rules summary:hover {
  background: var(--sand);
}

.rules details[open] summary {
  border-bottom: 1px solid #795d4625;
}

.rules details p {
  margin: 0;
  padding: 18px 22px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.rules summary:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: -5px;
}

/* CONTACTO VIOLETA */
.booking {
  background: var(--purple);
  color: var(--cream);
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 55px;
}

.booking h2 {
  font-size: clamp(46px, 5vw, 68px);
}

.booking-grid > div > p {
  font-size: 14px;
}

.booking .light,
.booking .eyebrow,
.booking .fine,
.booking form .fine,
.booking label span {
  color: #e9dfce;
}

.booking .text-link {
  margin: 18px 0;
  border-color: var(--cream);
  color: var(--cream);
}

.booking .text-link:hover {
  background: var(--cream);
  color: var(--purple);
}

.booking .button {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--purple);
}

.booking .button:hover {
  border-color: var(--sand);
  background: var(--sand);
  color: var(--purple);
}

/* FORMULARIO */
label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
}

label span {
  color: #64594e;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #795d4660;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.form-row > div {
  min-width: 0;
}

form .button {
  width: 100%;
}

form .fine {
  margin-top: 12px;
}

#form-status {
  margin-top: 12px;
  font-size: 14px;
}

/* PIE DE PÁGINA */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 26px;
  border-top: 1px solid #795d4630;
}

footer p,
footer > a:last-child {
  margin: 0;
  font-size: 11px;
}

/* VISOR DE FOTOS */
dialog {
  width: min(1000px, 95vw);
  max-height: 95svh;
  padding: 45px 25px 15px;
  border: 1px solid #795d4640;
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
}

dialog::backdrop {
  background: #000c;
}

dialog > img {
  max-height: 70svh;
  object-fit: contain;
  background: transparent;
}

#close-photo {
  position: absolute;
  top: 5px;
  right: 10px;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
}

.lightbox-controls p {
  margin: 0;
  font-size: 12px;
}

dialog button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: transparent;
  color: var(--green);
}

dialog button:hover {
  background: var(--green);
  color: var(--cream);
}

/* GALERÍA DESLIZABLE EN TABLET */
@media (max-width: 1000px) {
  .vertical-gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 230px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
  }

  .vertical-card {
    scroll-snap-align: start;
  }
}

/* PANTALLAS MEDIANAS */
@media (max-width: 900px) {
  .header {
    padding-inline: 24px;
  }

  nav {
    gap: 14px;
  }

  .wrap {
    width: calc(100% - 48px);
  }

  .intro,
  .rules,
  .location-grid {
    gap: 30px;
  }

  .booking-grid {
    gap: 35px;
  }

  .amenities {
    grid-template-columns: repeat(5, 170px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 18px;
  }

  .amenities article {
    scroll-snap-align: start;
  }

  .activities article {
    padding: 15px 20px;
  }

  footer {
    flex-wrap: wrap;
  }
}

/* CELULARES */
@media (max-width: 680px) {
  html {
    scroll-padding-top: 84px;
  }

  .header {
    height: 74px;
    padding-inline: 20px;
  }

  .brand {
    font-size: 23px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 20px;
    border-bottom: 1px solid var(--sand);
    background: var(--cream);
  }

  nav.open {
    display: flex;
    flex-direction: column;
  }

  nav > a {
    padding: 8px;
    font-size: 15px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .section {
    padding-block: 38px;
  }

  .hero {
    min-height: 510px;
  }

  .hero-content {
    padding-block: 55px 110px;
  }

  .hero-content > p:not(.eyebrow) {
    max-width: 290px;
  }

  .hero-bottom {
    right: 20px;
    left: 20px;
    font-size: 9px;
  }

  .intro,
  .rules,
  .location-grid,
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro > div:nth-child(2) {
    padding-top: 0;
  }

  .amenities {
    margin-top: 8px;
    padding-top: 20px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 16px;
  }

  .activities {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 18px;
  }

  .activities article,
  .activities article:first-child {
    padding: 24px 0 0;
    border: 0;
    border-top: 1px solid #795d4640;
  }

  .activities h3 {
    margin-top: 15px;
  }

  .activities .attraction-photo {
    height: 240px;
  }

  .location iframe {
    height: 280px;
  }

  .booking h2 {
    font-size: 48px;
  }

  .form-row {
    gap: 10px;
  }

  footer {
    display: block;
  }

  footer p {
    margin-block: 16px;
  }
}

@media (max-width: 480px) {
  .vertical-gallery {
    grid-auto-columns: 75%;
  }
}

/* PREFERENCIAS DE MOVIMIENTO */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* TARJETAS DE ESCAPADAS */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.nearby-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #795d4635;
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 0 5px 18px #302a2508;
}

.nearby-card > img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.nearby-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}

.nearby-tag {
  margin-bottom: 14px;
  color: var(--brown);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
}

.nearby-content h3 {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 34px;
}

.nearby-content > p:not(.nearby-time) {
  color: var(--ink);
  font-size: 14px;
}

.nearby-time {
  margin-top: auto;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 1px solid #344c3d25;
  border-radius: 6px;
  background: #344c3d08;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.nearby-note {
  margin-top: 18px;
}

@media (max-width: 680px) {
  .nearby-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nearby-card > img {
    height: 220px;
  }

  .nearby-content {
    padding: 22px;
  }
}