/* ============================================================
   Villa de Oro — Punta Mala, Pedasí, Panamá
   Static site · no external dependencies · system fonts
   ============================================================ */

:root {
  --ink:    #1b222c;
  --ink-2:  #232e3b;
  --paper:  #faf7f1;
  --sand:   #f1ead9;
  --gold:   #b3924f;
  --gold-2: #d4b876;
  --line:   #e4ddcd;
  --muted:  #6f6a5e;
  --white:  #ffffff;
  --wa:     #1fa855;
  --serif:  Georgia, 'Times New Roman', 'Playfair Display', serif;
  --sans:   'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

section { scroll-margin-top: 84px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 18px;
}

.sub { color: var(--muted); max-width: 640px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease;
  padding: 18px 0;
}
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.nav-brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.06em;
  color: var(--white);
  white-space: nowrap;
}
.nav-brand .vdo { color: var(--gold-2); }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.92);
  font-size: 14.5px;
  letter-spacing: .04em;
}
.nav-links a:hover { color: var(--gold-2); }
.nav-langs { display: flex; gap: 4px; margin-left: 18px; align-items: center; }
.nav-langs a, .nav-langs span.cur {
  font-size: 12.5px; letter-spacing: .08em; font-weight: 600;
  padding: 4px 8px; border-radius: 4px;
  color: rgba(255,255,255,.75);
}
.nav-langs span.cur { color: var(--ink); background: var(--gold-2); }
.nav.scrolled { background: rgba(250,247,241,.96); box-shadow: 0 2px 18px rgba(27,34,44,.10); }
.nav.scrolled .nav-brand { color: var(--ink); }
.nav.scrolled .nav-links a { color: var(--ink-2); }
.nav.scrolled .nav-links a:hover { color: var(--gold); }
.nav.scrolled .nav-langs a { color: var(--muted); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--white); transition: background .35s;
}
.nav.scrolled .nav-toggle span { background: var(--ink); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(27,34,44,.97);
    flex-direction: column; gap: 0; padding: 12px 0 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 24px; width: 100%; text-align: center; color: #fff !important; }
  .nav-langs { margin: 10px 0 0; justify-content: center; width: 100%; }
  .nav-langs a { width: auto; padding: 4px 10px; color: rgba(255,255,255,.8) !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white);
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,26,34,.42) 0%, rgba(20,26,34,.18) 45%, rgba(20,26,34,.62) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px 24px 80px; max-width: 860px; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 9vw, 96px);
  letter-spacing: 0.03em; line-height: 1.05;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 21px);
  color: rgba(255,255,255,.94);
  max-width: 640px; margin: 0 auto 34px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.chip {
  display: inline-block; margin-top: 26px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(212,184,118,.55);
  padding: 8px 18px; border-radius: 999px;
  background: rgba(20,26,34,.35);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 4px;
  font-size: 15px; font-weight: 600; letter-spacing: .05em;
  transition: transform .15s ease, background .25s ease, color .25s ease;
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-2); color: var(--ink); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.7);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #24bf62; color: var(--white); }
.btn svg { flex: 0 0 auto; }

/* ---------- Stats strip ---------- */
.stats { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 18px; padding-top: 40px; padding-bottom: 40px;
}
.stat { text-align: center; }
.stat .v { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); color: var(--gold); }
.stat .l { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .stats .wrap { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- About ---------- */
.about .cols { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.about p + p { margin-top: 18px; }
@media (max-width: 860px) { .about .cols { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Features ---------- */
.features { background: var(--white); border-top: 1px solid var(--line); }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 30px;
  margin-top: 46px;
}
.feature .ic {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sand); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .features-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 46px;
}
.gallery-grid a { position: relative; display: block; overflow: hidden; border-radius: 6px; }
.gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform .5s ease;
  cursor: zoom-in;
}
.gallery-grid a:first-child img { aspect-ratio: auto; min-height: 100%; }
.gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid a:first-child { grid-column: span 2; grid-row: span 1; }
}

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,19,25,.95);
  display: none; align-items: center; justify-content: center;
}
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 4px; }
.lb button {
  position: absolute; background: none; border: 0; color: rgba(255,255,255,.85);
  font-size: 40px; cursor: pointer; padding: 12px 20px; line-height: 1;
  font-family: var(--sans);
}
.lb button:hover { color: var(--gold-2); }
.lb .lb-close { top: 14px; right: 18px; }
.lb .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- Video ---------- */
.video-sec { background: var(--ink); color: var(--white); }
.video-sec h2 { color: var(--white); }
.video-sec .sub { color: rgba(255,255,255,.72); }
.video-frame {
  margin: 44px auto 0; max-width: 920px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.video-frame video { width: 100%; display: block; }

/* ---------- Plan ---------- */
.plan .cols { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.plan-img {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(27,34,44,.08);
}
.plan .btn { margin-top: 26px; }
@media (max-width: 860px) { .plan .cols { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Specs ---------- */
.specs { background: var(--white); border-top: 1px solid var(--line); }
.specs-table { margin-top: 40px; border-top: 1px solid var(--line); }
.specs-table .row {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px;
  padding: 14px 6px; border-bottom: 1px solid var(--line);
}
.specs-table .row .k { color: var(--muted); font-size: 15px; letter-spacing: .02em; }
.specs-table .row .v { font-weight: 600; }
@media (min-width: 861px) {
  .specs-table { columns: 2; column-gap: 56px; }
  .specs-table .row { break-inside: avoid; }
}

/* ---------- Location ---------- */
.loc-bullets {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px; margin: 26px 0 36px; padding: 0; list-style: none;
}
.loc-bullets li { padding-left: 26px; position: relative; }
.loc-bullets li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-2);
}
.map-frame {
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(27,34,44,.08);
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-link { display: inline-block; margin-top: 14px; font-weight: 600; }
@media (max-width: 640px) { .loc-bullets { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta-sec { background: var(--ink-2); color: var(--white); text-align: center; }
.cta-sec h2 { color: var(--gold-2); }
.cta-sec .sub { margin: 0 auto 36px; color: rgba(255,255,255,.8); }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.55); }

/* ---------- Footer ---------- */
footer { background: #141a22; color: rgba(255,255,255,.65); padding: 56px 0 40px; font-size: 14.5px; }
footer .cols { display: flex; gap: 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
footer img.logo { height: 74px; width: auto; }
footer .tagline { font-family: var(--serif); font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 8px; }
footer a { color: var(--gold-2); }
footer .langs { margin-top: 10px; }
footer .rights { margin-top: 34px; text-align: center; font-size: 13px; color: rgba(255,255,255,.4); }

/* ---------- Floating buttons ---------- */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: transform .15s ease;
}
.fab-wa:hover { transform: scale(1.07); color: #fff; }
.fab-top {
  position: fixed; right: 30px; bottom: 94px; z-index: 150;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(27,34,44,.85); color: #fff; border: 0; cursor: pointer;
  font-size: 18px; display: none;
}
.fab-top.show { display: block; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-grid a:hover img { transform: none; }
}
