@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --paper: #fffaf3;
  --linen: #f6eee4;
  --tint: #efe0d2;
  --ink: #322722;
  --muted: #57443e;
  --wine: #712739;
  --deep: #441c29;
  --thread: #93623c;
  --line: #ccb8a7;
  --white-line: #b8838a;
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --edge: clamp(1rem, 4vw, 4rem);
  --wrap: 78rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .99; color: inherit; }
h2 { font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -.023em; }
h3 { font-size: clamp(1.85rem, 3vw, 2.5rem); }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
section[tabindex]:focus, body:focus, main:focus { outline: none; }
.wrap { width: min(100% - var(--edge) * 2, var(--wrap)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: absolute; z-index: 10; inset: .75rem auto auto .75rem; padding: .6rem 1rem; background: var(--paper); color: var(--deep); }
.button, .text-link, .site-nav a, .wordmark, .menu-toggle {
  display: inline-flex; min-height: 2.75rem; align-items: center; gap: .65rem;
}
.button, .menu-toggle { justify-content: center; }
.button {
  min-height: 3.35rem; padding: .75rem 1.15rem;
  text-align: center; text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.3;
  border: 1px solid var(--wine); border-radius: 2px; background: var(--wine); color: white;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.button:hover, .button:active { background: var(--deep); border-color: var(--deep); }
.button:focus-visible { outline-color: var(--deep); }
.button:active { transform: translateY(1px); }
.button--outline { color: var(--deep); background: var(--linen); border-color: var(--deep); }
.button--outline:hover, .button--outline:active { color: #fff; }
.button--compact { min-height: 2.8rem; padding-inline: .88rem; }
.text-link { text-underline-offset: .3em; font-weight: 700; }
.text-link:hover { text-decoration-thickness: 2px; }
.wordmark {
  text-decoration: none; font-family: var(--display); font-size: clamp(1.82rem, 3vw, 2.26rem);
  line-height: 1; white-space: nowrap; letter-spacing: -.02em;
}
.site-header { position: relative; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); color: var(--deep); }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.site-nav { display: flex; align-items: center; gap: clamp(.75rem, 2.4vw, 2rem); }
.site-nav a { padding-inline: .22rem; font-size: .95rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.menu-toggle { display: none; }
.hero { display: grid; position: relative; isolation: isolate; min-height: min(44.5rem, calc(100svh - 4.5rem)); background: var(--linen); overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: clamp(2.15rem, 8vw, 8rem); z-index: 1; }
.hero-image { position: absolute; inset: 0 0 0 max(35%, calc(50% - 11rem)); }
.hero-image picture, .hero-image img { width: 100%; height: 100%; }
.hero-image img { object-fit: cover; object-position: 53% 50%; }
.hero-image::after {
  position: absolute; z-index: 0; inset: 0;
  content: ""; pointer-events: none;
  background: linear-gradient(90deg, var(--linen) 0%, rgba(246,238,228,.97) 8%, rgba(246,238,228,.57) 26%, transparent 49%);
}
.hero-image figcaption, .pattern-image figcaption {
  position: absolute; z-index: 1; right: .75rem; bottom: .75rem; padding: .24rem .56rem;
  background: var(--paper); color: var(--deep); font-size: .74rem; line-height: 1.35;
}
.locator { color: var(--wine); font-weight: 700; font-size: .91rem; }
.hero h1 { color: var(--deep); font-size: clamp(4.35rem, 8.4vw, 8.25rem); letter-spacing: -.035em; max-width: 11ch; margin-block: .17em .18em; }
.hero-description { max-width: 31ch; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.45rem; }

.guide { padding-block: clamp(1.6rem, 4.4vw, 3.45rem); background: var(--tint); color: var(--deep); }
.guide-inner, .split, .practice-inner, .faq-inner, .contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 7vw, 6rem); align-items: center; }
.guide h2 { font-size: clamp(2.35rem, 4.2vw, 3.65rem); margin-bottom: .45rem; }
.guide p { max-width: 45ch; }
.choices { padding: 0; margin: 0; border: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.choices legend { padding: 0; margin-bottom: .42rem; font-size: .9rem; font-weight: 700; }
.choices label { position: relative; cursor: pointer; }
.choices input {
  position: absolute; opacity: 0; cursor: pointer; inset: 0; width: 100%; height: 100%; margin: 0;
}
.choices span {
  display: flex; align-items: center; min-height: 2.75rem; padding: .4rem .74rem; border: 1px solid var(--thread);
  background: var(--paper); transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.choices input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: 3px; }
.choices input:checked + span { color: white; background: var(--wine); border-color: var(--wine); }
.guide-link { margin-top: .24rem; }

.section { padding-block: clamp(3rem, 8.5vw, 7rem); }
.split p { margin-top: .95rem; max-width: 47ch; color: var(--muted); }
.split .text-link { margin-top: .55rem; }
.pattern-image { position: relative; background: var(--linen); }
.pattern-image img { aspect-ratio: 1.38; object-fit: cover; }
.about h2 { max-width: 11ch; color: var(--deep); }
.techniques { background: var(--linen); color: var(--deep); }
.section-intro { margin-top: .75rem; color: var(--muted); }
.technique-grid, .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 5vw, 4rem); margin-top: clamp(1.45rem, 4.6vw, 3.25rem); }
.technique-grid article { padding-top: 1.1rem; border-top: 1px dashed var(--thread); }
.technique-grid p, .steps p { margin-top: .55rem; max-width: 32ch; }
.practice, .contact { background: var(--deep); color: var(--paper); }
.practice { padding-block: clamp(2.1rem, 6vw, 4.1rem); }
.practice h2, .contact h2 { max-width: 12ch; }
.practice .button, .contact .button { margin-top: .9rem; }
.button--light { background: var(--paper); border-color: var(--paper); color: var(--deep); }
.button--light:hover, .button--light:active { background: var(--tint); border-color: var(--tint); color: var(--deep); }
.button--light:focus-visible { outline-color: var(--paper); }
.process { background: var(--linen); color: var(--deep); }
.steps { margin-bottom: 0; padding: 0; list-style: none; counter-reset: etapas; }
.steps li { counter-increment: etapas; padding-top: 1rem; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(etapas); color: var(--wine); font-weight: 700; display: block; margin-bottom: .65rem; }
.faq h2 { align-self: start; max-width: 12ch; color: var(--deep); }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary {
  display: flex; justify-content: space-between; align-items: center; min-height: 3.7rem;
  gap: 1rem; cursor: pointer; list-style: none; font-weight: 700; color: var(--deep); padding-block: .65rem;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font-size: 1.55rem; color: var(--wine); line-height: 1; }
.questions details[open] summary::after { content: "−"; }
.questions details > div { padding: 0 1.8rem .95rem 0; color: var(--muted); }
.official { padding-block: 1.15rem; background: var(--tint); color: var(--deep); }
.official-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .35rem 1rem; }
.contact h2 { margin-bottom: .7rem; }
.visit { border-left: 1px dashed var(--white-line); padding-left: clamp(1.3rem, 4vw, 3.5rem); }
.visit address { font-style: normal; margin-block: .7rem .2rem; }
.site-footer { padding-block: .8rem; background: #30151d; color: var(--paper); }
@keyframes entrance {
  from { opacity: .84; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-image img { animation: entrance .68s ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  button, .button, .choices span { transition: none; }
  .button:active { transform: none; }
}
@media (max-width: 58rem) {
  .hero h1 { font-size: clamp(4.25rem, 9vw, 6rem); }
  .hero-image { inset-inline-start: 32%; }
  .hero-image::after { background: linear-gradient(90deg, var(--linen), rgba(246,238,228,.93) 12%, rgba(246,238,228,.4) 33%, transparent 55%); }
}
@media (max-width: 42rem) {
  .masthead { position: relative; flex-wrap: wrap; min-height: 3.85rem; gap: 0; }
  .masthead > .button { display: none; }
  .menu-toggle:not([hidden]) {
    display: inline-flex; padding-inline: .2rem; color: var(--deep); background: none;
    border: 0; font-size: .94rem; font-weight: 700; cursor: pointer;
  }
  .menu-toggle span { width: .92rem; height: .6rem; border-block: 1px solid currentColor; }
  .menu-toggle[aria-expanded="true"] span { background: currentColor; height: .06rem; }
  .site-nav { flex-basis: 100%; flex-wrap: wrap; gap: .1rem .85rem; }
  .enhanced-menu .site-nav {
    position: absolute; top: 100%; inset-inline: calc(var(--edge) * -1);
    flex-direction: column; align-items: stretch; padding: .45rem var(--edge);
    background: var(--paper); border-block: 1px solid var(--line); 
  }
  .enhanced-menu .site-nav a { padding-inline: .4rem; }
  .hero { grid-template-rows: auto auto; min-height: 0; }
  .hero-inner { grid-row: 1; padding-block: 1.85rem 1.35rem; }
  .hero h1 { font-size: clamp(3.4rem, 11vw, 5.45rem); max-width: 12ch; margin-block: .13em .2em; }
  .hero-description { max-width: 34ch; }
  .desktop-break { display: none; }
  .hero-image { grid-row: 2; position: relative; inset: auto; height: clamp(13.5rem, 62vw, 23rem); }
  .hero-image::after { display: none; }
  .hero-image img { object-position: 50% 51%; }
  .actions { gap: .55rem; margin-top: 1rem; }
  .actions .button { min-height: 2.95rem; gap: .34rem; padding-inline: .62rem; font-size: .89rem; }
  .guide-inner, .split, .practice-inner, .faq-inner, .contact-inner, .technique-grid, .steps { grid-template-columns: 1fr; }
  .split figure { grid-row: 2; }
  .technique-grid, .steps { gap: 1.35rem; }
  .visit { border-left: 0; padding: 1.25rem 0 0; border-top: 1px dashed var(--white-line); }
}
@media (max-width: 22rem) {
  .hero h1 { font-size: 3.28rem; }
  .actions .button { padding-inline: .52rem; font-size: .85rem; }
}
