:root {
  --bg: #F9F6EF;
  --surface: #FFFDF9;
  --tint: #F3EDE3;
  --terra: #9E4A2C;
  --terra-dark: #84391F;
  --gold-text: #7D6049;
  --line: #DDCDB8;
  --ink: #3A2C25;
  --muted: #6B584D;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 640px; }
.center { text-align: center; margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--terra); color: #fff; padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Encabezado */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(249, 246, 239, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand__name { font: 600 24px/1 var(--serif); letter-spacing: .2em; color: var(--terra); }

nav { display: flex; align-items: center; gap: 28px; }
nav a {
  font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); transition: color .2s;
}
nav a:hover { color: var(--terra); }
nav .nav__cta { color: var(--terra); border: 1px solid var(--terra); padding: 9px 16px; transition: background .2s, color .2s; }
nav .nav__cta:hover { background: var(--terra); color: #fff; }

/* Portada */
.hero { padding: 56px 0 64px; text-align: center; }
.hero__logo { width: min(640px, 100%); margin: 0 auto; }
.hero__lead {
  font: italic 500 clamp(21px, 2.6vw, 27px)/1.4 var(--serif);
  color: var(--muted); max-width: 32ch; margin: 36px auto 32px;
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-block; padding: 15px 28px;
  font: 400 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--terra);
  transition: background .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--terra); color: #fff; }
.btn--solid:hover { background: var(--terra-dark); border-color: var(--terra-dark); }
.btn--line { color: var(--terra); }
.btn--line:hover { background: var(--terra); color: #fff; }

/* Greca */
.meander {
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M0 .75H24M0 19.25H24M4 19.25V4H20V15H9V8.5H15.5V11.5' fill='none' stroke='%23C9B39A' stroke-width='1.1'/%3E%3C/svg%3E") repeat-x center / 18px 15px;
}

/* Secciones */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section p { color: var(--muted); }

.eyebrow {
  font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 14px;
}
h2 {
  font: 500 clamp(32px, 4.2vw, 46px)/1.15 var(--serif);
  color: var(--terra); margin: 0 0 20px;
}

/* Servicios */
.cards {
  display: grid; gap: 24px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 38px 34px 30px; }
.card::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.card h3 { font: 600 27px/1.2 var(--serif); color: var(--terra); margin: 0 0 8px; }
.card p { font-size: 15px; margin: 0 0 22px; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 400; }

/* Visítanos */
address { font-style: normal; font-size: 18px; line-height: 1.8; margin: 0 0 36px; }

.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 56px; margin: 0 0 36px; }
.contact dt {
  font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 10px;
}
.contact dd { margin: 0; font: 600 23px/1.3 var(--serif); }
.contact a { color: var(--terra); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.contact a:hover { border-color: var(--terra); }

/* Pie */
.foot { padding: 48px 0 56px; text-align: center; }
.foot img { height: 72px; width: auto; margin: 0 auto 14px; }
.foot__name { font: 600 22px/1 var(--serif); letter-spacing: .2em; color: var(--terra); margin: 0 0 14px; }
.foot__name span { font-weight: 500; font-size: 17px; letter-spacing: .22em; color: var(--gold-text); text-transform: uppercase; margin-left: .3em; }
.foot__links { display: flex; justify-content: center; gap: 28px; margin: 14px 0; }
.foot__links a { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); text-decoration: none; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__meta { font-size: 14px; color: var(--muted); margin: 4px 0; }

@media (max-width: 760px) {
  nav a:not(.nav__cta) { display: none; }
  .top__inner { height: 62px; }
  .brand img { height: 40px; }
  .hero { padding: 32px 0 48px; }
  .section { padding: 64px 0; }
  .card { padding: 32px 26px 24px; }
}
