/* =========================================================
   Oh! Mar — layout: loader, cabecera, menú móvil, hero,
   marquesina, pie, barra móvil, lightbox y modal
   ========================================================= */

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--navy); color: #fff; text-align: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__kicker { display: block; font-size: .7rem; letter-spacing: .4em; text-transform: uppercase; opacity: .7; }
.loader__name { display: block; font-family: var(--ff-display); font-weight: 800; font-size: clamp(2.8rem, 9vw, 4.8rem); line-height: 1; }
.loader .dots { margin-top: .8rem; color: var(--sun); gap: 7px; }
.loader .dots i { width: 10px; height: 10px; animation: bob 1s infinite ease-in-out; }
.loader .dots i:nth-child(2) { animation-delay: .15s; transform: none; }
.loader .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: #fff;
  transition: background-color .35s, box-shadow .35s, color .35s, height .35s var(--ease);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.header.is-scrolled {
  --header-h: 68px;
  background: rgba(251, 248, 241, .92); color: var(--navy);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(15, 36, 68, .35);
}

.brand { display: grid; justify-items: center; line-height: 1; text-decoration: none; color: inherit; }
.brand__kicker { font-size: .56rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; margin: 0 0 .22rem .34em; opacity: .85; }
.brand__name { font-family: var(--ff-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.01em; white-space: nowrap; }
.brand .dots { margin-top: .28rem; color: var(--sun); }
.brand .dots i { width: 5px; height: 5px; }
.header.is-scrolled .brand .dots { color: var(--blue); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: .2rem; list-style: none; padding: 0; }
.nav__list a {
  position: relative; display: block; padding: .5rem .8rem; border-radius: 999px;
  font-weight: 600; font-size: .94rem; text-decoration: none; white-space: nowrap;
}
.nav__list a::after {
  content: ""; position: absolute; left: 50%; bottom: .1rem; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sun); transform: translateX(-50%) scale(0); transition: transform .25s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-current::after { transform: translateX(-50%) scale(1); }
.header.is-scrolled .nav__list a::after { background: var(--blue); }

.header__actions { display: flex; align-items: center; gap: .8rem; }

.lang { display: flex; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px; }
.lang button {
  border: 0; background: transparent; padding: .28rem .55rem; border-radius: 999px; cursor: pointer;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: inherit; transition: background-color .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.header.is-scrolled .lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.burger {
  display: none; width: 46px; height: 46px; padding: 0; border-radius: 50%;
  border: 1.5px solid currentColor; background: transparent; cursor: pointer;
  place-content: center; gap: 6px;
}
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.burger span:last-child { width: 12px; justify-self: end; }

/* ---------- Drawer móvil ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 60; overflow: auto;
  display: flex; flex-direction: column; padding: 1rem 1.25rem 2rem;
  background: var(--navy) radial-gradient(120% 60% at 100% 100%, rgba(46, 99, 201, .45), transparent 60%);
  color: #fff; opacity: 0; transform: translateY(-14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.drawer.is-open { opacity: 1; transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__close {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5);
  background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer;
}
.drawer__close .ico { width: 22px; height: 22px; }
.drawer__nav { display: grid; margin: 2.2rem 0 auto; }
.drawer__nav a {
  display: flex; align-items: baseline; gap: .9rem; padding: .45rem 0; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.drawer__nav span { font-size: .8rem; font-weight: 800; color: var(--sun); }
.drawer__nav b { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
.drawer__foot { display: grid; gap: .8rem; margin-top: 2rem; }
.drawer__foot .lang { justify-self: center; margin-bottom: .4rem; }
.lang--light button { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 3rem) 0 clamp(8rem, 14vw, 11rem);
  background: linear-gradient(180deg, #7DB8EC 0%, #3E7ED0 42%, #1B3F7A 78%, var(--navy-900) 100%);
}
.hero__media { position: absolute; inset: 0; background: transparent; }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1); animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media.is-missing { display: none; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 26, 49, .82) 0%, rgba(10, 26, 49, .5) 48%, rgba(10, 26, 49, .08) 100%),
    linear-gradient(0deg, rgba(10, 26, 49, .55), transparent 45%);
}
.hero__sea { position: absolute; inset: 0; display: none; }
.hero.no-photo .hero__sea { display: block; }
.hero__sun {
  position: absolute; right: 16%; top: 20%; width: clamp(160px, 22vw, 300px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #FFF1C2, #F7C74F 55%, #F2B632 70%);
  box-shadow: 0 0 120px 40px rgba(247, 199, 79, .35);
}
.hero__content { position: relative; z-index: 2; }
.hero__title {
  max-width: 13ch; margin: .2rem 0 1.4rem;
  font-size: clamp(2.9rem, 1.3rem + 6.2vw, 6.4rem); font-weight: 600; line-height: .98;
  font-variation-settings: "opsz" 144; text-wrap: balance;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--sun); }
.hero__lead { max-width: 46ch; margin-bottom: 2.1rem; font-size: clamp(1.05rem, .95rem + .45vw, 1.32rem); opacity: .93; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.6rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; list-style: none; padding: 0; font-size: .95rem; }
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts .ico { color: var(--sun); }
.hero__facts a { text-decoration: none; }
.hero__facts a:hover { text-decoration: underline; }

.status {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.3rem;
  padding: .42rem .95rem .42rem .75rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #A7B3C3; }
.status.is-open .status__dot { background: #3DDC84; animation: pulse 2s infinite; }
.status.is-closed .status__dot { background: #FF8E7D; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); }
}

.stamp {
  position: absolute; z-index: 3; right: clamp(1.5rem, 7vw, 8rem); bottom: clamp(8rem, 20vh, 12rem);
  width: clamp(140px, 13vw, 180px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  background: var(--sun); color: var(--navy-900);
  box-shadow: 0 24px 44px -16px rgba(0, 0, 0, .55);
  transition: transform .45s var(--ease);
}
.stamp:hover { transform: scale(1.06) rotate(-8deg); }
.stamp::after { content: ""; position: absolute; inset: 24%; border: 1.5px dashed rgba(15, 36, 68, .4); border-radius: 50%; }
.stamp__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.stamp__ring text { font-family: var(--ff-body); font-size: 15px; font-weight: 800; letter-spacing: .08em; fill: currentColor; }
.stamp__price { position: relative; font-family: var(--ff-display); font-weight: 800; font-size: clamp(2.3rem, 3.2vw, 3.1rem); line-height: 1; }
.stamp__price small { font-size: .5em; vertical-align: top; margin-left: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__waves { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.hero__waves svg { width: 100%; height: clamp(70px, 10vw, 140px); overflow: visible; }
.wave { transform-box: fill-box; animation: waveMove linear infinite; }
.wave--1 { fill: rgba(22, 50, 92, .35); animation-duration: 22s; }
.wave--2 { fill: rgba(22, 50, 92, .6); animation-duration: 15s; animation-direction: reverse; }
.wave--3 { fill: var(--navy); animation-duration: 11s; }
@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(5.5rem, 9vw, 8rem); transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 999px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Marquesina ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 1rem 0 1.15rem; }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; }
.marquee span:not(.dots) { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.3rem, 1rem + 1.2vw, 2.1rem); white-space: nowrap; }
.marquee .dots { color: var(--sun); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--navy-950); color: rgba(255, 255, 255, .72); padding-top: 3rem; overflow: hidden; }
.footer__wave { position: absolute; left: 0; right: 0; top: 0; line-height: 0; background: var(--cal); }
.footer__wave svg { width: 100%; height: 50px; display: block; }
.footer__wave path { fill: var(--navy-950); }
.footer__big {
  margin: 2rem 0 -.12em; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--ff-display); font-weight: 800; font-size: clamp(4.5rem, 19vw, 16rem); line-height: .9; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .12);
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem; padding: 2rem 0 3rem; }
.footer h4 { font-family: var(--ff-body); font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.brand--footer { justify-items: start; color: #fff; margin-bottom: 1rem; }
.brand--footer .brand__name { font-size: 2.2rem; }
.brand--footer .brand__kicker { margin-left: 0; }
.footer__brand p { max-width: 34ch; }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); }
.socials a:hover { background: var(--sun); color: var(--navy-900); border-color: var(--sun); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem;
  padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.footer .gingham-strip { --g: rgba(46, 99, 201, .6); background-color: #DCE7F7; }

/* ---------- Barra rápida móvil ---------- */
.mobile-bar {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 45;
  display: none; grid-template-columns: 1fr 1.4fr 1fr; gap: .35rem; padding: .4rem;
  background: rgba(15, 36, 68, .96); border-radius: 999px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55);
  transform: translateY(160%); transition: transform .45s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  padding: .45rem; border-radius: 999px; color: #fff; text-decoration: none; font-size: .72rem; font-weight: 700;
}
.mobile-bar a.is-primary { flex-direction: row; gap: .45rem; background: var(--sun); color: var(--navy-900); font-size: .95rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4.5rem 4.5rem 2rem;
  background: rgba(6, 15, 30, .94); opacity: 0; transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: .9rem; max-width: min(1100px, 100%); }
.lightbox__frame { background: transparent; border-radius: 14px; }
.lightbox__frame img { max-height: 78vh; width: auto; max-width: 100%; border-radius: 14px; }
.lightbox__frame.is-missing { width: min(80vw, 720px); aspect-ratio: 4 / 3; }
.lightbox figcaption { color: #fff; font-family: var(--ff-display); font-size: 1.3rem; text-align: center; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn .ico { width: 24px; height: 24px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Modal reserva ---------- */
.modal {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 1.2rem;
  background: rgba(6, 15, 30, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s;
}
.modal.is-open { opacity: 1; }
.modal__card {
  position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto;
  padding: 2.4rem 2rem 2rem; border-radius: var(--radius-lg); background: #fff; text-align: center;
  transform: translateY(24px) scale(.98); transition: transform .4s var(--ease);
}
.modal.is-open .modal__card { transform: none; }
.modal__close { position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.modal__icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--navy-900); }
.modal__icon .ico { width: 34px; height: 34px; stroke-width: 2.6; }
.modal__title { font-size: 2rem; color: var(--navy); margin-bottom: .5rem; }
.modal p { color: var(--muted); }
.summary { list-style: none; padding: 1rem 1.2rem; margin: 1.2rem 0 1.4rem; display: grid; gap: .35rem; text-align: left; font-size: .95rem; background: var(--paper); border-radius: 14px; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; }
.summary span { color: var(--muted); }
.summary b { color: var(--navy); text-align: right; }
.modal__actions { display: grid; gap: .6rem; }
