/* =============================================================
   1. Tokens — Bahía Quieta: neblina marina, alga profunda, marea
   Layout: horizonte ilustrado arriba, secciones a dos columnas que alternan con bandas teñidas
   ============================================================= */
:root {
  --fog: #e6edee;
  --fog-deep: #d3dfe0;
  --paper: #f7fafa;
  --kelp: #18322f;
  --tide: #23676a;
  --tide-soft: #cfe3e2;
  --sand: #d9c39b;
  --dusk: #e9a86b;
  --muted: #4c6461;
  --line: rgba(24, 50, 47, .14);
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  color-scheme: light;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--kelp);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; font-weight: 400; }
:focus-visible { outline: 2px solid var(--tide); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--tide); color: var(--paper); }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--kelp); color: var(--paper); z-index: 99; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tide); }
.muted { color: var(--muted); max-width: 52ch; }
.note { font-size: .82rem; color: var(--muted); }

/* =============================================================
   4. Components
   ============================================================= */
.demo-bar {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; justify-content: center;
  padding: .55rem max(16px, env(safe-area-inset-right, 0px)) .55rem max(16px, env(safe-area-inset-left, 0px));
  background: var(--kelp); color: var(--fog); font-size: .82rem; text-align: center;
}
.demo-bar a { color: var(--sand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out);
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--tide); color: #fff; }
.btn-primary:hover { background: var(--kelp); }
.btn-ghost { border: 1.5px solid var(--kelp); color: var(--kelp); background: transparent; }

.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.01em; }
.nav nav { display: flex; gap: 1.2rem; align-items: center; font-size: .92rem; font-weight: 600; flex-wrap: wrap; }
.nav nav a:not(.nav-cta) { display: none; }
.nav-cta { padding: .5rem 1rem; border-radius: 999px; background: var(--tide); color: #fff; }

/* =============================================================
   5. Sections
   ============================================================= */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f3d9bf 0%, #f6e6d4 34%, var(--fog) 62%); }
.horizon { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; right: -40px; bottom: 30%; width: 130px; aspect-ratio: 1; max-width: 100%;
  border-radius: 50%; background: radial-gradient(circle at 50% 45%, #f6c18e, var(--dusk) 70%);
  opacity: .85;
}
.sea { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, var(--tide-soft), var(--fog-deep)); }
.sea span { position: absolute; left: -10%; right: -10%; height: 2px; background: rgba(255,255,255,.7); border-radius: 2px; animation: drift 9s ease-in-out infinite alternate; }
.sea span:nth-child(1) { top: 18%; }
.sea span:nth-child(2) { top: 42%; animation-duration: 11s; opacity: .6; }
.sea span:nth-child(3) { top: 70%; animation-duration: 13s; opacity: .45; }
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

.hero-inner { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); display: grid; gap: 1.4rem; }
.hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 7.2vw, 5.6rem); max-width: 15ch; letter-spacing: -.015em; }
.hero h1 em { color: var(--tide); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 50ch; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; max-width: 640px; }
.facts div { background: rgba(247, 250, 250, .78); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.facts dd { font-family: var(--display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section.tint { background: var(--fog); }
.section-head { display: grid; gap: .5rem; margin-bottom: 2rem; }
.section h2 { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.01em; margin-block: .4rem .8rem; }

.cabins { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.cabin { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.cabin:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(24, 50, 47, .45); }
.cabin-art { aspect-ratio: 4 / 3; max-width: 100%; display: grid; place-items: end start; padding: .8rem; }
.cabin-art span { font-size: .75rem; font-weight: 700; background: rgba(255,255,255,.75); padding: .25rem .6rem; border-radius: 999px; color: var(--kelp); }
.art-a { background: linear-gradient(160deg, #f0cfa7, #cfe3e2 70%); }
.art-b { background: linear-gradient(160deg, #b9d6d4, #23676a 120%); }
.art-c { background: linear-gradient(160deg, #e2d2b1, #6f9a8d 110%); }
.cabin-body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .45rem; flex: 1; align-content: start; }
.cabin h3 { font-family: var(--display); font-size: 2rem; }
.cap { font-size: .85rem; font-weight: 700; color: var(--tide); }
.price { font-family: var(--display); font-size: 1.7rem; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.price span, .price small { font-family: var(--sans); font-size: .82rem; color: var(--muted); }

.amenities { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.amenities li { padding: .45rem .9rem; border-radius: 999px; background: var(--tide-soft); font-size: .88rem; font-weight: 600; }

.two-col { display: grid; gap: 2rem; align-items: start; }
.two-col > * { min-width: 0; }

.table-wrap { overflow-x: auto; display: grid; gap: .6rem; }
.rates { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
.rates th, .rates td { padding: .95rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.rates thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); background: var(--paper); }
.rates td { font-weight: 700; }
.rates tbody tr:last-child > * { border-bottom: 0; }

.booking { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 1rem; box-shadow: 0 24px 50px -36px rgba(24, 50, 47, .5); }
.row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 48px; padding: .7rem .85rem; border-radius: 10px; border: 1.5px solid var(--fog-deep); background: var(--paper); }
.field input:focus, .field select:focus { outline: none; border-color: var(--tide); }
.summary { padding: .9rem 1rem; border-radius: 10px; background: var(--tide-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.summary strong { font-family: var(--display); font-size: 1.5rem; font-weight: 400; }
.btn.is-off { opacity: .45; cursor: not-allowed; transform: none; }

.faq { display: grid; gap: 1rem; }
.faq div { border-top: 1px solid var(--line); padding-top: 1rem; }
.faq dt { font-weight: 700; margin-bottom: .25rem; }
.faq dd { color: var(--muted); }

.footer { background: var(--kelp); color: var(--fog); padding-block: 2.5rem; }
.footer-inner { display: grid; gap: .4rem; font-size: .9rem; }
.footer a { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }

.demo-bar .back { color: inherit; font-weight: 700; text-decoration: none; padding: .2rem .7rem; border: 1px solid currentColor; border-radius: 999px; margin-right: auto; }

/* =============================================================
   7. Effects
   ============================================================= */
/* Visible por defecto; al entrar en pantalla solo se eleva un poco */
.reveal { transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out); }
.reveal.seen { transform: translateY(-2px); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .sun { right: 8%; top: 18%; bottom: auto; width: clamp(160px, 22vw, 260px); }
  .nav nav a:not(.nav-cta) { display: inline; }
  .cabins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .two-col { grid-template-columns: 5fr 6fr; gap: 4rem; }
}

/* =============================================================
   9. Reduced motion — only the ambient loop
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .sea span { animation: none; }
}
