/* YF Reformas: tasteskill direction: "place-carries-it", seed 340546015
   Type: Big Shoulders / Public Sans · Colour: tobacco & balcony-green, matched to reference photographs */

:root {
  --bg: #3f2510;
  --surface: #4c2d17;
  --ink: #ece6d6;
  --muted: #c3ab87;
  --accent: #434f27;
  --accent-ink: #ece6d6;

  --paper: #ece6d6;
  --paper-ink: #2b1a0e;

  --field-cream: #d9c9a3;
  --field-cream-ink: #2b1a0e;
  --field-ochre: #c6973d;
  --field-ochre-ink: #2b1a0e;
  --field-rust: #893f20;
  --field-rust-ink: #ece6d6;

  --font-display: "Big Shoulders", system-ui, sans-serif;
  --font-text: "Public Sans", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  --step-head: clamp(2.3rem, 1.1rem + 4.6vw, 4.6rem);
  --step-display: clamp(3.4rem, 1rem + 9vw, 7.6rem);
  --step-verb: clamp(4.2rem, 1rem + 15vw, 13rem);

  --margin: clamp(1.1rem, 3vw, 2.2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(5rem, 11vw, 11rem);
  --radius: 10px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --stagger-item: 70ms;

  --header-ink: var(--ink);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.92; text-wrap: balance; }
p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; }
section, footer, .service-row { scroll-margin-top: 1.75rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--field-ochre); outline-offset: 3px; }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

.wrap { padding-inline: var(--margin); }
.section { padding-block: calc(var(--section) / 2); }
.cover { width: 100%; height: 100%; object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: 0 1.6rem;
  background: var(--paper); color: var(--paper-ink);
  font-family: var(--font-text); font-weight: 600; font-size: var(--step-body);
  text-decoration: none; white-space: nowrap; border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:hover { background: var(--field-ochre); }
.button:active { transform: scale(0.96); }
.button--dark { background: var(--bg); color: var(--ink); }
.button--dark:hover { background: var(--accent); }

.link { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: opacity var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { opacity: 0.6; } }

.field { width: 100%; min-height: 3rem; padding: 0.75rem 0.95rem; background: var(--paper); color: var(--paper-ink); border: 0; font-size: max(1rem, var(--step-body)); }
.field::placeholder { color: #6b5a44; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal-group] > * { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); }
  .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
  .js [data-reveal-group].is-in > *:nth-child(1) { transition-delay: 0ms; }
  .js [data-reveal-group].is-in > *:nth-child(2) { transition-delay: 80ms; }
  .js [data-reveal-group].is-in > *:nth-child(3) { transition-delay: 160ms; }
  .js [data-reveal-group].is-in > *:nth-child(4) { transition-delay: 240ms; }
  .js [data-reveal-group].is-in > *:nth-child(5) { transition-delay: 320ms; }
  .js .shutter { overflow: hidden; }
  .js .shutter img { transform: scale(1.14); transition: transform 1600ms var(--ease-soft); }
  .js .shutter.is-in img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- mark + skip link ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--paper-ink); padding: 1rem; z-index: 100; }
.skip-link:focus { left: var(--margin); top: var(--margin); }

.mark {
  position: fixed; top: 1.4rem; left: var(--margin); z-index: 40;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em;
  color: var(--header-ink); text-decoration: none;
  opacity: 0; transition: color var(--t-ui) ease, opacity var(--t-ui) ease;
  pointer-events: none;
}
.mark.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- side menu ---------- */
.menu-toggle {
  position: fixed; top: 1.1rem; right: 1.1rem; z-index: 60;
  width: 3rem; height: 3rem; border-radius: 999px;
  background: var(--field-ochre); color: var(--field-ochre-ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-hover) var(--ease-out);
}
.menu-toggle:hover { transform: scale(1.08); }
.menu-toggle-bars { position: relative; width: 20px; height: 14px; display: block; }
.menu-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease, top var(--t-ui) var(--ease-out);
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 6px; }
.menu-toggle-bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 55; background: rgba(20,11,4,0.55);
  opacity: 0; transition: opacity var(--t-ui) ease;
}
.menu-overlay.is-open { opacity: 1; }

.side-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 58;
  width: min(380px, 86vw); background: var(--bg); color: var(--ink);
  padding: 1.6rem clamp(1.4rem, 3vw, 2rem) 2rem;
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%); transition: transform var(--t-reveal) var(--ease-out);
}
.side-menu.is-open { transform: translateX(0); }
.side-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.side-menu-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.menu-close { font-size: 2rem; line-height: 1; width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center; }
.side-menu-list a {
  display: block; padding: 0.65rem 0; font-size: 1.15rem; text-decoration: none;
  transition: color var(--t-hover) ease, padding-left var(--t-hover) var(--ease-out);
}
.side-menu-list a:hover { color: var(--field-ochre); padding-left: 0.3rem; }
.side-menu-list--sub a { font-size: 1.05rem; color: var(--muted); }
.side-menu-list--sub a:hover { color: var(--field-ochre); }
.side-menu-group { font-size: var(--step-small); text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.6; margin: 1.6rem 0 0.2rem; }
.side-menu-cta { margin-top: auto; padding-top: 1.6rem; }
.side-menu { box-shadow: -24px 0 48px rgba(20,11,4,0.35); } /* taste-skill-ignore: real menu overlay, shadow allowed on what truly floats */

.whatsapp-fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40;
  width: 3.4rem; height: 3.4rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--field-ochre); color: var(--field-ochre-ink);
  transition: transform var(--t-hover) var(--ease-out);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 1.6rem; height: 1.6rem; }

/* =======================================================================
   HERO · "Swatch column beside the view"
   ======================================================================= */
.hero { padding: 10px; }
.hero-frame {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  height: calc(100svh - 20px);
}
.hero-photo {
  grid-column: 1 / 11; position: relative; overflow: hidden; border-radius: 12px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,15,6,0.55) 0%, rgba(26,15,6,0.08) 30%, rgba(26,15,6,0) 55%, rgba(26,15,6,0.5) 100%); /* taste-skill-ignore: neutral scrim over a photo, for the headline's contrast only */
}
.hero-wordmark {
  position: absolute; top: 28px; left: 28px; z-index: 2;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: #fff; letter-spacing: 0.01em;
}
.hero-headline {
  position: absolute; top: 12%; left: 0; right: 0; z-index: 2;
  text-align: center; color: #fff;
  font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.01em;
}
.hero-headline span { display: block; }
.hero-sub {
  position: absolute; left: 28px; bottom: 36px; z-index: 2; max-width: 30ch;
  color: #fff; font-size: clamp(0.95rem, 1.3vw, 1.1rem); font-weight: 400;
}
.hero-cta {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 2;
}
.hero-swatches {
  grid-column: 11 / 13; display: flex; flex-direction: column;
}
.hero-swatches a {
  flex: 1; display: flex; align-items: flex-start; padding: 20px;
  font-size: var(--step-small); font-weight: 600; text-decoration: none;
  transition: filter var(--t-hover) ease;
}
.hero-swatches a:hover { filter: brightness(1.12); }
.hero-swatches a:nth-child(1) { background: var(--field-cream); color: var(--field-cream-ink); }
.hero-swatches a:nth-child(2) { background: var(--field-ochre); color: var(--field-ochre-ink); }
.hero-swatches a:nth-child(3) { background: var(--accent); color: var(--accent-ink); }
.hero-swatches a:nth-child(4) { background: var(--field-rust); color: var(--field-rust-ink); }
.hero-swatches a:nth-child(5) { background: var(--bg); color: var(--ink); }

@media (max-width: 62em) {
  .hero { padding: 8px; }
  .hero-frame { display: block; height: auto; }
  .hero-photo { height: 64svh; border-radius: 10px; }
  .hero-headline { top: 14%; font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-sub { display: none; }
  .hero-cta { bottom: 24px; }
  .hero-swatches { display: flex; flex-direction: row; flex-wrap: wrap; }
  .hero-swatches a { flex: 1 1 50%; min-height: 52px; padding: 14px 16px; font-size: 0.95rem; }
}

/* =======================================================================
   TESTIMONIALS
   ======================================================================= */
.testimonials { background: var(--bg); color: var(--ink); }
.testimonials h2 { font-size: var(--step-head); max-width: 14ch; }
.testi-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.testi-featured blockquote, .testi-stack blockquote { margin: 0; }
.testi-featured p { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.35; max-width: 30ch; }
.testi-stack { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); }
.testi-stack p { font-size: 1.1rem; line-height: 1.45; max-width: 40ch; }
.testi-stars { color: var(--field-ochre); letter-spacing: 0.12em; font-size: 0.95rem; }
.testi-name { display: block; font-size: var(--step-small); font-style: normal; color: var(--muted); margin-top: 0.9rem; }
.testi-note { font-size: 0.72rem; color: var(--muted); margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 60ch; }

@media (max-width: 62em) {
  .testimonials h2 { max-width: 100%; }
  .testi-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .testi-featured p { font-size: 1.5rem; max-width: 100%; }
}

/* =======================================================================
   ABOUT (La zona) · "Wide photo, colour tile, facts"
   ======================================================================= */
.about { background: var(--field-cream); color: var(--field-cream-ink); }
.about-head { font-size: var(--step-head); max-width: 10ch; }
.about-lead { font-size: var(--step-lead); line-height: 1.35; max-width: 42ch; margin-top: 1.5rem; }
.about-mosaic {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.about-photo { grid-column: 1 / 9; position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-caption {
  position: absolute; right: 0; top: 0; max-width: 320px;
  background: var(--paper); color: var(--paper-ink);
  padding: 20px; font-size: var(--step-small); line-height: 1.5;
}
.about-tile { grid-column: 9 / 13; background: var(--accent); color: var(--accent-ink); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.about-tile svg { width: 100%; height: auto; max-height: 150px; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-top: 20px; }
.about-fact dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; }
.about-fact dd { font-size: 0.92rem; margin-top: 2px; font-weight: 600; }

@media (max-width: 62em) {
  .about-head { font-size: clamp(2.4rem, 9vw, 3rem); max-width: 100%; }
  .about-lead { font-size: 1.15rem; }
  .about-mosaic { display: block; margin-top: 2.5rem; }
  .about-photo { aspect-ratio: 4 / 3; border-radius: 8px; }
  .about-photo-caption { position: static; max-width: none; margin-top: 0; }
  .about-tile { margin-top: 16px; aspect-ratio: 3 / 2; }
  .about-facts { grid-template-columns: 1fr 1fr; }
}

/* =======================================================================
   SERVICES (Servicios) · "Rows with margin photographs"
   ======================================================================= */
.services { background: var(--field-ochre); color: var(--field-ochre-ink); }
.services-head {
  font-size: clamp(2.4rem, 1rem + 5vw, 4.8rem); max-width: 19ch;
  min-height: 50svh; display: flex; align-items: center;
}
.service-row {
  display: grid; grid-template-columns: 1fr minmax(180px, 320px); gap: var(--gutter);
  align-items: start; padding-block: clamp(2.4rem, 5.5vw, 4rem);
  text-decoration: none; color: inherit; transition: background var(--t-hover) ease;
}
.service-row:nth-of-type(odd) { background: rgba(43,26,14,0.07); }
.service-row:hover { background: rgba(43,26,14,0.14); }
.service-row:hover .service-link { text-decoration-color: currentColor; }
.service-title { font-size: clamp(1.7rem, 2.6vw, 2.6rem); }
.service-copy { font-size: var(--step-body); max-width: 36ch; margin-top: 0.8rem; }
.service-link { display: inline-block; margin-top: 0.7rem; font-size: var(--step-small); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
.service-photo { border-radius: 8px; overflow: hidden; justify-self: end; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-row:nth-child(2) .service-photo { aspect-ratio: 4 / 5; width: 220px; }
.service-row:nth-child(3) .service-photo { aspect-ratio: 3 / 2; width: 280px; }
.service-row:nth-child(4) .service-photo { aspect-ratio: 1 / 1; width: 170px; }
.service-row:nth-child(5) .service-photo { aspect-ratio: 4 / 5; width: 200px; }
.service-row:nth-child(6) .service-photo { aspect-ratio: 3 / 2; width: 260px; }
.service-row:nth-child(7) .service-photo { aspect-ratio: 1 / 1; width: 190px; }

@media (max-width: 62em) {
  .services-head { min-height: 40svh; font-size: clamp(2.6rem, 11vw, 3.4rem); max-width: 100%; }
  .service-row { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 2rem; }
  .service-photo { justify-self: start; width: 100% !important; aspect-ratio: 16/10 !important; }
}

/* =======================================================================
   CALCULATOR (the live thing)
   ======================================================================= */
.calc { background: var(--accent); color: var(--accent-ink); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.calc-head { font-size: var(--step-head); max-width: 11ch; }
.calc-lead { font-size: var(--step-body); max-width: 40ch; margin-top: 1.2rem; color: var(--muted); }
.calc-panel { background: var(--paper); color: var(--paper-ink); padding: clamp(1.4rem, 3vw, 2.2rem); }
.calc-group { margin-bottom: 1.4rem; }
.calc-group legend { font-size: var(--step-small); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 0.7rem; opacity: 0.8; }
.calc-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.calc-chip { position: relative; }
.calc-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.calc-chip label {
  display: inline-flex; align-items: center; padding: 0.55rem 0.9rem;
  background: #ded2b0; font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: background var(--t-hover) ease, color var(--t-hover) ease;
}
.calc-chip input:checked + label { background: var(--bg); color: var(--ink); }
.calc-chip input:focus-visible + label { outline: 2px solid var(--bg); outline-offset: 2px; }
.calc-result { margin-top: 1.8rem; padding-top: 1.6rem; }
.calc-result-label { font-size: var(--step-small); text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; }
.calc-preview { font-size: 1.15rem; font-weight: 600; line-height: 1.4; margin-top: 0.4rem; max-width: 42ch; }
.calc-result-note { font-size: var(--step-small); margin-top: 0.8rem; max-width: 42ch; color: #5a4a35; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.calc-actions .button { flex: 1 1 auto; }

@media (max-width: 30em) {
  .calc-actions { flex-direction: column; }
}

@media (max-width: 62em) {
  .calc-grid { display: block; }
  .calc-head { font-size: clamp(2.4rem, 10vw, 3rem); max-width: 100%; }
  .calc-panel { margin-top: 2rem; }
}

/* =======================================================================
   PROCESS (El proceso) · "One verb at a time"
   ======================================================================= */
.process { position: relative; }
.process-panel { height: 100svh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.process-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.process-panel::after { content: ""; position: absolute; inset: 0; background: rgba(20,11,4,0.32); }
.process-verb-wrap { position: relative; z-index: 2; text-align: center; padding-inline: var(--margin); }
.process-verb {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: var(--step-verb); line-height: 0.85; letter-spacing: -0.01em; color: #fff;
}
.process-sentence {
  position: absolute; left: var(--margin); bottom: 1.6rem; z-index: 2; max-width: 34ch;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem); color: #fff;
  background: rgba(20,11,4,0.42); padding: 0.6rem 0.9rem;
}
.process-count {
  position: absolute; right: var(--margin); bottom: 1.6rem; z-index: 2;
  font-size: var(--step-small); color: #fff; opacity: 0.85;
}
@media (max-width: 62em) {
  .process-verb { font-size: clamp(2.6rem, 1rem + 10vw, 4rem); }
  .process-sentence { right: 4.6rem; max-width: none; bottom: 1.2rem; }
  .process-count { display: none; }
}

/* =======================================================================
   GALLERY (El barrio) · "Photographs gathered round a heading"
   ======================================================================= */
.gallery { background: var(--field-rust); color: var(--field-rust-ink); min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; }
.gallery-inner { position: relative; width: 100%; padding-block: 4rem; }
.gallery-head-wrap { max-width: 640px; margin: 0 auto; text-align: center; position: relative; z-index: 3; }
.gallery-head { font-size: clamp(2rem, 2.8vw, 2.6rem); }
.gallery-sub { font-size: var(--step-body); margin-top: 1rem; max-width: 46ch; margin-inline: auto; color: #f1ddc9; }
.gallery-link { display: inline-block; margin-top: 1.1rem; font-weight: 600; }
.gallery-photos { position: absolute; inset: 0; z-index: 1; }
.gallery-photo { position: absolute; width: 180px; aspect-ratio: 9 / 10; overflow: hidden; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .gallery-photo.drift { animation: photo-float 7.5s ease-in-out infinite; }
  .gallery-photo.drift:nth-of-type(2) { animation-duration: 8.6s; animation-delay: -1.4s; }
  .gallery-photo.drift:nth-of-type(3) { animation-duration: 6.4s; animation-delay: -3.1s; }
  .gallery-photo.drift:nth-of-type(4) { animation-duration: 9.2s; animation-delay: -0.6s; }
  .gallery-photo.drift:nth-of-type(5) { animation-duration: 7.1s; animation-delay: -4.3s; }
  .gallery-photo.drift:nth-of-type(6) { animation-duration: 8.1s; animation-delay: -2.5s; }
}
@keyframes photo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 62em) {
  .gallery { min-height: auto; }
  .gallery-inner { padding-block: 3rem; }
  .gallery-head { font-size: 1.9rem; }
  .gallery-photos { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 2rem; }
  .gallery-photo { position: static !important; width: 28%; }
}

/* =======================================================================
   SERVICE PAGE — hero, "qué incluye", "por qué YF", "otros servicios"
   ======================================================================= */
.svc-hero { position: relative; height: 92svh; min-height: 560px; overflow: hidden; }
.svc-hero img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,11,4,0.72) 0%, rgba(20,11,4,0.15) 55%, rgba(20,11,4,0.35) 100%); } /* taste-skill-ignore: neutral scrim over the hero photo, for the heading's contrast only */
.svc-hero-content { position: absolute; left: var(--margin); right: var(--margin); bottom: clamp(2rem, 6vw, 4rem); z-index: 2; color: #fff; }
.svc-hero-content h1 { font-size: var(--step-display); line-height: 0.9; max-width: 14ch; }
.svc-hero-lead { margin-top: 1.1rem; max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; color: #fff; }
.svc-hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }

.svc-includes { background: var(--field-cream); color: var(--field-cream-ink); }
.svc-includes h2 { font-size: var(--step-head); max-width: 14ch; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.svc-list h3 { font-family: var(--font-text); text-transform: none; font-weight: 600; font-size: 1.2rem; }
.svc-list p { font-size: var(--step-body); margin-top: 0.5rem; max-width: 36ch; }
.svc-aside { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; margin-top: clamp(3rem, 6vw, 4.5rem); }
.svc-aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.svc-aside p { font-size: var(--step-small); max-width: 34ch; }

.svc-why { background: var(--accent); color: var(--accent-ink); }
.svc-why h2 { font-size: var(--step-head); max-width: 10ch; }
.svc-why-list { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.svc-why-list p { font-size: var(--step-lead); line-height: 1.4; max-width: 28ch; }

.svc-other { background: var(--bg); color: var(--ink); }
.svc-other h2 { font-size: var(--step-head); max-width: 12ch; }
.svc-other-list { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.svc-other-list a { font-size: 1.1rem; }

@media (max-width: 62em) {
  .svc-hero-content h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); max-width: 100%; }
  .svc-hero-lead { font-size: 1.15rem; }
  .svc-list { grid-template-columns: 1fr; gap: 1.8rem; }
  .svc-aside { grid-template-columns: 1fr; }
  .svc-why-list { grid-template-columns: 1fr; gap: 1.6rem; }
  .svc-includes h2, .svc-why h2, .svc-other h2 { max-width: 100%; }
}

/* =======================================================================
   CONTACT (Contacto) · "Visit card on a photograph"
   ======================================================================= */
.contact { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.contact-photo { position: absolute; inset: 0; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.contact-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,11,4,0.5), rgba(20,11,4,0) 45%); } /* taste-skill-ignore: neutral scrim over a photo, for the card's contrast only */
.contact-card {
  position: absolute; top: 60px; right: 60px; z-index: 2;
  width: 400px; max-width: calc(100vw - 2 * var(--margin));
  background: var(--paper); color: var(--paper-ink); padding: 32px;
}
.contact-card h2 { font-size: 1.9rem; }
.contact-card .addr { margin-top: 1rem; font-size: var(--step-small); line-height: 1.5; }
.contact-hours { margin-top: 1rem; width: 100%; font-size: var(--step-small); }
.contact-hours tr td:first-child { color: #5a4a35; }
.contact-hours tr td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.contact-card .tel { display: block; margin-top: 1rem; font-size: 1.05rem; font-weight: 600; text-decoration: none; }
.contact-form { margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.contact-form textarea { min-height: 4.5rem; resize: vertical; }
.contact-card .button { width: 100%; margin-top: 0.2rem; }
.contact-note { font-size: 0.72rem; color: #6b5a44; margin-top: 0.6rem; }
.contact-status:empty { display: none; }
.contact-status { font-size: 0.85rem; font-weight: 600; margin-top: 0.3rem; }

@media (max-width: 62em) {
  .contact { height: auto; min-height: auto; }
  .contact-photo { position: relative; height: 62svh; }
  .contact-photo::after { background: linear-gradient(to top, rgba(20,11,4,0.55), rgba(20,11,4,0) 55%); } /* taste-skill-ignore: neutral scrim, mobile crop */
  .contact-card { position: static; width: auto; margin: -70px var(--margin) 0; padding: 24px; }
}

/* =======================================================================
   FOOTER
   ======================================================================= */
.site-footer { background: var(--bg); color: var(--ink); padding-block: clamp(3rem, 8vw, 6rem) 2.4rem; }
.footer-name { font-size: clamp(3rem, 12vw, 8rem); line-height: 0.85; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--gutter) clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.footer-col h3 { font-family: var(--font-text); text-transform: none; font-weight: 600; font-size: var(--step-small); opacity: 0.7; margin-bottom: 0.8rem; }
.footer-col a, .footer-col p { display: block; font-size: var(--step-body); margin-bottom: 0.4rem; text-decoration: none; }
.footer-bottom { margin-top: clamp(3rem, 6vw, 5rem); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.credits { font-size: 0.72rem; color: var(--muted); max-width: 72ch; line-height: 1.6; }
.credits a { color: var(--muted); }
.legal { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 62em) {
  .footer-grid { display: block; }
  .footer-col { margin-bottom: 1.8rem; }
}

/* ---------- headings on every section ---------- */
.eyebrow-free h2 { margin-bottom: 0; }

/* =======================================================================
   404
   ======================================================================= */
.error-page { background: var(--bg); color: var(--ink); min-height: 80svh; display: flex; align-items: center; }
.error-page .wrap { text-align: center; }
.error-page h1 { font-size: var(--step-display); }
.error-page p { font-size: var(--step-lead); max-width: 46ch; margin: 1.2rem auto 0; color: var(--muted); }
.error-page .button { margin-top: 2rem; }
