/* 4201 Salinas — sitio público. Caribe: turquesa profundo + terracota + arena. */

/* ---------- Fuentes auto-hospedadas (CSP self) ---------- */
@font-face { font-family: 'Playfair Display'; src: url('/fonts/PlayfairDisplay-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/PlayfairDisplay-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/PlayfairDisplay-600-italic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --teal: #0f6e7e;
  --teal-deep: #0a4e5a;
  --teal-ink: #12333d;
  --terra: #c47b3f;
  --terra-soft: #ffd9a8;
  --sand: #fdfcf9;
  --sand-warm: #f4efe7;
  --ink: #1a2a33;
  --muted: #5a6b73;
  --line: #e8e0d2;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--sand); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -.01em; }
h1 em { font-style: italic; color: var(--terra-soft); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--teal-ink); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.narrow { max-width: 720px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 600; color: var(--terra); margin: 0 0 .8em; }
.eyebrow--light { color: var(--terra-soft); }

/* ---------- Botones ---------- */
.btn { display: inline-block; padding: .9rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; font-family: var(--sans); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 24px rgba(15, 110, 126, .35); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--teal-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.btn--block { width: 100%; }
.btn--nav { padding: .55rem 1.2rem; font-size: .88rem; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .25s ease, box-shadow .25s ease; }
.nav.scrolled { background: rgba(253, 252, 249, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav.scrolled .nav__links a, .nav.scrolled .brand__name { color: var(--ink); }
.nav.scrolled .sel { color: var(--ink); border-color: rgba(0,0,0,.2); }
.nav__inner { display: flex; align-items: center; gap: 1.4rem; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand__mark { background: var(--terra); color: #fff; padding: .3rem .55rem; border-radius: 8px; font-family: var(--serif); font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: #fff; transition: color .25s ease; }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__links a { font-size: .92rem; color: rgba(255,255,255,.92); transition: color .15s ease; }
.nav__links a:hover { color: var(--terra-soft); }
.nav__tools { display: flex; align-items: center; gap: .5rem; }
.sel { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; padding: .35rem .4rem; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: color .25s ease, border-color .25s ease; }
.sel option { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #fff; overflow: hidden; padding: 7rem 0 5rem; }
.hero__media { position: absolute; inset: -12% 0; background: linear-gradient(160deg, #0d5f6e 0%, #0a4e5a 45%, #143543 100%); background-size: cover; background-position: center; will-change: transform; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(165deg, rgba(10, 62, 74, .72) 10%, rgba(18, 40, 56, .55) 55%, rgba(12, 28, 38, .78) 100%); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__grain { position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__content { position: relative; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.lead { font-size: 1.12rem; color: rgba(255,255,255,.9); max-width: 560px; margin-bottom: 2.2rem; }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; }

.booking { background: #fff; color: var(--ink); padding: 1.15rem; border-radius: 18px; display: grid; grid-template-columns: 1fr 1fr .8fr auto; gap: .9rem; align-items: end; box-shadow: 0 24px 70px rgba(0, 20, 30, .35); max-width: 780px; }
.booking__field { display: flex; flex-direction: column; }
.booking__field label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.booking input, .booking select { border: 1px solid #d8dde0; padding: .68rem .75rem; border-radius: 10px; font: inherit; font-size: .93rem; background: #fff; color: var(--ink); }
.booking input:focus, .booking select:focus { outline: 2px solid var(--teal); border-color: transparent; }
.booking__result { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: .9rem; }
.booking__result .qline { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.booking__result .qtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; color: var(--teal-deep); margin-top: .4rem; }
.booking__result .qerr { color: #b3402e; font-size: .92rem; margin: 0; }
.booking__result .btn { margin-top: .9rem; }

.hero__badges { list-style: none; padding: 0; margin: 1.9rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__badges li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: .42rem .95rem; border-radius: 999px; font-size: .84rem; backdrop-filter: blur(5px); }

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--sand-warm); }
.section__head { text-align: center; max-width: 740px; margin: 0 auto 3.2rem; }
.section__sub { color: var(--muted); font-size: 1.04rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.feature { background: #fff; padding: 1.9rem; border-radius: 16px; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(15, 110, 126, .1); }
.ficon { width: 38px; height: 38px; stroke: var(--terra); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .9rem; }
.feature h3 { color: var(--teal); }
.feature p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- Trailer ---------- */
.trailer { background: radial-gradient(120% 130% at 50% -10%, #12414d 0%, #0c2a33 55%, #081c23 100%); color: #fff; padding: 5.5rem 0 6rem; text-align: center; }
.trailer h2 { color: #fff; margin-bottom: 2.4rem; }
.trailer__poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; overflow: hidden; cursor: pointer; background: linear-gradient(140deg, #0f5462, #143543); box-shadow: 0 30px 90px rgba(0, 10, 15, .55); padding: 0; }
.trailer__poster img { width: 100%; height: 100%; object-fit: cover; }
.playring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.6); display: grid; place-items: center; color: #fff; backdrop-filter: blur(6px); transition: transform .25s ease, background .25s ease; }
.playring::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.playring svg { width: 34px; height: 34px; margin-left: 4px; }
.trailer__poster:hover .playring { transform: translate(-50%, -50%) scale(1.08); background: rgba(196, 123, 63, .85); }

/* ---------- Modales ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.modal::backdrop { background: rgba(5, 15, 20, .88); }
.modal video { width: 100%; border-radius: 14px; display: block; background: #000; }
.modal__close { position: fixed; top: 18px; right: 22px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); width: 42px; height: 42px; border-radius: 50%; font-size: 1rem; cursor: pointer; z-index: 5; }
.modal--light figure { margin: 0; text-align: center; }
.modal--light img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; }
.modal--light figcaption { color: rgba(255,255,255,.85); padding: .8rem 0 0; font-size: .95rem; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 5; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

/* ---------- Galería ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.8rem; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: .42rem 1rem; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .18s ease; }
.chip.on, .chip:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 210px; gap: 12px; grid-auto-flow: dense; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 1.6rem .9rem .7rem; color: #fff; font-size: .83rem; font-weight: 600; background: linear-gradient(transparent, rgba(8, 25, 32, .75)); }

/* ---------- Zona ---------- */
.zona { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.2rem; align-items: center; }
.zona__list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .55rem; }
.zona__list li { padding: .7rem 1rem; background: var(--sand-warm); border-left: 3px solid var(--terra); border-radius: 8px; font-size: .95rem; }
.zona__list strong { color: var(--teal); margin-right: .7rem; font-variant-numeric: tabular-nums; }
.zona__map { height: 400px; border-radius: 20px; position: relative; background: radial-gradient(circle at 62% 38%, rgba(196, 123, 63, .35), transparent 52%), radial-gradient(circle at 25% 75%, rgba(255,255,255,.15), transparent 40%), linear-gradient(140deg, #8fc3cb, var(--teal)); box-shadow: 0 24px 60px rgba(15, 110, 126, .28); }
.zona__map span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.review { background: #fff; padding: 1.9rem; border-radius: 16px; border: 1px solid var(--line); }
.review__stars { color: #e0a449; letter-spacing: .15em; margin-bottom: .8rem; }
.review p { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--teal-ink); }
.review footer { color: var(--muted); font-size: .88rem; }

/* ---------- Formulario de reserva ---------- */
.booking-section { background: linear-gradient(var(--sand-warm), var(--sand)); }
.card.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem; box-shadow: 0 18px 50px rgba(15, 110, 126, .08); display: grid; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.form input, .form select { border: 1px solid #d8dde0; padding: .7rem .8rem; border-radius: 10px; font: inherit; font-size: .95rem; text-transform: none; letter-spacing: normal; color: var(--ink); }
.form input:focus, .form select:focus { outline: 2px solid var(--teal); border-color: transparent; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.consent { flex-direction: row !important; align-items: flex-start; gap: .6rem !important; text-transform: none !important; letter-spacing: normal !important; font-weight: 400 !important; font-size: .88rem !important; color: var(--ink) !important; }
.consent input { margin-top: .2rem; }
.consent a { color: var(--teal); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; }
.form__note { font-size: .84rem; color: var(--muted); margin: 0; text-align: center; }
.form__summary { background: var(--sand-warm); border-radius: 10px; padding: .9rem 1.1rem; font-size: .95rem; }
.form__result { border-radius: 12px; padding: 1.2rem 1.4rem; font-size: .98rem; }
.form__result.ok { background: #e2f3e9; color: #205a3c; }
.form__result.bad { background: #fbe5e1; color: #8f3325; }
.form__result strong { font-size: 1.2rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.3rem; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--teal-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--terra); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(140deg, var(--teal) 0%, var(--teal-ink) 100%); color: #fff; padding: 5.5rem 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.footer { background: #12262e; color: rgba(255,255,255,.72); padding: 3.4rem 0 1.2rem; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.4rem; margin-bottom: 2.2rem; }
.brand--footer .brand__name { color: #fff; }
.footer__addr { font-size: .9rem; margin-top: .9rem; line-height: 1.7; }
.footer__rnt { font-size: .85rem; color: rgba(255,255,255,.55); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer__cols h4 { color: #fff; font-size: .92rem; margin: 0 0 .7rem; }
.footer__cols p { font-size: .9rem; margin: .25rem 0; }
.footer__cols a:hover { color: var(--terra-soft); }
#footer-docs a { display: block; font-size: .9rem; margin: .25rem 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.3rem; text-align: center; font-size: .84rem; color: rgba(255,255,255,.45); }

/* ---------- Reveals (IntersectionObserver) ----------
   Solo se ocultan cuando JS está activo (html.js) — si JS falla, todo visible. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .booking { grid-template-columns: 1fr 1fr; }
  .booking .btn--block { grid-column: span 2; }
  .zona { grid-template-columns: 1fr; }
  .zona__map { height: 280px; }
  .footer__inner { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 170px; }
  .gallery figure.wide { grid-column: span 1; }
}
@media (max-width: 540px) {
  .booking { grid-template-columns: 1fr; padding: 1rem; }
  .booking .btn--block { grid-column: span 1; }
  .grid2 { grid-template-columns: 1fr; }
  .section { padding: 3.8rem 0; }
  .hero { padding-top: 6rem; }
  .playring { width: 72px; height: 72px; }
}
