/* ─────────────────────────────────────────────────────────────────────
   Banquetería Fernández — lado Empresas
   /empresas/ y las páginas de /servicios/. HTML, CSS y JS sin build.

   Identidad: espresso, crema y dorado. Cormorant Garamond en titulares,
   Inter en texto. Sin numeraciones decorativas ni cifras gigantes: los
   únicos números que se ven son precios, fechas y datos reales.
   ───────────────────────────────────────────────────────────────────── */

/* ── Fuentes (servidas desde el propio sitio) ─────────────────────────── */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-normal-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-normal-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-italic-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-italic-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-normal-400-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-normal-400-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ───────────────────────────────────────────────────────────── */

:root {
  --espresso: #2a2118;
  --espresso-soft: #3d3122;
  --espresso-deep: #1f1812;
  --gold: #c9a86a;
  --gold-light: #e5d0a8;
  --gold-ink: #8a6a2f;          /* dorado legible sobre crema (4.8:1) */
  --gold-rule: #a88442;         /* trazos dorados visibles sobre crema */
  --cream: #fffaf2;
  --cream-warm: #f7f0e0;
  --cream-line: #ece4d4;
  --line: #d8cdb9;
  --text: #2a2118;
  --text-soft: #5a4a36;
  --text-muted: #786748;        /* 5.3:1 sobre crema */
  --on-dark: #fffaf2;
  --on-dark-soft: rgba(255, 250, 242, .8);
  --on-dark-muted: rgba(255, 250, 242, .66);
  --rule-dark: rgba(229, 208, 168, .2);
  --wa: #246b45;
  --wa-hover: #195437;

  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --head-h: 76px;
  --radius: 3px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --h1: clamp(2.75rem, 1.5rem + 4.2vw, 5.375rem);
  --h2: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem);
  --h3: clamp(1.75rem, 1.35rem + 1.2vw, 2.5rem);
  --section: clamp(84px, 10vw, 136px);
}

/* ── Base ─────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 12px);
  scrollbar-color: #bda77f var(--cream-warm);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html:has(.viewer[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--espresso);
  text-wrap: balance;
}
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold-light); color: var(--espresso); }
.on-dark ::selection { background: var(--gold); color: var(--espresso); }

:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--gold-light); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: var(--espresso);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.i { width: 1.25em; height: 1.25em; flex: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }

/* ── Encabezados de sección ───────────────────────────────────────────── */

.sec-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 5.5vw, 72px);
}
.sec-head h2 {
  font-size: var(--h2);
  line-height: 1.04;
  letter-spacing: -0.012em;
  max-width: 17ch;
}
.sec-lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 44ch;
}
.on-dark h2, .on-dark h3 { color: var(--on-dark); }
.on-dark .sec-lede { color: var(--on-dark-soft); }

@media (min-width: 900px) {
  .sec-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: end;
  }
  .sec-head--split .sec-lede { padding-bottom: .35em; }
}

/* ── Botones y enlaces ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:disabled { opacity: .6; cursor: progress; }

.btn--dark { background: var(--espresso); color: var(--cream); }
.btn--dark:hover { background: var(--espresso-soft); }
.btn--line { border-color: rgba(42, 33, 24, .32); color: var(--espresso); }
.btn--line:hover { border-color: var(--espresso); background: rgba(42, 33, 24, .04); }
.btn--gold { background: var(--gold); color: var(--espresso); }
.btn--gold:hover { background: var(--gold-light); }
.btn--line-light { border-color: rgba(255, 250, 242, .36); color: var(--on-dark); }
.btn--line-light:hover { border-color: var(--on-dark); background: rgba(255, 250, 242, .06); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
/* El ícono va como máscara: cotizador.js reescribe el texto del botón
   mientras envía, y un SVG dentro del botón se perdería. */
.btn--wa::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.6a8.4 8.4 0 0 1-12.3 7.5L3.5 20.5l1.4-4.5a8.4 8.4 0 1 1 15.6-4.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.6a8.4 8.4 0 0 1-12.3 7.5L3.5 20.5l1.4-4.5a8.4 8.4 0 1 1 15.6-4.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.link {
  color: var(--espresso);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  transition: color .2s, text-decoration-color .2s;
}
.link:hover { text-decoration-color: currentColor; }
.on-dark .link { color: var(--gold-light); text-decoration-color: rgba(229, 208, 168, .45); }
.on-dark .link:hover { color: var(--on-dark); text-decoration-color: var(--on-dark); }

/* ── Encabezado del sitio ─────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-head.is-stuck {
  border-bottom-color: var(--cream-line);
  box-shadow: 0 12px 30px -26px rgba(42, 33, 24, .5);
}
.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--head-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--espresso);
  text-decoration: none;
}
.brand__crest { width: 24px; height: 37px; flex: none; fill: var(--espresso); color: var(--cream); }
.brand__name {
  font-family: var(--serif);
  font-size: 1.4375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand__side {
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--line);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.brand--light { color: var(--on-dark); }
.brand--light .brand__crest { fill: var(--on-dark); color: var(--espresso-deep); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 26px); list-style: none; }
.nav__list a,
.nav__side {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .2s;
}
.nav__list a::after,
.nav__side::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--gold-rule);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__list a:hover,
.nav__side:hover { color: var(--espresso); }
.nav__list a:hover::after,
.nav__side:hover::after { transform: scaleX(1); }
.nav__side::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  width: 1px;
  height: 18px;
  margin-top: -9px;
  background: var(--line);
}
.nav__cta { min-height: 44px; padding: 0 20px; }
.menu-btn { display: none; }

@media (max-width: 1099px) {
  :root { --head-h: 68px; }
  .brand__name { font-size: 1.3125rem; }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: none;
    color: var(--espresso);
    cursor: pointer;
  }
  .menu-btn__bars { position: relative; width: 22px; height: 14px; }
  .menu-btn__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .menu-btn__bars span:nth-child(1) { top: 0; }
  .menu-btn__bars span:nth-child(2) { top: 6.25px; }
  .menu-btn__bars span:nth-child(3) { top: 12.5px; }
  .menu-btn[aria-expanded='true'] .menu-btn__bars span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
  .menu-btn[aria-expanded='true'] .menu-btn__bars span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded='true'] .menu-btn__bars span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - var(--head-h));
    max-height: calc(100dvh - var(--head-h));
    overflow-y: auto;
    padding: 6px var(--gutter) 28px;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-line);
    box-shadow: 0 30px 40px -30px rgba(42, 33, 24, .4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s, transform .3s var(--ease), visibility 0s;
  }
  .nav__list { display: block; }
  .nav__list a,
  .nav__side {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--cream-line);
    font-size: 1.0625rem;
    color: var(--espresso);
  }
  .nav__list a::after,
  .nav__side::after,
  .nav__side::before { display: none; }
  .nav__cta { display: flex; width: 100%; min-height: 52px; margin-top: 20px; }
}

/* En teléfonos la marca se apila: nombre arriba, «Empresas» debajo. */
@media (max-width: 560px) {
  .brand {
    display: inline-grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    row-gap: 4px;
    align-items: center;
  }
  .brand__crest { grid-row: 1 / span 2; width: 22px; height: 34px; }
  .brand__name { grid-column: 2; align-self: end; font-size: 1.25rem; }
  .brand__side {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding: 0;
    border-left: 0;
    font-size: .6875rem;
    letter-spacing: .18em;
  }
}

/* ── Portada ──────────────────────────────────────────────────────────── */

.hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(72px, 9vw, 120px); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 40px);
  align-items: end;
}
.hero__title {
  grid-column: 1 / span 8;
  font-size: var(--h1);
  line-height: .98;
  letter-spacing: -0.022em;
}
.hero__aside { grid-column: 9 / -1; padding-bottom: .3rem; }
.hero__lede { color: var(--text-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.facts {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  list-style: none;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.facts li { display: flex; align-items: center; gap: 12px; }
.facts li::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--gold-rule);
  transform: rotate(45deg);
}

.hero__photo {
  grid-column: 1 / -1;
  margin-top: clamp(32px, 4vw, 52px);
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: var(--cream-warm);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 80%;
}

/* El único momento coreografiado: la mesa se «despliega» al cargar. */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: lay-table 1.5s var(--ease) both; }
  .hero__photo img { animation: settle 2.4s var(--ease) both; }
  .hero__title { animation: rise .9s var(--ease) both; }
  .hero__aside { animation: rise .9s .12s var(--ease) both; }
}
@keyframes lay-table { from { clip-path: inset(0 24% 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1099px) {
  .hero__title { grid-column: 1 / span 7; }
  .hero__aside { grid-column: 8 / -1; }
  .hero__photo { aspect-ratio: 5 / 2; }
}
@media (max-width: 899px) {
  .hero { padding-top: 0; }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero__photo {
    order: -1;
    margin: 0 calc(-1 * var(--gutter)) 28px;
    aspect-ratio: 4 / 3;
  }
  .hero__photo img { object-position: 60% 60%; }
  .hero__title { font-size: clamp(2.5rem, 9.6vw, 3.75rem); }
  .hero__aside { margin-top: 20px; padding: 0; }
  .hero__lede { max-width: 52ch; }
  .hero__actions .btn { flex: 1 1 auto; }
  .facts { display: flex; flex-wrap: wrap; gap: 6px 20px; }
}

/* ── Servicios: lista con foto que cambia ─────────────────────────────── */

.svc__list { position: relative; --svc-gap: clamp(32px, 5.5vw, 88px); }
.svc__item + .svc__item { margin-top: 48px; }
.svc__photo {
  margin-bottom: 22px;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--cream-warm);
}
.svc__photo img { width: 100%; height: 100%; object-fit: cover; }
.svc__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  align-items: start;
}
.svc__name {
  grid-column: 1;
  font-size: var(--h3);
  line-height: 1.06;
  letter-spacing: -0.01em;
  transition: color .3s;
}
.svc__name a { color: inherit; text-decoration: none; }
.svc__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.svc__name a:focus-visible { outline: none; }
.svc__item:has(a:focus-visible) .svc__body { outline: 2px solid var(--espresso); outline-offset: 6px; }
.svc__body p { grid-column: 1; margin-top: 12px; color: var(--text-soft); max-width: 50ch; }
.svc__go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--espresso);
  transition: background-color .3s, border-color .3s, color .3s;
}
.svc__go .i { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.svc__item:hover .svc__go,
.svc__item:focus-within .svc__go { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.svc__item:hover .svc__go .i { transform: translateX(2px); }

@media (min-width: 900px) {
  .svc__list { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--svc-gap); }
  .svc__item { grid-column: 1; }
  .svc__item + .svc__item { margin-top: 0; }
  .svc__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc((100% - var(--svc-gap)) * 5 / 11);
    margin: 0;
    aspect-ratio: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity .7s var(--ease);
  }
  .svc__photo img { transform: scale(1.045); transition: transform 1.6s var(--ease); }
  .svc__item.is-active .svc__photo { opacity: 1; }
  .svc__item.is-active .svc__photo img { transform: none; }
  .svc__body { padding: 32px 0 34px; border-top: 1px solid var(--line); }
  .svc__item:last-child .svc__body { border-bottom: 1px solid var(--line); }
  .svc__name { color: var(--text-muted); }
  .svc__item.is-active .svc__name { color: var(--espresso); }
}

/* ── Paquetes: la carta ───────────────────────────────────────────────── */

.pkg { background: var(--espresso); color: var(--on-dark); }
.pkg__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  border-top: 1px solid var(--rule-dark);
}
.pkg__item {
  position: relative;
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.6vw, 40px) 0;
  border-left: 1px solid var(--rule-dark);
}
.pkg__item:first-child { padding-left: 0; border-left: 0; }
.pkg__item:last-child { padding-right: 0; }
.pkg__item--featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.pkg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
.pkg__name {
  font-size: clamp(1.75rem, 1.4rem + .9vw, 2.25rem);
  line-height: 1.08;
  color: var(--on-dark);
}
.pkg__badge {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.pkg__price {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.375rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: lining-nums tabular-nums;
}
.pkg__from {
  margin-right: .15em;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--on-dark-soft);
}
.pkg__unit {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: .875rem;
  letter-spacing: .01em;
  color: var(--on-dark-muted);
}
.pkg__price--quote {
  font-size: clamp(1.5rem, 1.25rem + .7vw, 1.875rem);
  line-height: 1.15;
  max-width: 19ch;
}
.pkg__intro {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-dark);
  font-size: 1rem;
  color: var(--on-dark-soft);
}
.pkg__list { margin: 12px 0 30px; list-style: none; }
.pkg__list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--on-dark);
}
.pkg__list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 1.05em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}
.pkg__cta { justify-self: start; align-self: end; margin-bottom: 40px; }
.pkg__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-dark);
  color: var(--on-dark-soft);
}

@media (max-width: 899px) {
  .pkg__grid { grid-template-columns: 1fr; grid-template-rows: none; border-top: 0; }
  .pkg__item {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    padding: 32px 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule-dark);
  }
  .pkg__item--featured::before { left: 0; right: 0; }
  .pkg__cta { align-self: flex-start; }
}

/* ── Caso: Estación Mapocho ───────────────────────────────────────────── */

.case { background: var(--cream-warm); }
.case__photos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(170px, 21vw, 272px));
  gap: clamp(8px, 1.1vw, 14px);
}
.case__ph { overflow: hidden; background: var(--cream-line); }
.case__ph img { width: 100%; height: 100%; object-fit: cover; }
.case__ph--a { grid-column: 1 / span 8; grid-row: 1; }
.case__ph--a img { object-position: 50% 30%; }
.case__ph--b { grid-column: 9 / -1; grid-row: 1 / span 2; }
.case__ph--b img { object-position: 50% 32%; }
.case__ph--c { grid-column: 1 / span 8; grid-row: 2; }
.case__ph--c img { object-position: 50% 42%; }

.case__foot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(36px, 4vw, 56px);
}
.case__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  margin: 0;
}
.case__facts div { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.case__facts dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.case__facts dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--espresso);
}
.press__title {
  padding: 18px 0 6px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.press__list { list-style: none; }
.press__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--espresso);
  text-decoration: none;
}
.press__src { grid-column: 1; font-size: .8125rem; color: var(--text-muted); }
.press__hl {
  grid-column: 1;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.32;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: text-decoration-color .2s;
}
.press__list .i {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 20px;
  height: 20px;
  color: var(--gold-ink);
  transition: transform .35s var(--ease);
}
.press__list a:hover .press__hl { text-decoration-color: var(--gold-rule); }
.press__list a:hover .i { transform: translate(2px, -2px); }

@media (max-width: 899px) {
  .case__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .case__ph--a { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .case__ph--b,
  .case__ph--c { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 4; }
  .case__foot { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .case__facts { grid-template-columns: 1fr; }
  .case__facts dd { font-size: 1.375rem; }
}

/* ── Clientes ─────────────────────────────────────────────────────────── */

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line);
}
.clients__grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(112px, 11vw, 156px);
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.05rem + 1vw, 1.875rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: var(--espresso-soft);
}
.clients__grid li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }

@media (max-width: 699px) {
  .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients__grid li:not(:nth-child(3n)) { border-right: 0; }
  .clients__grid li:nth-child(odd) { border-right: 1px solid var(--line); }
  .clients__grid li { padding: 18px 14px; }
}

/* ── Galería y visor ──────────────────────────────────────────────────── */

.gallery { background: var(--espresso); color: var(--on-dark); }
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 28px;
  margin: calc(-1 * clamp(12px, 2vw, 32px)) 0 clamp(22px, 3vw, 34px);
}
.gallery__filters:empty { display: none; }
.gfilter {
  position: relative;
  padding: 10px 0;
  border: 0;
  background: none;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  cursor: pointer;
  transition: color .2s;
}
.gfilter::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.gfilter:hover,
.gfilter[aria-pressed='true'] { color: var(--on-dark); }
.gfilter[aria-pressed='true']::after { transform: scaleX(1); }

/* Filas justificadas: cada foto conserva su proporción, las fotos de una
   fila comparten alto y la fila llena el ancho. Con cualquier filtro o
   cantidad de fotos no quedan huecos; solo la última fila puede ser más corta. */
.gallery__grid {
  --row: clamp(150px, 19vw, 260px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1vw, 12px);
}
.gallery__grid::after { content: ''; flex: 1000 1 0; }
/* empresas.js quita el relleno cuando la última fila ya está casi completa. */
.gallery__grid.is-flush::after { display: none; }
.tile {
  --ar: 1;
  position: relative;
  display: block;
  flex: var(--ar) 1 calc(var(--row) * var(--ar));
  min-width: 0;
  overflow: hidden;
  background: var(--espresso-soft);
  cursor: zoom-in;
}
.tile--land { --ar: 1.3333; }
.tile--port { --ar: .75; }
.tile--sq { --ar: 1; }
.tile[hidden] { display: none; }
.tile img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
  object-fit: cover;
  transition: transform 1s var(--ease), opacity .4s;
}
.tile:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: no-preference) {
  .gallery__grid.is-swapping .tile:not([hidden]) { animation: tile-in .55s var(--ease) both; }
}
@keyframes tile-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.gallery__more { margin-top: clamp(28px, 3vw, 40px); text-align: center; }
.gallery__more[hidden] { display: none; }

@media (max-width: 899px) {
  .gallery__grid { --row: clamp(108px, 30vw, 180px); }
  .gallery__filters {
    flex-wrap: nowrap;
    gap: 24px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery__filters::-webkit-scrollbar { display: none; }
  .gfilter { flex: none; white-space: nowrap; }
}

.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  overflow: hidden;
}
.viewer::backdrop { background: rgba(20, 15, 11, .94); }
.viewer[open] {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  grid-template-rows: 76px minmax(0, 1fr) 40px;
  align-items: center;
  justify-items: center;
}
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] { animation: viewer-in .35s var(--ease); }
}
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
.viewer__fig {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
}
.viewer__img {
  min-height: 0;
  max-width: 100%;
  max-height: calc(100% - 3.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  transition: opacity .25s;
}
.viewer__img.is-loading { opacity: .35; }
.viewer__cap {
  max-width: 64ch;
  font-size: .9375rem;
  line-height: 1.5;
  text-align: center;
  color: var(--on-dark-soft);
}
.viewer__btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 250, 242, .24);
  border-radius: 50%;
  background: rgba(255, 250, 242, .06);
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.viewer__btn:hover { background: rgba(255, 250, 242, .14); border-color: var(--gold); }
.viewer__btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.viewer__btn .i { width: 22px; height: 22px; }
.viewer__btn[hidden] { display: none; }
.viewer__close { grid-column: 3; grid-row: 1; }
.viewer__prev { grid-column: 1; grid-row: 2; }
.viewer__next { grid-column: 3; grid-row: 2; }

@media (max-width: 699px) {
  .viewer[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 68px minmax(0, 1fr) 96px; }
  .viewer__fig { grid-column: 1 / -1; padding: 0 12px; }
  .viewer__close { grid-column: 2; justify-self: end; margin-right: 12px; }
  .viewer__prev { grid-column: 1; grid-row: 3; justify-self: end; margin-right: 10px; }
  .viewer__next { grid-column: 2; grid-row: 3; justify-self: start; margin-left: 10px; }
}

/* ── Nosotros ─────────────────────────────────────────────────────────── */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.about__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-warm); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__text h2 {
  max-width: 14ch;
  margin-bottom: 28px;
  font-size: var(--h2);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.about__text p { max-width: 54ch; color: var(--text-soft); }
.about__text .about__statement {
  max-width: 28ch;
  margin: 30px 0;
  padding: 28px 0;
  border-block: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem);
  font-style: italic;
  line-height: 1.28;
  color: var(--espresso);
}

@media (max-width: 899px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 1 / 1; }
}

/* ── Cómo trabajamos ──────────────────────────────────────────────────── */

.steps { background: var(--cream-warm); }
.steps__list {
  --steps-gap: clamp(28px, 4vw, 64px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--steps-gap);
  list-style: none;
}
/* Un riel une cada paso con el siguiente: la secuencia se lee sin números. */
.steps__list li { position: relative; padding-top: 46px; }
.steps__list li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 15px;
  right: calc(-1 * var(--steps-gap));
  height: 1px;
  background: var(--gold-rule);
}
.steps__list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--gold-rule);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--cream-warm);
}
.steps__list h3 {
  font-size: clamp(1.625rem, 1.25rem + 1vw, 2.125rem);
  line-height: 1.1;
}
.steps__list p { max-width: 32ch; margin-top: 10px; color: var(--text-soft); }

@media (max-width: 899px) {
  .steps__list { grid-template-columns: 1fr; row-gap: 36px; padding-left: 38px; }
  .steps__list li { padding-top: 0; }
  .steps__list li::before { top: 9px; left: -38px; }
  .steps__list li:not(:last-child)::after {
    top: 24px;
    bottom: -45px;
    left: -31px;
    right: auto;
    width: 1px;
    height: auto;
  }
}

/* ── Preguntas frecuentes ─────────────────────────────────────────────── */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: start;
}
.faq__head { position: sticky; top: calc(var(--head-h) + 32px); }
.faq__head h2 { font-size: var(--h2); line-height: 1.04; letter-spacing: -0.012em; }
.faq__head .sec-lede { margin-top: 18px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--espresso);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .25s, border-color .25s;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -.75px 0 0 -6px;
  background: var(--espresso);
  transition: transform .35s var(--ease), background-color .25s;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__list summary:hover .faq__icon { border-color: var(--espresso); }
.faq__list details[open] .faq__icon { background: var(--espresso); border-color: var(--espresso); }
.faq__list details[open] .faq__icon::before,
.faq__list details[open] .faq__icon::after { background: var(--cream); }
.faq__list details[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { max-width: 62ch; padding: 0 58px 26px 0; color: var(--text-soft); }

@media (max-width: 899px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__answer { padding-right: 0; }
}

/* ── Cotizador ────────────────────────────────────────────────────────── */

.quote { background: var(--espresso); color: var(--on-dark); }
.quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.quote__intro { grid-column: 1; grid-row: 1; }
.qform { grid-column: 2; grid-row: 1 / span 2; }
.contact { grid-column: 1; grid-row: 2; }
.quote__intro h2 {
  max-width: 14ch;
  font-size: var(--h2);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.quote__intro .sec-lede { margin-top: 22px; }

.contact { margin-top: clamp(36px, 4vw, 52px); padding-top: 28px; border-top: 1px solid var(--rule-dark); }
.contact__title { font-size: 1.625rem; line-height: 1.15; }
.contact__list { margin-top: 8px; list-style: none; }
.contact__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--on-dark);
  text-decoration: none;
}
.contact__row .i { width: 22px; height: 22px; margin-top: 2px; color: var(--gold); }
.contact__k {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact__v { display: block; margin-top: 4px; font-size: 1rem; overflow-wrap: anywhere; }
div.contact__row .contact__v { font-size: .9375rem; color: var(--on-dark-soft); }
a.contact__row .contact__v {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  transition: text-decoration-color .2s;
}
a.contact__row:hover .contact__v { text-decoration-color: var(--gold); }
.contact__area { margin-top: 20px; font-size: .875rem; color: var(--on-dark-muted); }

.qform {
  position: relative;
  padding: clamp(24px, 3.6vw, 48px);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.qform :focus-visible { outline-color: var(--espresso); }
.qform h3 { color: var(--espresso); }
.qform__head h3 { font-size: 2rem; line-height: 1.1; }
.qform__head p { margin-top: 6px; font-size: .9375rem; color: var(--text-muted); }
.qform__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-weight: 600; line-height: 1.3; color: var(--text-soft); }
.req { color: var(--gold-ink); }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  caret-color: var(--espresso);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { min-height: 124px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #c4b69c; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--espresso);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 168, 106, .38);
}
.field input:user-invalid,
.field select:user-invalid { border-color: #a4472b; }
.field input[type='date'] { text-align: left; }
.field input[type='date']::-webkit-date-and-time-value { text-align: left; }
.field input[type='date']::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.select .i {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--text-soft);
  pointer-events: none;
}
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.qform__privacy { margin-top: 22px; font-size: .8125rem; line-height: 1.55; color: var(--text-muted); }
.qform__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.qform__req { margin-top: 14px; font-size: .8125rem; color: var(--text-muted); }

/* Estado del envío. cotizador.js reemplaza la clase completa:
   «quote-status is-visible quote-status--working | --success | --fallback». */
.quote-status { margin: 0; font-size: .9375rem; line-height: 1.5; }
.quote-status.is-visible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.quote-status > span { flex: 1 1 260px; }
.quote-status--working { background: var(--cream-warm); border-color: var(--cream-line); color: var(--text-soft); }
.quote-status--success { background: #e6eddc; border-color: #c9d8bb; color: #2f4a29; }
.quote-status--fallback { background: #f6e6dc; border-color: #e8c7b5; color: #6e3420; }
.quote-status a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--wa);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.quote-status a:hover { background: var(--wa-hover); }
@media (prefers-reduced-motion: no-preference) {
  .quote-status.is-visible { animation: rise .45s var(--ease) both; }
}

@media (max-width: 899px) {
  .quote__grid { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 36px; }
  .quote__intro,
  .qform,
  .contact { grid-column: 1; grid-row: auto; }
  .quote__intro h2 { max-width: 16ch; }
  .contact { margin-top: 12px; }
}
@media (max-width: 599px) {
  .qform__fields { grid-template-columns: 1fr; gap: 16px; }
  .qform__actions { flex-direction: column; }
  .qform__actions .btn { width: 100%; }
  .quote-status a { width: 100%; justify-content: center; }
}

/* ── Pie ──────────────────────────────────────────────────────────────── */

.site-foot {
  padding: clamp(56px, 7vw, 88px) 0 28px;
  background: var(--espresso-deep);
  color: var(--on-dark-soft);
  font-size: .9375rem;
}
.site-foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2.2fr) minmax(0, 3.6fr);
  gap: 40px clamp(24px, 4vw, 56px);
}
.site-foot__brand p { max-width: 34ch; margin-top: 18px; color: var(--on-dark-muted); }
.foot-h {
  margin-bottom: 14px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-foot ul { display: grid; gap: 10px; list-style: none; }
.site-foot__col li { overflow-wrap: break-word; }
.site-foot a {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  transition: text-decoration-color .2s;
}
.site-foot a:hover { text-decoration-color: var(--gold); }
.site-foot .brand { text-decoration: none; }
.site-foot__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: 22px;
  font-size: .8125rem;
  color: var(--on-dark-muted);
}
.site-foot__base::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--rule-dark);
}
.site-foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 899px) {
  .site-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__brand { grid-column: 1 / -1; }
  .site-foot { padding-bottom: 100px; }
}
@media (max-width: 479px) {
  .site-foot__grid { grid-template-columns: 1fr; }
}

/* ── Botón fijo «Cotizar» en móvil ────────────────────────────────────── */

.sticky-cta { display: none; }
@media (max-width: 899px) {
  .sticky-cta {
    position: fixed;
    z-index: 70;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    border-radius: var(--radius);
    background: var(--gold);
    color: var(--espresso);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 18px 36px -14px rgba(20, 15, 11, .6);
    visibility: hidden;
    transform: translateY(calc(100% + 28px));
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .sticky-cta.is-shown {
    visibility: visible;
    transform: none;
    transition: transform .4s var(--ease), visibility 0s;
  }
  .sticky-cta .i { width: 18px; height: 18px; }
  .sticky-cta:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }
}

/* ── Páginas de servicio ──────────────────────────────────────────────── */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  list-style: none;
  font-size: .875rem;
  color: var(--text-muted);
}
.crumbs li { display: inline-flex; align-items: center; gap: 12px; }
.crumbs li + li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--gold-rule);
  border-right: 1px solid var(--gold-rule);
  transform: rotate(45deg);
}
.crumbs a {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
.crumbs a:hover { text-decoration-color: var(--espresso); }

.sp-hero { padding: clamp(24px, 3.5vw, 44px) 0 clamp(72px, 9vw, 120px); }
.sp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(28px, 4vw, 56px);
}
.sp-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.625rem, 1.5rem + 3.5vw, 4.625rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.sp-hero__lede { max-width: 46ch; margin-top: 24px; font-size: 1.1875rem; color: var(--text-soft); }
.sp-hero__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-warm); }
.sp-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .sp-hero__photo { animation: lay-table 1.5s var(--ease) both; }
  .sp-hero__photo img { animation: settle 2.4s var(--ease) both; }
  .sp-hero__text { animation: rise .9s var(--ease) both; }
}
@media (max-width: 899px) {
  .sp-hero__grid { grid-template-columns: 1fr; }
  .sp-hero__photo { aspect-ratio: 4 / 3; margin-inline: calc(-1 * var(--gutter)); }
}

.sp-detail { border-top: 1px solid var(--cream-line); }
.sp-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.sp-detail h2 { max-width: 15ch; font-size: var(--h2); line-height: 1.04; letter-spacing: -0.012em; }
.sp-detail .sec-lede { margin-top: 22px; }
.check { list-style: none; border-top: 1px solid var(--line); }
.check li {
  position: relative;
  padding: 18px 0 18px 42px;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--espresso);
}
.check li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 1.3em;
  width: 14px;
  height: 7px;
  border-left: 1.5px solid var(--gold-ink);
  border-bottom: 1.5px solid var(--gold-ink);
  transform: rotate(-45deg);
}
@media (max-width: 899px) {
  .sp-detail__grid { grid-template-columns: 1fr; }
}

.sp-carta__card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 80px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--rule-dark);
}
.sp-carta__card .pkg__price { margin-top: 22px; }
.sp-carta__note { max-width: 40ch; margin-top: 24px; font-size: .9375rem; color: var(--on-dark-muted); }
.sp-carta__card .pkg__list { margin: 0 0 30px; }
.sp-carta__card .pkg__intro { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 899px) {
  .sp-carta__card { grid-template-columns: 1fr; }
}

.formats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.format__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-warm); }
.format__photo img { width: 100%; height: 100%; object-fit: cover; }
.format h3 { margin-top: 24px; font-size: var(--h3); line-height: 1.06; }
.format p { max-width: 48ch; margin-top: 12px; color: var(--text-soft); }
@media (max-width: 899px) {
  .formats__grid { grid-template-columns: 1fr; }
}

.case__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.1vw, 14px); }
/* Un poco más panorámica que la foto: el recorte esconde la marca de fecha del teléfono. */
.case__pair .case__ph { aspect-ratio: 5 / 2; }
.case__pair .case__ph img { object-position: 50% 25%; }
.sp-hero__photo--tall img { object-position: 50% 30%; }
@media (max-width: 599px) {
  .case__pair { grid-template-columns: 1fr; }
}

.band { background: var(--espresso); color: var(--on-dark); }

.strip { background: var(--cream-warm); }
.strip__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.strip__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.strip__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--cream-line); }
.strip__grid--2 .strip__item img { aspect-ratio: 4 / 5; }
.strip__grid--land .strip__item img { aspect-ratio: 4 / 3; }
.strip__item figcaption { margin-top: 12px; font-size: .875rem; line-height: 1.45; color: var(--text-muted); }
.strip__more { margin-top: clamp(28px, 3vw, 40px); }
@media (max-width: 899px) {
  .strip__grid,
  .strip__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .strip__grid--3 { grid-template-columns: 1fr; }
}

.band__in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
}
.band h2 { max-width: 22ch; font-size: var(--h2); line-height: 1.04; letter-spacing: -0.012em; }
.band p { max-width: 46ch; margin-top: 16px; color: var(--on-dark-soft); }

.rel__list { list-style: none; border-top: 1px solid var(--line); }
.rel__list li { border-bottom: 1px solid var(--line); }
.rel__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 24px;
  padding: 26px 0;
  color: var(--espresso);
  text-decoration: none;
}
.rel__name { font-family: var(--serif); font-size: var(--h3); font-weight: 500; line-height: 1.06; }
.rel__desc { grid-column: 1; color: var(--text-soft); max-width: 56ch; }
.rel__list .svc__go { grid-column: 2; grid-row: 1 / span 2; }
.rel__list a:hover .svc__go,
.rel__list a:focus-visible .svc__go { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.rel__aside { margin-top: 28px; color: var(--text-soft); }

/* ── Movimiento reducido ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
