/* Casa Peñalisa — estilos */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --sand: #f3ece1;
  --ink: #1f2a24;
  --muted: #5b6660;
  --line: #e6ddd0;
  --terracotta: #a94a28;
  --terracotta-dark: #8a3a1e;
  --green: #2f5d46;
  --pool: #1f7fb6;
  --whatsapp: #1f8f4e;
  --whatsapp-dark: #177140;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 36, .06), 0 8px 24px rgba(31, 42, 36, .08);
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); }
a:hover { color: var(--terracotta-dark); }
:focus-visible { outline: 3px solid var(--pool); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand span { color: var(--terracotta); }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--terracotta); }
.lang {
  margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: .8rem; font-weight: 600;
}
.lang a, .lang span { padding: 5px 11px; text-decoration: none; color: var(--muted); }
.lang [aria-current] { background: var(--ink); color: #fff; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .lang { margin-left: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 8px; }
.hero-grid { display: grid; gap: 20px 56px; align-items: end; }
.kicker {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.25rem; }
.lede { font-size: 1.12rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo {
  margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 16 / 10; background: var(--sand); margin-top: 8px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 24px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
  .hero-photo { grid-column: 1 / -1; aspect-ratio: 1280 / 576; margin-top: 16px; }
}

/* ---------- Facts ---------- */
.facts {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.facts li { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.facts span { color: var(--muted); font-size: .9rem; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.section-alt { background: var(--sand); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split p { margin: 0 0 16px; }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checklist.two { grid-template-columns: 1fr; }
@media (min-width: 600px) { .checklist.two { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gallery button.wide { grid-column: span 2; aspect-ratio: auto; position: relative; }
  .gallery button.wide img { position: absolute; inset: 0; }
}
.gallery button {
  display: block; padding: 0; border: 0; background: var(--sand); cursor: zoom-in;
  border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery button:hover img { transform: scale(1.03); }

.lightbox {
  border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  background: rgba(12, 16, 14, .94); color: #fff;
}
.lightbox::backdrop { background: rgba(12, 16, 14, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 56px 16px 64px; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.lightbox img { max-width: min(100%, 1280px); max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 6px; }
.lightbox figcaption { font-size: .95rem; color: #d9dfdb; text-align: center; }
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 719px) {
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Videos ---------- */
.videos { display: grid; gap: 16px; }
@media (min-width: 720px) { .videos { grid-template-columns: repeat(2, 1fr); } }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.video button { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgba(169, 74, 40, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 7l9 5-9 5z'/%3E%3C/svg%3E") center / 34px no-repeat;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos:has(> .video.vertical:only-child) { display: flex; justify-content: center; }
.video.vertical { aspect-ratio: 9 / 16; width: 100%; max-width: 360px; justify-self: center; }

/* ---------- Club ---------- */
.club-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .club-grid { grid-template-columns: repeat(4, 1fr); } }
.club-grid li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; font-weight: 500;
}
.club-grid svg { width: 28px; height: 28px; color: var(--green); }
.location {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.location p { margin: 0; }

/* ---------- Prices ---------- */
.prices { display: grid; gap: 16px; }
@media (min-width: 820px) { .prices { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 6px;
}
.price-card.featured { border: 2px solid var(--terracotta); box-shadow: var(--shadow); }
.price-card .label { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-card .amount { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1.15; margin-top: 4px; }
.price-card .amount small { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-card .unit { color: var(--muted); }
.price-card p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.note { margin: 20px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Contact ---------- */
.contact { background: var(--green); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact p { color: #d7e4dc; max-width: 34em; margin: 0 auto 28px; }
.contact .btn-wa { background: #fff; color: var(--green); font-size: 1.08rem; min-height: 56px; padding: 14px 28px; }
.contact .btn-wa:hover { background: #eef5f0; color: var(--green); }
.contact .btn-wa svg { color: var(--whatsapp); }
.phone { display: block; margin-top: 16px; color: #d7e4dc; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 96px; font-size: .88rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; }
@media (min-width: 900px) { .site-footer { padding-bottom: 28px; } }

/* ---------- Floating WhatsApp (mobile) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whatsapp); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.wa-float:hover { background: var(--whatsapp-dark); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
@media (min-width: 900px) { .wa-float { display: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound p { color: var(--muted); }

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