/* =========================================================
   Susurros del Mar — estilos
   Paleta: arena del médano + madera del portón
   ========================================================= */

/* Fuentes alojadas en el propio sitio (sin depender de Google Fonts) */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/figtree-var.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-italic.woff2") format("woff2"); }

:root {
  /* Propuesta C · Médano y madera: arena del médano + madera del portón */
  --bg: #f7f1ea;
  --surface: #fffaf4;
  --alt: #efe3d6;
  --alt-ink: #2b211c;
  --ink: #2b211c;
  --muted: #6c5d53;
  --line: #e4d6c7;
  --accent: #9e4c34;
  --accent-ink: #ffffff;
  --header-solid: rgba(232, 218, 201, .95);
  --header-ink: #2b211c;
  --logo-filter: brightness(0) saturate(100%) invert(12%) sepia(14%) saturate(1200%) hue-rotate(340deg);
  --f-display: "DM Serif Display", Georgia, serif;
  --f-body: "Figtree", system-ui, sans-serif;
  --f-quote: "Fraunces", Georgia, serif;
  --radius: 14px;
  --radius-lg: 22px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section--alt { background: var(--alt); color: var(--alt-ink); }
.section--alt .muted { color: color-mix(in srgb, var(--alt-ink) 70%, transparent); }

.kicker { font-size: 1rem; font-weight: 500; color: var(--accent); margin: 0 0 12px; }
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 24px;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 60ch; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background-color .25s, color .25s, border-color .25s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.link-arrow { display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  color: #fff;
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.header__logo img { height: 46px; width: auto; transition: filter .35s; }
.header.is-solid { background: var(--header-solid); color: var(--header-ink); backdrop-filter: blur(10px); box-shadow: 0 1px 0 color-mix(in srgb, var(--header-ink) 16%, transparent), 0 10px 24px -18px rgba(43, 33, 28, .5); }
.header.is-solid .header__logo img { filter: var(--logo-filter); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: .93rem; font-weight: 500; opacity: .92; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { padding: 11px 18px; }
.header:not(.is-solid) .nav .btn--accent { background: #fff; color: #1b2a2e; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--bg); color: var(--ink);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav a:not(.btn) { font-family: var(--f-display); font-size: 2rem; }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav-close { position: absolute; top: 18px; right: 18px; }
}
@media (min-width: 961px) { .nav-close { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-out both; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,26,.55) 0%, rgba(10,22,26,0) 26%),
    linear-gradient(20deg, rgba(10,22,26,.82) 0%, rgba(10,22,26,.35) 45%, rgba(10,22,26,0) 70%);
}
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__content { position: relative; width: 100%; padding-bottom: clamp(48px, 9vh, 96px); padding-top: 120px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 { font-family: var(--f-body); font-size: clamp(1rem, 1.3vw, 1.15rem); font-weight: 500; margin: 0 0 14px; opacity: .95; }
.rotator { position: relative; display: grid; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: 1; letter-spacing: -.015em; margin: 0 0 26px; min-height: 2.05em; align-items: end; }
.rotator span { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.rotator span.is-active { opacity: 1; transform: none; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 32px; padding: 0; list-style: none; font-size: .95rem; opacity: .92; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 18px; height: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn--ghost { color: #fff; }

/* Novedades / tarifas */
.news {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 30px 60px -30px rgba(10,22,26,.55);
  max-width: 400px; justify-self: end;
}
.news__tag { display: block; font-size: .95rem; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.news h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin: 0 0 6px; }
.news .news__price { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; margin: 14px 0 10px; color: var(--ink); }
.news__price small { font-family: var(--f-body); font-size: .85rem; color: var(--muted); }
.news p { margin: 0; font-size: .92rem; color: var(--muted); }
.news .btn { margin-top: 18px; width: 100%; justify-content: center; }
.news .news__extra { margin-top: 14px; font-size: .88rem; text-align: center; }

@media (max-width: 860px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(10,22,26,.55) 0%, rgba(10,22,26,.62) 40%, rgba(10,22,26,.8) 100%); }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .news { justify-self: stretch; max-width: none; }
}

/* ---------- Frase ---------- */
/* La foto aérea se funde en un cielo del mismo celeste; la frase va arriba a la derecha */
.frase { position: relative; overflow: hidden; color: var(--ink); background: linear-gradient(180deg, #bfe3e7 0%, #c6e5e6 100%); }
.frase__inner { position: relative; z-index: 1; display: flex; justify-content: flex-end; padding-top: clamp(56px, 7vw, 104px); }
.frase__text { margin: 0; max-width: min(640px, 52%); }
.frase__text p { font-family: var(--f-quote); font-style: italic; font-weight: 400; font-variation-settings: "opsz" 96; font-size: clamp(1.55rem, 2.25vw, 2.35rem); line-height: 1.24; letter-spacing: -.01em; margin: 0; }
.frase__text p em { font-style: inherit; color: var(--accent); }
.quote__mark { display: block; width: 56px; height: 1px; background: var(--accent); margin-bottom: 24px; }
.frase__bg {
  display: block; width: 100%; height: auto; margin-top: clamp(-200px, -11vw, -64px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
}
.frase__credit { position: absolute; right: 20px; bottom: 14px; margin: 0; font-size: .8rem; color: #fff; text-shadow: 0 1px 6px rgba(10,22,26,.6); }

@media (max-width: 860px) {
  .frase__text { max-width: none; }
  .frase__bg { aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% center; margin-top: -40px; }
  .frase__credit { left: 16px; right: auto; }
}

/* ---------- Encabezado de sección ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .display { margin: 0; }
.sec-head p { margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Galería ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; margin: 0 0 14px; cursor: zoom-in; break-inside: avoid; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; transition: transform .8s cubic-bezier(.16,1,.3,1), filter .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .is-hidden { display: none; }
.gallery-more { margin-top: 28px; display: flex; justify-content: center; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
.lightbox::backdrop { background: rgba(8,16,19,.92); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 16px; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; border-radius: 2px; }
.lightbox__btn { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.2); }
.lightbox__btn svg { width: 22px; height: 22px; }
.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; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .85rem; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); }
.services__intro p { margin: 0 0 18px; }
.services__intro .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.services__intro .facts strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--accent); }
.services__intro .facts span { font-size: .9rem; }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.amenities li { padding: 26px 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.amenities svg { width: 28px; height: 28px; color: var(--accent); stroke-width: 1.5; }
.amenities h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; margin: 0 0 6px; line-height: 1.2; }
.amenities p { margin: 0; font-size: .95rem; }
.amenities .amenity--wide { grid-column: 1 / -1; }
.amenities .amenity--wide p { max-width: 72ch; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .amenities { grid-template-columns: 1fr; } }

/* ---------- Cabañas ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--muted); position: relative; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); }
.unit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.unit[hidden] { display: none; }
.unit__photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 3fr 2fr; gap: 12px; aspect-ratio: 4 / 3.4; }
.unit__photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius); }
.unit__photos img:first-child { grid-column: 1 / 3; }
.unit h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; margin: 0 0 12px; line-height: 1.1; }
.specs { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.specs li { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.specs svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.unit__desc { margin: 0; font-size: 1.05rem; }
.unit__note { margin: 0 0 18px; padding-left: 14px; border-left: 2px solid var(--accent); font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .unit { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 7; border-radius: var(--radius-lg); overflow: hidden; background: #0d1a1e; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video button { position: absolute; inset: 0; border: 0; background: linear-gradient(0deg, rgba(10,22,26,.6), rgba(10,22,26,.1)); cursor: pointer; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; padding: clamp(20px, 4vw, 48px); text-align: left; }
.video__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.05; max-width: 16ch; }
.video__play { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(8px); display: grid; place-items: center; transition: transform .4s cubic-bezier(.16,1,.3,1); flex: none; }
.video button:hover .video__play { transform: scale(1.08); }
.video__play svg { width: 28px; height: 28px; margin-left: 4px; }
@media (max-width: 700px) { .video { aspect-ratio: 4 / 3; } .video__play { width: 64px; height: 64px; } }

/* ---------- Atracciones ---------- */
.attractions { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.attraction { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 340px; color: #fff; display: flex; align-items: flex-end; text-decoration: none; }
.attraction img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.attraction::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,22,26,.85) 0%, rgba(10,22,26,0) 60%); }
.attraction:hover img { transform: scale(1.05); }
.attraction__body { position: relative; z-index: 1; padding: 26px; }
.attraction h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; margin: 0 0 6px; line-height: 1.1; }
.attraction p { margin: 0; font-size: .93rem; opacity: .88; max-width: 44ch; }
.attraction:nth-child(1) { grid-column: span 7; min-height: 460px; }
.attraction:nth-child(2) { grid-column: span 5; min-height: 460px; }
.attraction:nth-child(3) { grid-column: span 5; }
.attraction:nth-child(4) { grid-column: span 7; }
.attractions-more { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 860px) { .attraction:nth-child(n) { grid-column: 1 / -1; min-height: 300px; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact__list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.contact__list svg { width: 24px; height: 24px; color: var(--accent); margin-top: 3px; }
.contact__list .label { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__card { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); align-self: start; border: 1px solid var(--line); }
.contact__card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: 1.1; margin: 0 0 12px; }
.contact__card .btn { width: 100%; justify-content: center; margin-top: 12px; }
.contact__card hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 500; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Mapa ---------- */
.map { position: relative; height: clamp(320px, 45vw, 520px); background: var(--alt); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 32px; background: var(--ink); color: color-mix(in srgb, var(--bg) 82%, transparent); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer img { height: 52px; width: auto; margin-bottom: 18px; }
.footer h4 { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; color: var(--bg); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bg); text-decoration: underline; }
.footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; opacity: .75; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #1f8a4c; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(10,40,25,.6); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
.wa-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--f-display); font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.25; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: translateY(-3px) rotate(45deg); transition: transform .25s; }
.faq__list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__list details p { margin: 0 0 24px; max-width: 62ch; color: var(--muted); }
.faq__list details a { color: var(--accent); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
