/* ==========================================================================
   Balneario Hanalei · San Bernardo
   ========================================================================== */

:root {
  /* Paleta del logo: marrón de los contornos, mostaza de la cinta, turquesa del mar */
  --ink: #2B1F15;
  --ink-2: #4A3828;
  --muted: #6B5A4A;
  --accent: #E3A936;
  --accent-deep: #C98E1F;
  --accent-soft: #F8E6BE;
  --sea: #1A6A6E;
  --sea-2: #2E9599;
  --sea-soft: #DCEFEC;
  --sand: #F6EFE3;
  --sand-2: #ECE0CC;
  --paper: #FFFCF7;
  --line: rgba(43, 31, 21, .12);
  --danger: #B5372D;
  --whatsapp: #0F7A41;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -20px rgba(43, 31, 21, .38);
  --shadow-sm: 0 6px 16px -8px rgba(43, 31, 21, .32);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: light;
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--sea-2);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Logo ------------------------------------------------------------------- */

/* Sobre la portada el logo cuelga del borde superior en una "etiqueta" crema;
   al bajar, se achica y queda dentro de la barra. */
.brand {
  align-self: flex-start;
  display: block;
  padding: 10px 12px 12px;
  border-radius: 0 0 22px 22px;
  background: var(--paper);
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .55);
  transition: padding .3s, border-radius .3s, box-shadow .3s, background-color .3s;
}
.brand__logo {
  display: block;
  width: auto;
  height: 118px;
  transition: height .3s;
}
.site-header.is-solid .brand,
.site-header.is-open .brand {
  padding: 5px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-header.is-solid .brand__logo,
.site-header.is-open .brand__logo { height: 62px; }

@media (max-width: 900px) {
  .brand { padding: 8px 9px 10px; border-radius: 0 0 18px 18px; }
  .brand__logo { height: 88px; }
  .site-header.is-solid .brand__logo,
  .site-header.is-open .brand__logo { height: 60px; }
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .7em 1.25em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .975rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(201, 142, 31, .9); }
.btn--accent:hover { background: var(--accent-deep); }

.btn--glass {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .24); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #0B6235; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sand); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 700;
  color: var(--sea);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--ink); }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header.is-solid,
.site-header.is-open {
  background: rgba(255, 252, 247, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(43, 31, 21, .5);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; }
.nav__list a {
  position: relative;
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  padding-block: 6px;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }
.site-header.is-solid .nav__list a.is-active { color: var(--sea); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 40px;
    background: var(--paper);
    color: var(--ink);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-header.is-open .nav { visibility: visible; opacity: 1; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
  }
  .nav__list a::after { display: none; }
  .nav__cta { padding: 1em; font-size: 1.05rem; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -2; background: #1d3f63; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 75%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-zoom 16s ease-out both; }
}
@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 24, 44, .55) 0%, rgba(8, 24, 44, 0) 22%),
    linear-gradient(90deg, rgba(8, 24, 44, .05) 0%, rgba(8, 24, 44, .25) 40%, rgba(8, 24, 44, .6) 100%);
}

.hero__inner {
  display: flex;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: clamp(140px, 18vh, 200px);
}

.hero__content { max-width: 600px; }

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero__kicker::before {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor;
}

.hero__title {
  font-size: clamp(3.1rem, 8.2vw, 6.4rem);
  line-height: .95;
  letter-spacing: -.02em;
  font-weight: 600;
  text-shadow: 0 2px 30px rgba(8, 24, 44, .35);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: #F6CF74;
}

.hero__lead {
  margin: 24px 0 32px;
  max-width: 30ch;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  opacity: .95;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__wave {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: clamp(50px, 8vw, 110px);
  fill: var(--sand);
}

@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero__media img { object-position: 72% 80%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(8, 24, 44, .55) 0%, rgba(8, 24, 44, .15) 35%, rgba(8, 24, 44, .35) 60%, rgba(8, 24, 44, .7) 100%);
  }
  .hero__inner { justify-content: flex-start; padding-bottom: 120px; }
}

/* Facts ------------------------------------------------------------------ */

.facts { position: relative; z-index: 2; margin-top: -64px; }

.facts__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
}

.fact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  font-size: .92rem;
  line-height: 1.4;
  color: var(--muted);
}
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 2px;
}
.fact__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sea-soft);
  color: var(--sea);
}
.fact__icon .icon { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .facts__list { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts { margin-top: -40px; }
  .fact { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px; font-size: .86rem; }
  .fact__icon { width: 40px; height: 40px; }
  .fact__icon .icon { width: 20px; height: 20px; }
}

/* Sections --------------------------------------------------------------- */

.section { padding-block: clamp(72px, 10vw, 128px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sea);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}
.eyebrow--light { color: #F2C55C; }

.h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
}

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head__lead {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--muted);
}
.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

/* About ------------------------------------------------------------------ */

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.about__text p:not(.eyebrow):not(.lead) { color: var(--muted); }
.about__text .h2 { margin-bottom: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  font-size: .92rem;
}
.chips li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.about__media { position: relative; padding-bottom: 56px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--main {
  width: 76%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__photo--small {
  position: absolute;
  left: 0; bottom: 0;
  width: 60%;
  aspect-ratio: 2 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 8px solid var(--sand);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.about__badge {
  position: absolute;
  top: 8%;
  left: 4%;
  display: grid;
  place-content: center;
  width: 116px; height: 116px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.25;
  transform: rotate(-10deg);
  box-shadow: var(--shadow);
}
.about__badge strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0;
  line-height: 1;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; width: 100%; margin-inline: auto; }
}

/* Services --------------------------------------------------------------- */

.services { background: var(--paper); }

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

.card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--sand);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.45rem; margin: 20px 0 16px; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--ink);
}
.card__icon .icon { width: 26px; height: 26px; }

.checklist { display: grid; gap: 10px; }
.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: .96rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .1em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sea-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A6A6E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.services__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: .98rem;
}
.services__info .icon { color: var(--sea); width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__info { align-items: flex-start; text-align: left; }
}

/* Tents / Plano ---------------------------------------------------------- */

.tents {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(46, 149, 153, .32), transparent 60%),
    var(--ink);
  color: #fff;
}
.tents .section-head__lead { color: rgba(255, 255, 255, .78); max-width: 56ch; }

.tents__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 32px 64px;
  margin-bottom: 44px;
}

.tents__includes {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}
.tents__includes::before {
  content: "Cada carpa incluye";
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.tents__includes li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.tents__includes .icon {
  width: 26px; height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  stroke-width: 2.6;
}

@media (max-width: 900px) {
  .tents__head { grid-template-columns: 1fr; }
}

.plan {
  padding: clamp(14px, 2.5vw, 28px);
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}

.plan__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  border-radius: 16px;
}

.plan__grid {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  grid-template-rows: 34px 46px 46px 14px 40px 44px repeat(6, 40px) 64px;
  gap: 6px 6px;
  min-width: 780px;
  padding: 8px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(236, 224, 204, 0) 0%, rgba(236, 224, 204, .55) 100%),
    var(--sand);
}

.plan__street {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  place-items: center;
  border-bottom: 2px dashed rgba(43, 31, 21, .2);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan__facility {
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 10px;
  background: var(--sand-2);
  color: var(--ink-2);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}
.plan__facility--bar { background: var(--accent-soft); color: #7A5410; }

.plan__patio {
  grid-row: 6;
  align-self: center;
  display: grid;
  place-items: center;
  height: 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tent {
  appearance: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(43, 31, 21, .16);
  border-top: 5px solid var(--sea-2);
  border-radius: 7px 7px 5px 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.tent:hover {
  border-top-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.tent[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(43, 31, 21, .7);
}
.tent:focus-visible { outline-color: var(--sea); outline-offset: 2px; }

.plan__sea {
  grid-column: 1 / -1;
  grid-row: 13;
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M0 10c10 0 10-6 20-6s10 6 20 6 10-6 20-6 10 6 20 6' fill='none' stroke='%23ffffff' stroke-opacity='.35' stroke-width='2'/%3E%3C/svg%3E") 0 6px / 80px 20px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M0 10c10 0 10-6 20-6s10 6 20 6 10-6 20-6 10 6 20 6' fill='none' stroke='%23ffffff' stroke-opacity='.2' stroke-width='2'/%3E%3C/svg%3E") 40px 30px / 80px 20px repeat-x,
    linear-gradient(180deg, var(--sea-2), var(--sea));
  color: #fff;
}
.plan__sea span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: .04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}

.plan__hint {
  display: none;
  margin: 10px 4px 0;
  font-size: .82rem;
  color: var(--muted);
  text-align: right;
}

.plan__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 20px;
  padding: 16px 8px 4px;
  border-top: 1px solid var(--line);
}

.plan__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
}
.plan__legend li { display: inline-flex; align-items: center; gap: 8px; }

.swatch { display: inline-block; width: 22px; height: 16px; border-radius: 4px; }
.swatch--tent { background: #fff; border: 1px solid rgba(43, 31, 21, .2); border-top: 4px solid var(--sea-2); }
.swatch--selected { background: var(--accent); border: 2px solid var(--ink); }
.swatch--patio { background: var(--ink); border-radius: 999px; }

.plan__selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  min-height: 48px;
}
.plan__selection-empty { color: var(--muted); font-weight: 600; }
.plan__selection-text { line-height: 1.3; }
.plan__selection-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}
.plan__selection-text span { font-size: .9rem; color: var(--muted); }

@media (max-width: 860px) {
  .plan__hint { display: block; }
  .plan__footer { flex-direction: column; align-items: stretch; }
  .plan__selection .btn { flex: 1 1 auto; }
}

/* Gallery ---------------------------------------------------------------- */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 220px);
  grid-auto-flow: dense;
  gap: 12px;
}

.g-item { border-radius: 16px; overflow: hidden; background: var(--sand-2); }
.g-item--big { grid-column: span 2; grid-row: span 2; }
.g-item--wide { grid-column: span 2; }
.g-item--tall { grid-row: span 2; }

.g-item a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.g-item a:focus-visible { outline-offset: -4px; outline-color: #fff; }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .3s;
}
.g-item a:hover img { transform: scale(1.05); }

@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }
  .g-item { border-radius: 12px; }
}

/* Contact ---------------------------------------------------------------- */

.contact { background: var(--paper); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}

.contact__list { display: grid; gap: 18px; margin: 32px 0; }
.contact__list li { display: flex; align-items: center; gap: 16px; line-height: 1.45; color: var(--muted); }
.contact__list strong { color: var(--ink); }
.contact__list a { color: var(--ink); font-weight: 600; text-decoration-color: rgba(43, 31, 21, .3); text-underline-offset: 3px; }
.contact__list a:hover { color: var(--sea); }
.contact__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sea-soft);
  color: var(--sea);
}
.contact__icon .icon { width: 22px; height: 22px; }

.socials { display: flex; gap: 10px; }
.social {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.social:hover { background: var(--sea); border-color: var(--sea); color: #fff; transform: translateY(-2px); }
.social .icon { width: 22px; height: 22px; }

.contact__form {
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 26px;
  background: var(--sand);
}
.contact__form h3 { font-size: 1.6rem; margin-bottom: 6px; }
.form-note { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field label { font-size: .9rem; font-weight: 700; }
.optional { font-weight: 500; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(43, 31, 21, .2);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  appearance: none;
  padding-right: 40px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B1F15' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sea-2);
  box-shadow: 0 0 0 4px rgba(46, 149, 153, .2);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; font-size: .85rem; font-weight: 600; color: var(--danger); }

.map {
  position: relative;
  margin-top: clamp(48px, 6vw, 72px);
  height: clamp(300px, 40vw, 420px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--sand-2);
  box-shadow: var(--shadow);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__btn { position: absolute; left: 20px; bottom: 20px; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--paper);
  color: rgba(255, 252, 247, .8);
  font-size: .96rem;
}
.site-footer__wave { display: block; width: 100%; height: clamp(36px, 5vw, 70px); fill: var(--ink); margin-bottom: -1px; }
.site-footer__body { background: var(--ink); padding: 32px 0 28px; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo {
  display: inline-block;
  padding: 14px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
  transition: transform .3s;
}
.footer-logo:hover { transform: rotate(-2deg) scale(1.02); }
.footer-logo img { display: block; width: auto; height: 160px; }
.site-footer__tagline { margin-top: 18px; max-width: 30ch; }
.site-footer__title {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer ul { display: grid; gap: 6px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .socials { margin-top: 14px; }
.socials--light .social { border-color: rgba(255, 255, 255, .35); color: #fff; }
.socials--light .social:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); text-decoration: none; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 252, 247, .18);
  font-size: .86rem;
}
.site-footer__bottom p { margin: 0; }

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* WhatsApp flotante ------------------------------------------------------ */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(15, 122, 65, .8);
  transition: transform .25s, opacity .25s;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* Lightbox --------------------------------------------------------------- */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(6, 16, 28, .93); }

.lightbox__figure { display: grid; justify-items: center; gap: 14px; padding: 64px 72px; }
.lightbox__figure img {
  max-width: min(100%, 1280px);
  max-height: calc(100dvh - 160px);
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.lightbox__figure figcaption { font-size: .95rem; text-align: center; opacity: .85; }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__count {
  position: absolute;
  top: 28px; left: 24px;
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .1em;
  opacity: .8;
}

@media (max-width: 640px) {
  .lightbox__figure { padding: 72px 12px 96px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; translate: none; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
}

/* Reveal ----------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
