/* ============================================================
   Iglesia Adventista La Dehesa — Design System
   Brand: Elegante, Tradicional, Naturaleza, Cordillera, Calidez, Invitación
   ============================================================ */

:root {
  /* Palette — from brand guide */
  --moss-dark: #484C27;        /* Dark Moss Green */
  --moss: #9E9458;             /* Moss Green */
  --blue: #ADCECE;             /* Light Blue */
  --alabaster: #F3EDE4;        /* Alabaster */
  --jet: #1A1A1A;              /* Jet (PDF had typo — Jet should be dark) */
  --sienna: #D37958;           /* Burnt Sienna — accent */

  /* Derived */
  --alabaster-warm: #ECE3D4;
  --moss-dark-90: rgba(72, 76, 39, 0.92);
  --jet-soft: #2A2A28;
  --line: rgba(72, 76, 39, 0.18);
  --line-light: rgba(243, 237, 228, 0.22);

  /* Type */
  --font-title: "Abhaya Libre", Georgia, serif;
  --font-display: "Bodoni Moda", "Abhaya Libre", Georgia, serif; /* Bochan substitute */
  --font-body: "Mulish", "Inter", system-ui, -apple-system, sans-serif; /* Avenir substitute */

  /* Spacing */
  --container: 1320px;
  --container-narrow: 980px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 10vw, 144px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  color: var(--jet);
  background: var(--alabaster);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--moss); color: var(--alabaster); }

/* ===== Layout helpers ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Type ===== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
}
.eyebrow--alt { color: var(--sienna); }
.eyebrow--on-dark { color: var(--blue); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--moss-dark);
}

h1 { font-size: clamp(56px, 9vw, 132px); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(40px, 6.4vw, 84px); }
h3 { font-size: clamp(26px, 3vw, 36px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: 0; }

.display-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--jet-soft);
  font-weight: 400;
  max-width: 56ch;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--sienna);
  color: var(--alabaster);
}
.btn--primary:hover { background: #c46a4a; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--alabaster);
  border: 1px solid rgba(243, 237, 228, 0.5);
}
.btn--ghost:hover { background: rgba(243, 237, 228, 0.1); }

.btn--solid-dark {
  background: var(--moss-dark);
  color: var(--alabaster);
}
.btn--solid-dark:hover { background: var(--jet); transform: translateY(-1px); }

.btn .arrow {
  width: 14px; height: 14px;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 22px 0;
  transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header.is-scrolled {
  background: rgba(243, 237, 228, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--alabaster);
  transition: color .35s ease;
}
.header.is-scrolled .brand { color: var(--moss-dark); }

.brand__flame {
  width: 38px; height: 38px;
  flex-shrink: 0;
}
.brand__flame path { fill: currentColor; }
.brand__text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.04em;
}
.brand__text strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--alabaster);
  position: relative;
  padding: 6px 0;
  transition: color .35s ease;
}
.header.is-scrolled .nav__links a { color: var(--moss-dark); }
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  padding: 11px 22px;
  font-size: 13.5px;
}

.menu-btn { display: none; }

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 999px;
    background: var(--sienna);
    color: var(--alabaster);
  }
  .menu-btn svg { width: 18px; height: 18px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--alabaster);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.55) 0%, rgba(26, 26, 26, 0.15) 30%, rgba(26, 26, 26, 0.05) 55%, rgba(26, 26, 26, 0.78) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(80px, 12vh, 140px);
  padding-top: 140px;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--alabaster);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.92;
}
.hero__eyebrow::before {
  content: "";
  width: 56px; height: 1px;
  background: var(--alabaster);
  opacity: 0.6;
}
.hero__title {
  color: var(--alabaster);
  text-wrap: balance;
  max-width: 18ch;
  margin-bottom: 32px;
}
.hero__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--alabaster);
}
.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 19px);
  max-width: 46ch;
  color: rgba(243, 237, 228, 0.88);
  margin-bottom: 44px;
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__meta {
  position: absolute;
  bottom: clamp(28px, 5vh, 48px);
  right: var(--gutter);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(243, 237, 228, 0.78);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sienna);
  box-shadow: 0 0 0 4px rgba(211, 121, 88, 0.18);
}
@media (max-width: 720px) { .hero__meta { display: none; } }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--alabaster);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.hero__scroll .line {
  width: 1px; height: 38px;
  background: var(--alabaster);
  position: relative;
  overflow: hidden;
}
.hero__scroll .line::after {
  content: "";
  position: absolute;
  inset: -38px 0 auto 0;
  height: 38px;
  background: linear-gradient(to bottom, transparent, var(--alabaster));
  animation: scrollLine 2.6s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(0); }
  100% { transform: translateY(76px); }
}
@media (max-width: 880px) { .hero__scroll { display: none; } }

/* ===== Section base ===== */
section { padding: var(--section-y) 0; }

.section-head {
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 760px;
}
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head h2 { margin-bottom: 18px; }
.section-head .lede { color: var(--moss-dark); opacity: 0.78; }

.divider-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--moss);
  margin-bottom: 14px;
}
.divider-mark .rule { width: 36px; height: 1px; background: currentColor; opacity: 0.55; }

/* ===== Bienvenida ===== */
.bienvenida {
  background: var(--alabaster);
  position: relative;
}
.bienvenida__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.bienvenida__copy h2 {
  margin-bottom: 28px;
  letter-spacing: -0.015em;
}
.bienvenida__copy h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--moss);
}
.bienvenida__copy p + p { margin-top: 18px; }
.bienvenida__copy .lede { margin-bottom: 18px; }
.bienvenida__signature {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--moss-dark);
}
.bienvenida__signature strong { display: block; font-weight: 600; }
.bienvenida__signature span { opacity: 0.65; font-size: 13px; }

.bienvenida__image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--moss-dark);
}
.bienvenida__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.bienvenida__image:hover img { transform: scale(1.03); }
.bienvenida__image::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(72, 76, 39, 0.35));
  z-index: 1;
}
.bienvenida__caption {
  position: absolute;
  bottom: 24px; left: 24px;
  z-index: 2;
  color: var(--alabaster);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  max-width: 70%;
}

@media (max-width: 880px) {
  .bienvenida__grid { grid-template-columns: 1fr; }
  .bienvenida__image { aspect-ratio: 4 / 3; order: -1; }
}

/* Stats bar */
.stats {
  margin-top: clamp(80px, 10vw, 120px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-title);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 500;
  color: var(--moss-dark);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat__num sup {
  font-size: 0.45em;
  font-weight: 400;
  vertical-align: super;
  color: var(--sienna);
  margin-left: 4px;
}
.stat__label {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--jet-soft);
  opacity: 0.8;
}
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ===== Horarios ===== */
.horarios {
  background: var(--moss-dark);
  color: var(--alabaster);
  position: relative;
  overflow: hidden;
}
.horarios::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 80% 20%, rgba(158, 148, 88, 0.18), transparent 60%);
  pointer-events: none;
}
.horarios .container { position: relative; }
.horarios .section-head h2 { color: var(--alabaster); }
.horarios .section-head .lede { color: rgba(243, 237, 228, 0.78); }
.horarios .eyebrow { color: var(--blue); }
.horarios .divider-mark { color: var(--blue); }

.horarios__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.services {
  display: flex;
  flex-direction: column;
}
.service {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line-light);
  transition: padding .3s ease;
}
.service:last-child { border-bottom: 1px solid var(--line-light); }
.service:hover { padding-left: 12px; }
.service__day {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 500;
  color: var(--alabaster);
  letter-spacing: -0.01em;
}
.service__name {
  font-size: 15px;
  color: rgba(243, 237, 228, 0.8);
  font-weight: 400;
  line-height: 1.45;
}
.service__name strong {
  display: block;
  font-weight: 600;
  color: var(--alabaster);
  font-size: 16px;
  margin-bottom: 3px;
  font-family: var(--font-body);
}
.service__time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--blue);
  font-weight: 400;
  white-space: nowrap;
}

.shabbat-card {
  background: rgba(243, 237, 228, 0.05);
  border: 1px solid var(--line-light);
  padding: 36px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.shabbat-card .eyebrow {
  color: var(--sienna);
  margin-bottom: 18px;
  display: block;
}
.shabbat-card h3 {
  color: var(--alabaster);
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1.1;
}
.shabbat-card h3 em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--blue);
  font-weight: 400;
}
.shabbat-card p {
  color: rgba(243, 237, 228, 0.78);
  font-size: 15px;
  margin-bottom: 26px;
}
.shabbat-card__times {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.shabbat-card__times div { flex: 1; }
.shabbat-card__times span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.shabbat-card__times strong {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 500;
  color: var(--alabaster);
}

@media (max-width: 880px) {
  .horarios__grid { grid-template-columns: 1fr; }
  .service {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 20px;
  }
  .service__day { grid-row: 1; }
  .service__time { grid-row: 1; grid-column: 2; }
  .service__name { grid-row: 2; grid-column: 1 / -1; }
}

/* ===== Galería ===== */
.galeria { background: var(--alabaster); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--moss-dark);
  border-radius: 2px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s ease, filter .4s ease;
  filter: saturate(0.92);
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.05); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 26, 26, 0.5));
  opacity: 0;
  transition: opacity .4s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item__label {
  position: absolute;
  bottom: 16px; left: 18px;
  color: var(--alabaster);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.gallery-item:hover .gallery-item__label { opacity: 1; transform: translateY(0); }

/* Mosaic layout — 4 pieces */
.gallery-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 3; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(4) { grid-column: span 6; }

@media (max-width: 880px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 2; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 40px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(243, 237, 228, 0.15);
  color: var(--alabaster);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.lightbox__close:hover { background: rgba(243, 237, 228, 0.28); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(243, 237, 228, 0.12);
  color: var(--alabaster);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.lightbox__nav:hover { background: rgba(243, 237, 228, 0.24); }
.lightbox__nav.prev { left: 32px; }
.lightbox__nav.next { right: 32px; }
.lightbox__caption {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: rgba(243, 237, 228, 0.75);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}

/* ===== Ubicación ===== */
.ubicacion {
  background: var(--alabaster-warm);
  position: relative;
}
.ubicacion__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: stretch;
}
.ubicacion__info { padding: 12px 0; }
.ubicacion__info h2 { margin-bottom: 24px; }
.ubicacion__info h2 em { font-family: var(--font-display); font-style: italic; color: var(--moss); font-weight: 400; }

.address-block {
  margin-top: 36px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.address-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 14px 0;
  align-items: baseline;
}
.address-row + .address-row { border-top: 1px solid var(--line); }
.address-row dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
}
.address-row dd {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--moss-dark);
  line-height: 1.3;
}
.address-row dd small {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--jet-soft);
  opacity: 0.7;
  margin-top: 4px;
  letter-spacing: 0;
}

.map-card {
  position: relative;
  min-height: 480px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--moss-dark);
}
.map-card iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(0.35) sepia(0.08);
}
.map-pin {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--alabaster);
  padding: 18px 22px;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.18);
  max-width: 280px;
}
.map-pin__label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: 4px;
  font-weight: 600;
}
.map-pin__name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 16px;
  color: var(--moss-dark);
  margin-bottom: 2px;
}
.map-pin__addr { font-size: 12px; color: var(--jet-soft); opacity: 0.7; }

@media (max-width: 880px) {
  .ubicacion__grid { grid-template-columns: 1fr; }
  .map-card { min-height: 380px; }
}

/* ===== Contacto ===== */
.contacto {
  background: var(--moss-dark);
  color: var(--alabaster);
  position: relative;
  overflow: hidden;
}
.contacto::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(173, 206, 206, 0.12), transparent 60%);
  pointer-events: none;
}
.contacto .container { position: relative; }
.contacto .section-head h2 { color: var(--alabaster); }
.contacto .section-head h2 em { font-family: var(--font-display); font-style: italic; color: var(--blue); font-weight: 400; }
.contacto .section-head .lede { color: rgba(243, 237, 228, 0.78); }
.contacto .eyebrow { color: var(--sienna); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field { position: relative; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-light);
  padding: 10px 0 14px;
  color: var(--alabaster);
  font: inherit;
  font-size: 17px;
  font-family: var(--font-title);
  transition: border-color .25s ease;
  outline: none;
  resize: none;
}
.field textarea { min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(243, 237, 228, 0.4); }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--blue); }
.field select { color: var(--alabaster); appearance: none; cursor: pointer; }
.field select option { color: var(--moss-dark); }
.field--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-form__submit {
  margin-top: 12px;
  align-self: flex-start;
  background: var(--sienna);
  color: var(--alabaster);
}
.form-success {
  background: rgba(173, 206, 206, 0.14);
  border: 1px solid rgba(173, 206, 206, 0.32);
  padding: 24px 28px;
  border-radius: 2px;
  display: none;
}
.form-success.is-visible { display: block; }
.form-success h4 {
  color: var(--blue);
  font-family: var(--font-title);
  font-size: 22px;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-success p { color: rgba(243, 237, 228, 0.82); font-size: 14.5px; }

.contact-aside {
  border-left: 1px solid var(--line-light);
  padding-left: clamp(28px, 4vw, 56px);
}
.contact-aside h4 {
  color: var(--alabaster);
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.contact-aside p {
  color: rgba(243, 237, 228, 0.72);
  font-size: 14.5px;
  margin-bottom: 28px;
}
.contact-aside__block {
  padding: 22px 0;
  border-top: 1px solid var(--line-light);
}
.contact-aside__block:last-child { border-bottom: 1px solid var(--line-light); }
.contact-aside__block .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.contact-aside__block .val {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--alabaster);
}
.contact-aside__block .val a:hover { color: var(--blue); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--line-light); padding-top: 32px; }
  .field--two { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer {
  background: var(--jet);
  color: var(--alabaster);
  padding: 80px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(243, 237, 228, 0.12);
}
.footer__brand .brand { color: var(--alabaster); }
.footer__verse {
  margin-top: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: rgba(243, 237, 228, 0.76);
  max-width: 38ch;
}
.footer__verse cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sienna);
}
.footer__col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14.5px;
  color: rgba(243, 237, 228, 0.78);
  transition: color .2s ease;
}
.footer__col a:hover { color: var(--alabaster); }
.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom p {
  font-size: 12.5px;
  color: rgba(243, 237, 228, 0.5);
  letter-spacing: 0.04em;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(243, 237, 228, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(243, 237, 228, 0.75);
  transition: background .25s ease, color .25s ease;
}
.socials a:hover { background: var(--sienna); color: var(--alabaster); }
.socials svg { width: 16px; height: 16px; }

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--moss-dark);
  color: var(--alabaster);
  padding: 100px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.6, .05, .25, 1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-top: 1px solid var(--line-light); }
.mobile-menu li:last-child { border-bottom: 1px solid var(--line-light); }
.mobile-menu a {
  display: block;
  padding: 22px 0;
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 500;
  color: var(--alabaster);
}
.mobile-menu__close {
  position: absolute;
  top: 22px; right: var(--gutter);
  width: 44px; height: 44px;
  background: rgba(243, 237, 228, 0.12);
  color: var(--alabaster);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Tweaks panel (vanilla) ===== */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  width: 320px;
  background: var(--alabaster);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.18);
  padding: 20px 22px 22px;
  font-family: var(--font-body);
  color: var(--moss-dark);
  display: none;
}
.tweaks-panel.is-open { display: block; }
.tweaks-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tweaks-panel__head strong {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 600;
}
.tweaks-panel__head button {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(72, 76, 39, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--moss-dark);
}
.tweaks-section {
  margin-bottom: 18px;
}
.tweaks-section:last-child { margin-bottom: 0; }
.tweaks-section label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 10px;
  font-weight: 600;
}
.tweaks-options {
  display: flex;
  gap: 8px;
}
.tweak-opt {
  flex: 1;
  padding: 9px 12px;
  background: rgba(72, 76, 39, 0.06);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--moss-dark);
  transition: all .2s ease;
  cursor: pointer;
  text-align: center;
}
.tweak-opt:hover { background: rgba(72, 76, 39, 0.12); }
.tweak-opt.is-active {
  background: var(--moss-dark);
  color: var(--alabaster);
  border-color: var(--moss-dark);
}
.tweak-swatches {
  display: flex;
  gap: 10px;
}
.tweak-swatch {
  flex: 1;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  display: flex;
  transition: transform .2s ease, border-color .2s ease;
}
.tweak-swatch:hover { transform: translateY(-2px); }
.tweak-swatch.is-active { border-color: var(--moss-dark); box-shadow: 0 0 0 2px var(--alabaster), 0 0 0 3px var(--moss-dark); }
.tweak-swatch span { flex: 1; }

/* Palette variations */
body.palette-warm {
  --alabaster: #F1E5D2;
  --alabaster-warm: #E8D9C0;
  --moss-dark: #5A3A26;
  --moss: #B07650;
  --sienna: #D37958;
  --blue: #C9B89C;
}
body.palette-cool {
  --alabaster: #EEF1F0;
  --alabaster-warm: #DCE5E4;
  --moss-dark: #2D4747;
  --moss: #6E8F8E;
  --blue: #ADCECE;
  --sienna: #A86D5A;
}

body.font-display-bodoni { --font-display: "Bodoni Moda", serif; }
body.font-display-playfair { --font-display: "Playfair Display", serif; }
body.font-display-cormorant { --font-display: "Cormorant Garamond", serif; }
