:root {
  --bg: #0c0e11;
  --panel: #14171c;
  --panel-2: #1d222a;
  --text: #f6f1e9;
  --muted: #b8b0a4;
  --line: rgba(255,255,255,.13);
  --accent: #d9c29b;
  --radius: 24px;
  --shadow: 0 26px 90px rgba(0,0,0,.48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(18px, 4vw, 58px);
  background: linear-gradient(to bottom, rgba(0,0,0,.68), rgba(0,0,0,0));
}
body:not(.home) .site-header {
  position: sticky;
  background: rgba(12,14,17,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 120px;
  max-width: min(240px, 42vw);
}
.brand-signature {
  width: clamp(150px, 18vw, 260px);
  height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.35));
}
.top-nav { display: flex; gap: clamp(16px, 3vw, 34px); align-items: center; }
.top-nav a { color: rgba(246,241,233,.78); font-size: .95rem; transition: color .22s ease, transform .22s ease; }
.top-nav a:hover { color: var(--text); transform: translateY(-2px); }
.nav-toggle { display: none; width: 46px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.08); cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 4px; border-radius: 2px; }

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 96px 20px 36px;
}
.hero-bg-stack, .hero-bg-layer, .hero-shade { position: absolute; inset: 0; }
.hero-bg-layer {
  background-image: radial-gradient(circle at center, rgba(216,194,155,.14), rgba(12,14,17,.92));
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.45s ease;
  will-change: opacity;
}
.hero-bg-layer.active { opacity: 1; }
.hero-shade {
  background:
    radial-gradient(circle at 50% 45%, rgba(0,0,0,.05), rgba(0,0,0,.66)),
    linear-gradient(to top, rgba(12,14,17,.92), rgba(12,14,17,.08), rgba(12,14,17,.52));
}
.hero-content { position: relative; z-index: 2; width: min(1080px, 100%); }
.hero-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.hero-card {
  min-height: 174px;
  padding: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.035)), rgba(255,255,255,.052);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform .32s ease, border-color .32s ease, background .32s ease, backdrop-filter .32s ease;
  backdrop-filter: blur(3px);
}
.hero-card:hover {
  transform: translateY(-10px) scale(1.025);
  border-color: rgba(217,194,155,.56);
  background: linear-gradient(145deg, rgba(217,194,155,.22), rgba(255,255,255,.055)), rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.hero-card span { display: block; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 850; letter-spacing: -.045em; }
.hero-card small {
  display: block;
  margin-top: 10px;
  color: rgba(246,241,233,.76);
  font-size: clamp(.85rem, 1.5vw, 1.03rem);
  font-weight: 760;
  letter-spacing: .02em;
}

.page-wrap { width: min(1180px, calc(100% - 34px)); margin: 0 auto; padding: clamp(48px, 7vw, 76px) 0 56px; }
.page-title { padding: 28px 0 44px; }
.page-title.compact { padding-bottom: 24px; }
h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: .94; letter-spacing: -.06em; }
.back-link { display: inline-flex; margin-bottom: 14px; color: var(--accent); font-weight: 750; }
.empty-message { color: var(--muted); line-height: 1.7; }

.gallery-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gallery-card {
  min-height: 372px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.gallery-card img { width: 100%; height: 100%; min-height: 372px; object-fit: cover; filter: saturate(.96) contrast(1.02); transition: transform .5s ease, filter .5s ease; }
.gallery-card:hover img { transform: scale(1.06); filter: saturate(1.08) contrast(1.07); }
.gallery-card-info { position: absolute; inset: auto 0 0 0; padding: 90px 22px 22px; background: linear-gradient(to top, rgba(0,0,0,.86), transparent); }
.gallery-card-info h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.04em; }

.photo-grid { columns: 3 280px; column-gap: 18px; }
.photo-item { width: 100%; display: inline-block; margin: 0 0 18px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--panel); cursor: pointer; box-shadow: 0 12px 35px rgba(0,0,0,.26); }
.photo-item img { width: 100%; height: auto; transition: transform .35s ease, opacity .35s ease; }
.photo-item:hover img { transform: scale(1.035); opacity: .87; }

.lightbox { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; padding: 34px; background: rgba(0,0,0,.92); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 82vw); max-height: 86vh; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-weight: 700; }
.lightbox-close, .lightbox-arrow { position: absolute; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.08); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.lightbox-close:hover, .lightbox-arrow:hover { transform: scale(1.06); background: rgba(255,255,255,.16); }
.lightbox-close { top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox-arrow { top: 50%; translate: 0 -50%; width: 54px; height: 74px; border-radius: 999px; font-size: 3.3rem; line-height: .7; }
.lightbox-arrow.prev { left: 22px; }
.lightbox-arrow.next { right: 22px; }

.split-page { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 38px; align-items: start; }
.editable-text p { color: var(--muted); line-height: 1.8; font-size: 1.05rem; max-width: 760px; }
.editable-text p + p { margin-top: 18px; }
.button-link { display: inline-flex; margin-top: 22px; padding: 13px 18px; border-radius: 999px; background: var(--accent); color: #111; font-weight: 850; }
.about-card, .contact-card { background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035)), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.about-photo-wrap { border-radius: 18px; overflow: hidden; background: var(--panel-2); }
.about-photo-wrap img { width: 100%; height: 480px; object-fit: cover; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-links a { padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); transition: transform .22s ease, border-color .22s ease; }
.contact-links a:hover { transform: translateY(-2px); border-color: rgba(217,194,155,.56); }
.contact-card form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 760; }
input, textarea { width: 100%; border: 1px solid var(--line); color: var(--text); background: rgba(0,0,0,.22); border-radius: 14px; padding: 13px 14px; }
textarea { resize: vertical; }
button[type="submit"] { border: 0; border-radius: 999px; padding: 14px 18px; color: #111; background: var(--accent); font-weight: 850; cursor: pointer; }
.site-footer { width: min(1180px, calc(100% - 34px)); margin: 0 auto; padding: 32px 0 44px; color: var(--muted); display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .site-header { min-height: 72px; }
  .brand-signature {
  width: clamp(150px, 18vw, 260px);
  height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.35));
}
  .top-nav { position: fixed; top: 78px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(12,14,17,.97); }
  .top-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .hero-buttons, .gallery-list, .split-page { grid-template-columns: 1fr; }
  .hero-card { min-height: 136px; }
  .gallery-card, .gallery-card img { min-height: 300px; }
  .page-wrap { padding-top: 40px; }
  .lightbox { padding: 22px 12px; }
  .lightbox figure { max-width: 100%; }
  .lightbox-arrow { width: 42px; height: 56px; font-size: 2.4rem; }
  .site-footer { flex-direction: column; }
}

/* Simple bilingual home buttons: English title + small Spanish word only. */
.hero-card small span { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body {
  user-select: none;
  -webkit-user-select: none;
}
