:root {
  --cream: #f4ece0;
  --ivory: #fbf6ee;
  --paper: #efe6d6;
  --terracotta: #c45c32;
  --terracotta-deep: #9c3f1c;
  --olive: #4f5c36;
  --olive-deep: #3a4428;
  --sage: #8b9778;
  --ink: #1c1914;
  --ink-2: #3f3a32;
  --ink-3: #6d665c;
  --white: #fffcf7;
  --line: rgba(28, 25, 20, 0.12);
  --line-strong: rgba(28, 25, 20, 0.22);
  --shadow: 0 24px 60px rgba(28, 25, 20, 0.18);
  --radius: 4px;
  --header-h: 74px;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: -40px;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus {
  top: 0.8rem;
}

.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max);
  padding-inline: 1rem;
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--olive);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.05rem, 7vw, 4.4rem);
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.55rem;
}

p,
li,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

.intro,
.lead {
  color: var(--ink-2);
  max-width: 52ch;
}

.lead {
  font-size: 1.08rem;
  overflow-wrap: break-word;
}

.section {
  padding: 4.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--radius);
  padding: 0.88rem 1.2rem;
  text-decoration: none;
  font-weight: 520;
  line-height: 1.15;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--terracotta-deep);
}

.btn-olive {
  background: var(--olive);
  color: var(--white);
}

.btn-olive:hover {
  background: var(--olive-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-sm {
  padding: 0.68rem 0.95rem;
  font-size: 0.88rem;
}

.topbar {
  background: var(--olive-deep);
  color: #efe8d8;
  font-size: 0.82rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  min-width: 0;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 520;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(244, 236, 224, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 32px;
  color: var(--olive);
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
}

.mobile-nav {
  display: none;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 1rem 1rem;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.2rem;
}

.mobile-nav a {
  text-decoration: none;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: min(86vh, 760px);
  overflow: hidden;
  background: #c9b9a2;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: min(86vh, 760px);
  min-width: 0;
  padding: 2rem 0 2.4rem;
}

.hero-card {
  background: var(--ivory);
  color: var(--ink);
  padding: clamp(1.3rem, 3vw, 2.1rem);
  width: min(36rem, 100%);
  max-width: 100%;
  min-width: 0;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.trust {
  background: var(--olive);
  color: #f3ecde;
  padding: 1.15rem 0;
}

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

.trust p {
  margin: 0;
  font-size: 0.95rem;
}

.trust strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.service {
  background: var(--ivory);
  padding: 1.2rem 1.15rem 1.35rem;
  border: 1px solid var(--line);
  min-width: 0;
}

.service span {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 0.7rem;
}

.service h3 {
  margin-bottom: 0.45rem;
}

.service p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.casa {
  background: var(--ivory);
  padding: 0 0 4.5rem;
}

.casa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.2rem;
  align-items: center;
}

.casa-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.casa-copy p {
  color: var(--ink-2);
}

.casa-copy .btn {
  margin-top: 0.6rem;
}

.oficio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.oficio-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.oficio-grid figcaption {
  margin-top: 0.65rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-2);
}

.pasos {
  background: var(--paper);
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.steps li {
  background: var(--ivory);
  padding: 1.15rem;
  min-width: 0;
  border-top: 3px solid var(--olive);
}

.steps strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.steps span {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.visita {
  background: var(--ivory);
}

.visita-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: start;
}

.hours-card {
  margin-top: 1.4rem;
  background: var(--cream);
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
}

.hours-card p {
  margin: 0 0 1rem;
  color: var(--ink-2);
}

.hours-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.map-link {
  font-weight: 520;
}

.form {
  background: var(--cream);
  padding: 1.3rem;
  border: 1px solid var(--line);
  min-width: 0;
}

.form-fields {
  display: grid;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  min-width: 0;
}

.form label span em {
  font-style: normal;
  color: var(--ink-3);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.75rem;
}

.form textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
}

.check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  color: var(--ink-2);
  font-size: 0.86rem;
}

.check input {
  width: auto;
  margin-top: 0.2rem;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-error {
  margin: 0;
  color: var(--terracotta-deep);
  font-size: 0.9rem;
}

.form-success {
  padding: 1rem 0.2rem 0.4rem;
}

.form.is-done .form-fields {
  display: none;
}

.form.is-done .form-success {
  display: block !important;
}

.site-footer {
  background: var(--olive-deep);
  color: #efe8d8;
  padding: 2.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 252, 247, 0.14);
}

.site-footer .brand-name {
  font-size: 1.8rem;
  margin: 0 0 0.35rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer nav {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.fine {
  padding-top: 1rem;
  font-size: 0.8rem;
  color: rgba(239, 232, 216, 0.75);
}

.page {
  padding: 3.2rem 0 4.5rem;
}

.page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page .legal {
  max-width: 68ch;
}

.page .legal h2 {
  font-size: 1.6rem;
  max-width: none;
  margin-top: 1.8rem;
}

.page .legal p,
.page .legal li {
  color: var(--ink-2);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .trust-grid,
  .services,
  .steps,
  .casa-grid,
  .visita-grid,
  .footer-grid,
  .oficio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .topbar span {
    display: none;
  }

  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .hero-photo {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 20% 50%;
  }

  .hero-layout {
    min-height: 0;
    padding: 0 0 0.4rem;
  }

  .hero-card {
    width: 100%;
    max-width: none;
    box-shadow: none;
    padding: 1.35rem 0 1.1rem;
    background: transparent;
  }

  .trust-grid,
  .services,
  .steps,
  .casa-grid,
  .visita-grid,
  .form-row,
  .footer-grid,
  .oficio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-actions .btn {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section,
  .casa {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
