/* Mar y Zielo — landing
   Paleta y tipografía según el Manual de Identidad.
   Si tienen licencia de Canela, basta con cargar la fuente: está primera en la pila. */

:root {
  --verde: #294e45;
  --verde-900: #1b3530;
  --rosa: #d7b5a4;
  --rosa-300: #e8d3c7;
  --arena: #eee4b3;
  --crema: #f7f1e3;
  --oro: #817450;
  --tinta: #1f2a26;
  --tinta-soft: #4c5550;

  --serif: "Canela", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h2 em, h1 em { font-style: italic; color: var(--oro); }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow, .kicker {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--rosa); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  background: var(--rosa); color: var(--verde-900);
  font-family: var(--sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid var(--rosa); border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--crema); border-color: var(--crema); transform: translateY(-2px); }
.btn--small { min-height: 42px; padding: 0 22px; font-size: .7rem; }
.btn--ghost { background: transparent; color: var(--crema); border-color: rgba(247, 241, 227, .45); }
.btn--ghost:hover { background: var(--crema); color: var(--verde-900); }
.btn--ghost-dark { background: transparent; color: var(--verde); border-color: var(--verde); }
.btn--ghost-dark:hover { background: var(--verde); color: var(--crema); border-color: var(--verde); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  color: var(--crema);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.nav.is-scrolled {
  --nav-h: 64px;
  background: rgba(247, 241, 227, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--verde);
  box-shadow: 0 1px 0 rgba(41, 78, 69, .1);
}
.nav__inner {
  height: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 40px;
}
.nav__brand { display: flex; align-items: center; }
.nav__symbol { width: 92px; height: 30px; --dot: var(--rosa); }
.nav__links { display: flex; gap: 38px; margin-left: auto; }
.nav__links a {
  position: relative; font-size: .76rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rosa);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav.is-scrolled .btn--small:hover { background: var(--verde); border-color: var(--verde); color: var(--crema); }

.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; z-index: 60; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.menu-open .nav__toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--verde-900); color: var(--crema);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 48px;
  opacity: 0; transition: opacity .45s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu nav { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.menu nav a { font-family: var(--serif); font-size: clamp(2rem, 9vw, 2.8rem); font-style: italic; }
.menu__firma { width: 170px; height: 34px; color: var(--rosa); }
.menu-open { overflow: hidden; }
.menu-open .nav { color: var(--crema); background: transparent; box-shadow: none; }
.menu-open .nav__cta { visibility: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--verde);
  color: var(--crema);
}
.hero__panel {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 48px) clamp(24px, 6vw, 96px) 72px;
}
.hero__sello { width: clamp(120px, 12vw, 170px); height: clamp(104px, 10.4vw, 147px); color: var(--rosa); margin-bottom: clamp(28px, 4vw, 48px); }
.hero .kicker { color: var(--rosa); }
.hero__title { font-size: clamp(2.5rem, 4.3vw, 4.4rem); margin-bottom: 44px; }
.hero__title span { white-space: nowrap; }
.hero__title em { color: var(--rosa); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  animation: heroZoom 14s var(--ease) both;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 53, 48, .55) 0%, transparent 22%),
    linear-gradient(90deg, rgba(41, 78, 69, .35), transparent 30%);
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(247, 241, 227, .6); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: var(--crema); animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Cinta ---------- */
.ribbon { background: var(--rosa); color: var(--verde-900); overflow: hidden; padding: 18px 0; }
.ribbon__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.ribbon span { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.6rem); white-space: nowrap; }
.ribbon i { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Quiénes somos ---------- */
.about { position: relative; padding: clamp(88px, 12vw, 160px) 0; overflow: hidden; }
.about__palma {
  position: absolute; right: -60px; top: 40px; width: 320px; height: 364px;
  color: var(--oro); opacity: .12; transform: rotate(18deg); pointer-events: none;
}
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__media { position: relative; padding: 0 12% 18% 0; }
.about__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__img--main { box-shadow: 0 30px 60px -30px rgba(31, 42, 38, .45); }
.about__img--small {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border: 10px solid var(--crema); box-shadow: 0 20px 40px -20px rgba(31, 42, 38, .5);
}
.about__text h2 { margin-bottom: 30px; }
.lead { font-family: var(--serif); font-size: clamp(1.3rem, 1.6vw, 1.55rem); line-height: 1.45; color: var(--verde); }
.about__text > p:not(.lead):not(.eyebrow) { color: var(--tinta-soft); }
.pillars { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillars li { border-top: 1px solid rgba(129, 116, 80, .45); padding-top: 18px; }
.pillars h3 {
  font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--verde); margin-bottom: 10px;
}
.pillars p { font-size: .92rem; line-height: 1.6; color: var(--tinta-soft); margin: 0; }

/* ---------- Galería ---------- */
.gallery { padding: 0 0 clamp(88px, 11vw, 140px); }
.gallery__head { margin-bottom: 44px; }
.gallery__rail {
  display: flex; gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 4px;
  scrollbar-width: none;
}
.gallery__rail::-webkit-scrollbar { display: none; }
.gallery__rail figure {
  flex: 0 0 clamp(230px, 24vw, 340px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  scroll-snap-align: start; background: var(--arena);
}
.gallery__rail figure:nth-child(even) { margin-top: 48px; }
.gallery__rail img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__rail figure:hover img { transform: scale(1.06); }
.gallery__controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.round {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--verde); color: var(--verde);
  font-size: 1.1rem; transition: background .3s var(--ease), color .3s var(--ease);
}
.round:hover { background: var(--verde); color: var(--crema); }

/* ---------- Espacios ---------- */
.spaces { position: relative; background: var(--verde); color: var(--crema); padding: clamp(88px, 12vw, 160px) 0; overflow: hidden; }
.spaces__montanas {
  position: absolute; left: -40px; bottom: -30px; width: 360px; height: 505px;
  color: var(--rosa); opacity: .1; pointer-events: none;
}
.spaces__head { max-width: 640px; margin-bottom: clamp(48px, 6vw, 80px); }
.spaces__head h2 { margin-bottom: 24px; }
.spaces__head h2 em { color: var(--rosa); }
.spaces__head > p:last-child { color: rgba(247, 241, 227, .75); }
.spaces__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.space:nth-child(even) { margin-top: 64px; }
.space figure { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); }
.space img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 1.2s var(--ease); filter: saturate(.9); }
.space:hover img { transform: scale(1.06); filter: saturate(1.05); }
.space__body { padding-top: 22px; }
.space__num { font-size: .72rem; letter-spacing: .3em; color: var(--rosa); }
.space h3 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); margin: 6px 0 10px; }
.space p { font-size: .94rem; line-height: 1.6; color: rgba(247, 241, 227, .72); margin: 0; }

/* ---------- Reservas ---------- */
.booking {
  position: relative; min-height: 92vh; display: grid; place-items: center;
  padding: clamp(80px, 10vw, 140px) var(--gutter); overflow: hidden; background: var(--verde-900);
}
.booking__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; filter: brightness(.72); }
.booking__card {
  position: relative; max-width: 560px; width: 100%;
  background: var(--crema); padding: clamp(40px, 5vw, 64px) clamp(28px, 5vw, 60px);
  text-align: center; border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.booking__card::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(129, 116, 80, .45); pointer-events: none;
}
.booking__symbol { width: 96px; height: 31px; color: var(--verde); --dot: var(--rosa); margin: 0 auto 20px; display: block; }
.booking .eyebrow { justify-content: center; }
.booking .eyebrow::before { display: none; }
.booking h2 { margin-bottom: 20px; }
.booking__card > p:not(.eyebrow) { color: var(--tinta-soft); }
.booking__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.booking .btn:not(.btn--ghost-dark):hover { background: var(--verde); border-color: var(--verde); color: var(--crema); }

/* ---------- Contacto ---------- */
.contact { padding: clamp(88px, 12vw, 160px) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 100px); align-items: stretch; }
.contact__info h2 { margin-bottom: 44px; }
.contact__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.contact__list dt {
  font-size: .7rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--oro); margin-bottom: 8px;
}
.contact__list dd { margin: 0; color: var(--verde); line-height: 1.6; }
.contact__list dd a { background: linear-gradient(var(--rosa), var(--rosa)) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.contact__list dd a:hover { background-size: 100% 1px; }
.social { display: flex; gap: 12px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(41, 78, 69, .35); background: none !important;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.social a:hover { background-color: var(--verde) !important; border-color: var(--verde); color: var(--crema); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.social svg .solid { fill: currentColor; stroke: none; }
.social a[aria-label="Facebook"] svg { fill: currentColor; stroke: none; }
.contact__map { min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--arena); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.35) sepia(.18); }

/* ---------- Footer ---------- */
.footer { background: var(--verde-900); color: var(--crema); padding: 80px 0 36px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; }
.footer__firma { width: min(300px, 70vw); height: 60px; color: var(--rosa); }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: rgba(247, 241, 227, .8); margin: 20px 0 36px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; }
.footer__links a { opacity: .8; transition: opacity .3s; }
.footer__links a:hover { opacity: 1; color: var(--rosa); }
.footer__sol { width: 110px; height: 39px; color: var(--rosa); opacity: .55; margin: 56px 0 22px; }
.footer__copy { font-size: .78rem; opacity: .55; margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rosa); color: var(--verde-900);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: var(--crema); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.spaces__grid .reveal:nth-child(2) { transition-delay: .1s; }
.spaces__grid .reveal:nth-child(3) { transition-delay: .2s; }
.spaces__grid .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .pillars { grid-template-columns: 1fr; gap: 18px; }
  .pillars li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; }
  .pillars h3 { margin: 0; }
}

@media (max-width: 1080px) {
  .nav__links { gap: 26px; }
  .spaces__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero__media { position: absolute; inset: 0; }
  .hero__media::after { background: linear-gradient(180deg, rgba(27, 53, 48, .55) 0%, rgba(27, 53, 48, .72) 55%, rgba(27, 53, 48, .92) 100%); }
  .hero__panel { justify-content: flex-end; padding-bottom: 104px; }

  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .spaces__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .space:nth-child(even) { margin-top: 36px; }
  .space p { font-size: .86rem; }
  .gallery__rail figure { flex-basis: 72vw; }
  .gallery__rail figure:nth-child(even) { margin-top: 28px; }
  .contact__list { grid-template-columns: 1fr; gap: 26px; }
  .booking__actions .btn { flex: 1 1 100%; }
  .about__palma { width: 200px; height: 228px; right: -70px; }
}

@media (max-width: 400px) {
  .spaces__grid { grid-template-columns: 1fr; }
  .space:nth-child(even) { margin-top: 0; }
}

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