/* ============================================================
   el porvenir — modern redesign
   Editorial travel-guide layout, warm coastal palette,
   Lenis smooth scroll + GSAP scroll choreography.
   ============================================================ */

:root {
  --paper: #f3ece4;
  --sand: #eadfd2;
  --ink: #253e29;
  --ink-soft: rgba(37, 62, 41, 0.72);
  --coral: #ff5e30;
  --coral-deep: #d14424;
  --lime: #dbff85;
  --night: #10150f;
  --white: #ffffff;
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--coral); color: var(--white); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; }

.wrap { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.45s ease, box-shadow 0.45s ease, backdrop-filter 0.45s ease;
}
.site-header.scrolled {
  background: rgba(243, 236, 228, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(37, 62, 41, 0.12);
}
.site-header.on-dark:not(.scrolled) { color: var(--paper); }

.header-inner {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.55rem; font-weight: 600; letter-spacing: -0.02em;
  margin-right: auto;
}
.logo em { font-style: italic; color: var(--coral); }

.main-nav { display: flex; gap: 26px; }
.main-nav a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase;
  position: relative; padding: 6px 0; opacity: 0.85;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.active { opacity: 1; }

.lang-switch { display: flex; gap: 8px; align-items: center; }
.lang-switch a {
  display: inline-flex; border-radius: 3px; overflow: hidden;
  outline: 2px solid transparent; outline-offset: 2px;
  opacity: 0.55; filter: grayscale(0.4);
  transition: opacity 0.3s, filter 0.3s, outline-color 0.3s;
}
.lang-switch a img { width: 28px; height: auto; display: block; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.current { opacity: 1; filter: none; outline-color: var(--coral); }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 120;
}
.burger span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: currentColor; transition: transform 0.35s, opacity 0.35s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--night);
}
.hero-bg { position: absolute; inset: -12% 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16, 21, 15, 0.42) 0%, rgba(16, 21, 15, 0.18) 45%, rgba(16, 21, 15, 0.55) 100%);
}

.hero-card {
  position: relative; z-index: 2;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px);
  text-align: center;
  max-width: 860px; margin-inline: 24px;
}
.hero-card .lang-switch { justify-content: center; margin-bottom: 30px; }
.hero-card h1 {
  font-size: clamp(3.6rem, 10vw, 7.2rem);
  font-weight: 480; letter-spacing: -0.03em;
  color: var(--paper);
  text-shadow: 0 4px 40px rgba(16, 21, 15, 0.5), 0 1px 6px rgba(16, 21, 15, 0.35);
}
.hero-tag {
  display: block; margin-top: 16px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem); color: rgba(243, 236, 228, 0.94);
  text-shadow: 0 2px 18px rgba(16, 21, 15, 0.55);
}
.hero-tag strong { color: var(--coral); font-weight: 600; }

.btn {
  display: inline-block; margin-top: 34px;
  padding: 15px 38px; border-radius: 999px;
  background: var(--coral); color: var(--white);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(209, 68, 36, 0.55); }

.hero-scroll {
  position: absolute; z-index: 2; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(243, 236, 228, 0.85); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--coral), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- intro ---------- */

.intro { padding: clamp(90px, 12vw, 170px) 0; }
.intro-grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.intro-left { position: sticky; top: calc(var(--header-h) + 40px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--coral-deep); margin-bottom: 22px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--coral); }

.intro h2, .guide h2, .stay-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.intro p { color: var(--ink-soft); margin-top: 22px; max-width: 52ch; }

.link-list { list-style: none; margin-top: 34px; border-top: 1px solid rgba(37, 62, 41, 0.18); }
.link-list li {
  padding: 13px 0; border-bottom: 1px solid rgba(37, 62, 41, 0.18);
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; gap: 12px; align-items: baseline;
}
.link-list li::before { content: "—"; color: var(--coral); }
.link-list li:first-child { color: var(--ink); font-weight: 700; }
.link-list li:first-child::before { content: "→"; }
.link-list li a {
  color: inherit; text-decoration: underline;
  text-decoration-color: rgba(37, 62, 41, 0.35); text-underline-offset: 4px;
  transition: color 0.25s, text-decoration-color 0.25s;
}
.link-list li a:hover { color: var(--coral-deep); text-decoration-color: var(--coral); }

.intro-photos { position: relative; min-height: 640px; }
.intro-photos figure { position: absolute; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(16, 21, 15, 0.45); }
.intro-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }
.intro-photos figure:hover img { transform: scale(1.045); }
.intro-photos .ph-1 { width: 68%; top: 0; right: 4%; aspect-ratio: 4 / 3; z-index: 1; }
.intro-photos .ph-2 { width: 52%; bottom: 0; left: 0; aspect-ratio: 1 / 1; z-index: 2; }
.intro-photos .ph-2 figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--lime); color: var(--ink);
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  padding: 8px 16px;
}

/* ---------- parallax bands ---------- */

.band {
  position: relative;
  min-height: 58vh;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--night);
  text-align: center;
}
.band-bg { position: absolute; inset: -16% 0; z-index: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16, 21, 15, 0.45), rgba(16, 21, 15, 0.25) 50%, rgba(16, 21, 15, 0.5));
}
.band-quote {
  position: relative; z-index: 2;
  width: min(900px, calc(100% - 48px));
  color: var(--paper);
  font-family: var(--serif); font-style: italic; font-weight: 420;
  font-size: clamp(1.6rem, 4.2vw, 3rem); line-height: 1.25; letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(16, 21, 15, 0.5);
}
.band-quote strong { color: var(--lime); font-weight: 520; }

/* ---------- guide ---------- */

.guide { background: var(--sand); padding: clamp(90px, 12vw, 160px) 0; }
.guide-head { max-width: 640px; margin-bottom: clamp(50px, 7vw, 90px); }
.guide-head p { color: var(--ink-soft); margin-top: 18px; }

.guide-row {
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid rgba(37, 62, 41, 0.2);
  align-items: start;
}
.guide-row:last-child { border-bottom: 1px solid rgba(37, 62, 41, 0.2); }
.guide-num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--coral-deep);
}
.guide-num::before { content: "("; } .guide-num::after { content: ")"; }
.guide-row h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.guide-row .g-body p { color: var(--ink-soft); }
.guide-row .g-body p + p { margin-top: 16px; }
.guide-row figure { overflow: hidden; box-shadow: 0 26px 55px -22px rgba(16, 21, 15, 0.4); }
.guide-row figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }
.guide-row figure:hover img { transform: scale(1.05); }

/* ---------- stay (accommodation tabs) ---------- */

.stay { padding: clamp(90px, 12vw, 160px) 0; }
.stay-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.stay-head p { color: var(--ink-soft); max-width: 44ch; }

.stay-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.stay-tab {
  border: 1px solid rgba(37, 62, 41, 0.35); background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 24px; border-radius: 999px; cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.stay-tab:hover { border-color: var(--ink); }
.stay-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.stay-panel { display: none; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.stay-panel.active { display: grid; }
.stay-panel figure { overflow: hidden; box-shadow: 0 30px 60px -25px rgba(16, 21, 15, 0.45); }
.stay-panel figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.stay-panel h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.stay-panel p { color: var(--ink-soft); }
.stay-price {
  display: inline-block; margin-top: 24px; padding: 10px 22px;
  background: var(--lime); color: var(--ink);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
}

/* ---------- gallery (horizontal scroll) ---------- */

.gallery { position: relative; background: var(--night); color: var(--paper); overflow: hidden; }
.gallery-inner { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.gallery-head {
  width: min(1280px, calc(100% - 48px)); margin: 0 auto 36px;
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
}
.gallery-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); color: var(--paper); }
.gallery-head .kicker { color: var(--lime); margin-bottom: 12px; }
.gallery-head .kicker::before { background: var(--lime); }
.gallery-count { font-family: var(--serif); font-style: italic; font-size: 1rem; opacity: 0.7; white-space: nowrap; }

.gallery-track {
  display: flex; gap: clamp(18px, 2.4vw, 34px);
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
  will-change: transform;
}
.g-card {
  position: relative; flex: 0 0 auto;
  width: clamp(280px, 30vw, 430px);
  cursor: zoom-in;
}
.g-card .g-img { overflow: hidden; aspect-ratio: 4 / 3; }
.g-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.4s; }
.g-card:hover img { transform: scale(1.06); }
.g-card .g-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; }
.g-card .g-cap h4 { font-size: 1.12rem; font-weight: 500; color: var(--paper); }
.g-card .g-cap span { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; white-space: nowrap; }
.g-card::after {
  content: "+"; position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--coral); color: var(--white);
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 400;
  opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.3s;
}
.g-card:hover::after { opacity: 1; transform: scale(1); }

/* ---------- contact ---------- */

.contact {
  position: relative;
  color: var(--paper);
  padding: clamp(90px, 12vw, 160px) 0;
  background: var(--night);
  overflow: hidden;
}
.contact-bg { position: absolute; inset: -12% 0; z-index: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(23, 38, 26, 0.86), rgba(23, 38, 26, 0.8));
}
.contact .wrap { position: relative; z-index: 2; }
.contact .kicker { color: var(--lime); } .contact .kicker::before { background: var(--lime); }
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: var(--paper); margin-bottom: clamp(36px, 5vw, 64px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: stretch; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.65; }
.contact-form input, .contact-form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(243, 236, 228, 0.35);
  color: var(--paper); font-family: var(--sans); font-size: 1.05rem;
  padding: 12px 2px; outline: none; resize: vertical;
  transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--coral); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(243, 236, 228, 0.35); }
.contact-form .btn { align-self: flex-start; border: 0; cursor: pointer; font-family: var(--sans); }

.contact-map { min-height: 380px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5); }
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(0.85); }

/* ---------- footer ---------- */

.site-footer { background: var(--night); color: rgba(243, 236, 228, 0.75); padding: 60px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding-bottom: 34px; border-bottom: 1px solid rgba(243, 236, 228, 0.14); }
.footer-logo { font-family: var(--serif); font-size: 1.6rem; color: var(--paper); }
.footer-logo em { color: var(--coral); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { opacity: 0.75; transition: opacity 0.3s, color 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { opacity: 1; color: var(--coral); }
.footer-links svg { width: 20px; height: 20px; fill: currentColor; }
.footer-wa img { width: 140px; height: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 0.82rem; opacity: 0.55; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- whatsapp float ---------- */

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(16, 21, 15, 0.94);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; animation: lbIn 0.35s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: min(1100px, 88vw); max-height: 78vh; object-fit: contain; box-shadow: 0 40px 100px rgba(0,0,0,0.6); }
.lightbox-caption {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  color: var(--paper); font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  text-align: center; width: 90%;
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(243,236,228,0.4);
  background: transparent; color: var(--paper); font-size: 1.4rem; cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.lb-btn:hover { background: var(--coral); border-color: var(--coral); }
.lb-prev { left: 22px; } .lb-next { right: 22px; }
.lb-close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: var(--paper); font-size: 2rem; cursor: pointer; line-height: 1; opacity: 0.8; }
.lb-close:hover { opacity: 1; color: var(--coral); }

/* ---------- reveal animation defaults ---------- */

[data-reveal] { opacity: 0; transform: translateY(36px); }
html.no-motion [data-reveal] { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: inline-block; will-change: transform; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-left { position: static; }
  .intro-photos { min-height: 0; display: grid; gap: 18px; }
  .intro-photos figure { position: static; width: 100% !important; }
  .guide-row { grid-template-columns: 1fr; gap: 20px; }
  .guide-row figure { order: -1; }
  .stay-panel { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .main-nav {
    position: fixed; inset: 0; z-index: 110;
    background: var(--night); color: var(--paper);
    flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
  }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .main-nav a { font-size: 1.15rem; }
  .burger { display: block; }
  .hero-card { padding: 40px 26px; }
  .gallery-head { flex-direction: column; align-items: start; gap: 8px; }
  .footer-top { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
