:root {
  --ink: #231b20;
  --muted: #665b60;
  --paper: #fffaf4;
  --mist: #f3eee7;
  --sage: #5f7f68;
  --jade: #1f6f62;
  --rose: #a04f62;
  --gold: #c6923d;
  --line: rgba(35, 27, 32, 0.14);
  --shadow: 0 22px 70px rgba(35, 27, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.viewer-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 244, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 3vw, 24px);
  font-size: 14px;
  font-weight: 700;
}

.language-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
}

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-rows: minmax(360px, 58vh) auto;
  background: var(--ink);
  color: white;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(35, 27, 32, 0.05), rgba(35, 27, 32, 0.68));
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-content {
  max-width: 780px;
  padding: 28px clamp(20px, 7vw, 92px) 54px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  font-weight: 600;
}

h1 {
  max-width: 900px;
  font-size: clamp(44px, 9vw, 92px);
}

h2 {
  font-size: clamp(32px, 6vw, 58px);
}

h3 {
  font-size: clamp(24px, 4vw, 34px);
}

.hero p:not(.kicker),
.service-hero p:not(.kicker) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.button.dark {
  background: var(--ink);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.intro-section,
.services-section,
.gallery-section {
  padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.kicker) {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.feature-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(35, 27, 32, 0.82));
}

.feature-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover img {
  transform: scale(1.04);
}

.feature-card span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.05;
}

.services-section {
  background: var(--mist);
}

.service-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  padding: clamp(16px, 3vw, 28px);
  background: var(--paper);
}

.service-image {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: var(--ink);
}

.service-image img {
  height: 100%;
  object-fit: cover;
}

.service-row p {
  max-width: 900px;
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 72px);
  background: var(--sage);
  color: white;
}

.contact-band h2 {
  max-width: 820px;
  font-size: clamp(30px, 5vw, 52px);
}

.contact-band .kicker {
  color: #ffe0a0;
}

.nahual-page {
  min-height: 76vh;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(31, 111, 98, 0.16), rgba(160, 79, 98, 0.12)),
    var(--paper);
}

.nahual-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.nahual-intro p:not(.kicker) {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.nahual-form {
  display: grid;
  max-width: 860px;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.82);
  box-shadow: var(--shadow);
}

.date-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.date-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.date-fields input,
.date-fields select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}

.date-fields select {
  cursor: pointer;
}

.date-fields input:focus,
.date-fields select:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(198, 146, 61, 0.24);
}

.nahual-result {
  max-width: 860px;
  margin-top: 22px;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.nahual-result[hidden] {
  display: none;
}

.nahual-result h2 {
  font-size: clamp(44px, 8vw, 82px);
}

.nahual-result p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.calendar-form {
  margin-bottom: 22px;
}

.calendar-fields {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.7fr);
}

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar-panel {
  max-width: 1040px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.9);
  box-shadow: var(--shadow);
}

.calendar-panel h2 {
  margin-bottom: 18px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekday {
  padding: 8px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-empty,
.calendar-day {
  min-height: 104px;
  border-radius: 8px;
}

.calendar-empty {
  background: rgba(35, 27, 32, 0.04);
}

.calendar-day {
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: white;
}

.calendar-day strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.calendar-day span {
  color: var(--jade);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 76vh;
  background: var(--ink);
  color: white;
}

.service-hero > div {
  align-self: center;
  padding: clamp(48px, 8vw, 110px) clamp(20px, 6vw, 78px);
}

.service-hero img {
  height: 100%;
  object-fit: cover;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  cursor: zoom-in;
}

.gallery-thumb img {
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  opacity: 0.88;
  transform: scale(1.04);
}

.gallery-thumb:focus-visible,
.viewer-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
}

.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 14, 0.92);
}

.image-viewer-frame {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 1120px);
  height: min(82vh, 820px);
  place-items: center;
}

.image-viewer-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.viewer-button {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.viewer-close {
  top: 0;
  right: 0;
}

.viewer-prev {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.viewer-next {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-list a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: white;
}

.site-footer p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.footer-copy {
  max-width: 520px;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-whatsapp {
  font-weight: 800;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(42vw, 1fr) minmax(420px, 0.78fr);
    grid-template-rows: minmax(680px, calc(100vh - 72px));
  }

  .hero-media {
    order: 2;
  }

  .hero-content {
    align-self: center;
    padding-bottom: 80px;
  }
}

@media (max-width: 900px) {
  .featured-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-hero {
    grid-template-columns: 1fr;
  }

  .service-hero img {
    max-height: 55vh;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .footer-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .featured-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 280px;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .date-fields {
    grid-template-columns: 1fr;
  }

  .calendar-actions {
    flex-direction: column;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-empty,
  .calendar-day {
    min-height: 82px;
  }

  .calendar-day {
    padding: 8px;
  }

  .calendar-day strong {
    font-size: 22px;
  }

  .calendar-day span {
    font-size: 11px;
  }

  .image-viewer {
    padding: 12px;
  }

  .image-viewer-frame {
    height: 78vh;
  }

  .viewer-button {
    width: 42px;
    height: 42px;
  }
}
