/* MARYS — hoja de estilos
   Paleta: cal (fondo), piedra (hornacinas), tinta (texto), humo (texto secundario)
   Fuentes alojadas en el propio sitio (SIL Open Font License) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }

:root {
  --cal: #F3F2F0;
  --cal-2: #EAE8E6;
  --piedra: #BEB7BD;
  --piedra-clara: #D8D3D7;
  --piedra-oscura: #A69EA5;
  --tinta: #1D1B1F;
  --humo: #6B666D;
  --linea: rgba(29, 27, 31, .14);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --arco: 100vmax 100vmax 0 0;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cal);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(3rem, 7.2vw, 6.6rem); line-height: .94; }
h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.05; }
h1, h2 { text-wrap: balance; }
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.35; max-width: 34ch; }
.muted { color: var(--humo); }
.small { font-size: .875rem; }
.serif { font-family: var(--serif); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--tinta); color: var(--cal); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 28px;
  font: 500 .95rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--tinta); background: var(--tinta); color: var(--cal);
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: #3a363c; border-color: #3a363c; }
.btn--ghost { background: transparent; color: var(--tinta); }
.btn--ghost:hover { background: var(--tinta); color: var(--cal); }
.btn--light { background: var(--cal); color: var(--tinta); border-color: var(--cal); }
.btn--light:hover { background: transparent; color: var(--cal); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link {
  font-weight: 500; text-decoration: none; padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 242, 240, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--linea); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { width: 124px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav a { text-decoration: none; font-size: .95rem; }
.nav a:not(.btn) { position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: .9rem; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--tinta); }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .2s; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--cal);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 24px var(--gutter);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2.4rem; line-height: 1.2; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 24px; min-height: 52px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu-open { overflow: hidden; }
}

/* ---------- Hornacina (nicho en arco) ---------- */
.niche {
  position: relative; overflow: hidden;
  border-radius: var(--arco);
  background:
    radial-gradient(120% 60% at 50% 12%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(180deg, var(--piedra-clara) 0%, var(--piedra) 78%);
  box-shadow: inset 0 18px 40px -20px rgba(29,27,31,.25), inset 0 -1px 0 rgba(29,27,31,.08);
}
.niche--render { background: var(--piedra); box-shadow: none; }
.niche img, .niche video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero / retablo ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 130px); text-align: center; }
.hero h1 { max-width: 15ch; margin: 0 auto; }
.hero__sub { max-width: 46ch; margin: 22px auto 0; color: var(--humo); font-size: 1.05rem; }
.hero .btns { justify-content: center; margin-top: 30px; }
.retablo {
  display: grid; grid-template-columns: 1fr 1.22fr 1fr; align-items: end;
  gap: clamp(12px, 2.4vw, 36px); margin-top: clamp(48px, 7vw, 90px);
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.retablo__item { text-decoration: none; display: block; }
.retablo__item .niche { aspect-ratio: 3 / 4.5; }
.retablo__item:nth-child(2) .niche { aspect-ratio: 3 / 4.8; }
.retablo__fig { position: absolute; left: 8%; right: 8%; bottom: 0; top: 16%; }
.retablo__fig img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.retablo__fig img + img { opacity: 0; }
.retablo__item:hover .retablo__fig img:first-child, .retablo__item:focus-visible .retablo__fig img:first-child { opacity: 0; }
.retablo__item:hover .retablo__fig img + img, .retablo__item:focus-visible .retablo__fig img + img { opacity: 1; }
.retablo__item:hover .retablo__fig img { transform: translateY(-6px); }
.retablo__plinth { height: 12px; background: var(--piedra-oscura); border-radius: 0 0 2px 2px; }
.retablo__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 14px; text-align: left; }
.retablo__cap strong { font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: .04em; }
.retablo__cap span { color: var(--humo); font-size: .9rem; }
@media (max-width: 640px) {
  .retablo { gap: 8px; }
  .retablo__cap { flex-direction: column; gap: 0; align-items: center; text-align: center; }
  .retablo__cap span { font-size: .78rem; }
}
/* Entrada: un único momento orquestado al cargar */
@media (prefers-reduced-motion: no-preference) {
  .js .retablo__item { opacity: 0; transform: translateY(28px); animation: rise 1.1s var(--ease) forwards; }
  .js .retablo__item:nth-child(1) { animation-delay: .25s; }
  .js .retablo__item:nth-child(2) { animation-delay: .1s; }
  .js .retablo__item:nth-child(3) { animation-delay: .4s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Manifiesto ---------- */
.manifesto { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.manifesto__big { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.12; margin: 0; max-width: 22ch; }
.manifesto__text { max-width: 58ch; }
.manifesto__text p { color: #3d393f; }
blockquote.quote {
  margin: 36px 0 0; padding: 0 0 0 24px; border-left: 1px solid var(--tinta);
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; max-width: 44ch;
}
@media (max-width: 860px) { .manifesto { grid-template-columns: 1fr; } }

/* ---------- Encabezado de sección ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.sec-head p { max-width: 46ch; margin: 14px 0 0; color: var(--humo); }

/* ---------- Tarjetas de pieza ---------- */
.pieces { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 40px); }
.piece { text-decoration: none; display: block; }
.piece .niche { aspect-ratio: 9 / 16; }
.piece .niche img, .piece .niche video { position: absolute; inset: 0; }
.piece .niche video { opacity: 0; transition: opacity .5s; }
.piece.is-playing .niche video { opacity: 1; }
.piece__meta { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding-top: 18px; }
.piece__name { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: .04em; line-height: 1; }
.piece__price { font-family: var(--serif); font-size: 1.4rem; }
.piece__line { color: var(--humo); font-size: .92rem; }
.piece__cta { color: var(--humo); font-size: .92rem; text-align: right; }
.piece:hover .piece__cta { color: var(--tinta); }
@media (max-width: 860px) {
  .pieces { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; gap: 56px; }
}

/* ---------- Bajo pedido (sección oscura) ---------- */
.dark { background: var(--tinta); color: var(--cal); }
.dark .muted, .dark .sec-head p { color: #aaa4ab; }
.order { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.order__media { position: relative; margin: 0; max-width: 440px; width: 100%; justify-self: center; }
.order__media .niche { background: #303030; box-shadow: none; aspect-ratio: 4 / 5; }
.order__media video { position: absolute; inset: 0; object-fit: cover; object-position: 50% 70%; }
.order__media figcaption { margin-top: 14px; font-size: .85rem; color: #8f8991; text-align: center; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 0 16px;
  padding: 22px 0; border-top: 1px solid rgba(243,242,240,.16);
}
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2rem; line-height: 1; grid-row: span 2; }
.steps h3 { font-size: 1.5rem; }
.steps p { margin: 6px 0 0; color: #b5afb6; max-width: 48ch; }
.steps--light li { border-top-color: var(--linea); }
.steps--light p { color: var(--humo); }
@media (max-width: 900px) { .order { grid-template-columns: 1fr; } }

/* ---------- Galería horizontal ---------- */
.rail {
  display: flex; gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 18px; scrollbar-width: thin; scrollbar-color: var(--piedra) transparent;
  -webkit-overflow-scrolling: touch;
}
.rail figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.rail img { height: clamp(360px, 62vh, 620px); width: auto; object-fit: cover; background: var(--cal-2); }
.rail figcaption { font-size: .85rem; color: var(--humo); padding-top: 10px; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea); background: transparent;
  cursor: pointer; color: var(--tinta); font-size: 1.1rem; transition: border-color .2s, background .2s;
}
.rail-ctrl button:hover { border-color: var(--tinta); }
@media (max-width: 640px) { .rail img { height: 380px; } .rail-ctrl { display: none; } }

/* ---------- Próximamente ---------- */
.soon { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.soon figure { margin: 0; }
.soon .niche { aspect-ratio: 4 / 5; background: #e2e0dd; box-shadow: none; }
.soon figcaption { padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; }
.soon figcaption strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
@media (max-width: 700px) { .soon { gap: 8px; } .soon figcaption { flex-direction: column; gap: 0; } .soon figcaption strong { font-size: 1.15rem; } .soon figcaption span { font-size: .75rem; } }

/* ---------- Bloque proceso (home) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split img { width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trio img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* ---------- CTA final ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 16ch; margin: 0 auto; }
.cta p { max-width: 48ch; margin: 20px auto 30px; color: var(--humo); }
.cta .btns { justify-content: center; }

/* ---------- Cabecera de página interior ---------- */
.page-head { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 14ch; }
.page-head p { margin-top: 24px; }
.crumbs { font-size: .88rem; color: var(--humo); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Ficha de pieza ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; padding-bottom: clamp(64px, 8vw, 120px); }
.product__stage { position: sticky; top: 100px; }
.product__stage .niche { aspect-ratio: 9 / 16; max-height: calc(100vh - 130px); margin: 0 auto; }
.product__stage .niche video { position: absolute; inset: 0; }
.product__stage p { text-align: center; margin-top: 12px; }
.product__info h1 { font-size: clamp(3.4rem, 7vw, 6rem); letter-spacing: .03em; font-weight: 600; }
.product__line { font-family: var(--serif); font-size: 1.5rem; font-style: italic; margin: 6px 0 28px; color: #4a454c; }
.product__price { display: flex; align-items: baseline; gap: 14px; padding: 22px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); margin: 30px 0; }
.product__price strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; line-height: 1; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; margin: 0 0 32px; }
.specs dt { color: var(--humo); }
.specs dd { margin: 0; }
.product__info .btns .btn { flex: 1 1 200px; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product__stage { position: static; }
  .product__stage .niche { max-width: 420px; max-height: none; }
}
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.gallery figure { margin: 0; background: var(--piedra); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img.fit { object-fit: contain; }
.gallery .g-a, .gallery .g-d { grid-column: span 5; aspect-ratio: 9 / 14; }
.gallery .g-b, .gallery .g-c { grid-column: span 7; }
.gallery .g-b img, .gallery .g-c img { position: absolute; inset: 0; object-position: 50% 78%; }
@media (max-width: 700px) {
  .gallery .g-a, .gallery .g-b, .gallery .g-c, .gallery .g-d { grid-column: span 12; aspect-ratio: 4 / 5; }
}
.pager { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--linea); padding-top: 28px; }
.pager a { text-decoration: none; font-family: var(--serif); font-size: 1.6rem; }
.pager a span { display: block; font-family: var(--sans); font-size: .85rem; color: var(--humo); }
.pager a:last-child { text-align: right; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .9rem; margin-bottom: 6px; }
.field label .opt { color: var(--humo); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--tinta); background: transparent;
  border: 0; border-bottom: 1px solid rgba(29,27,31,.35); border-radius: 0;
  padding: 10px 0 12px; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231D1B1F' fill='none' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 4px center;
  padding-right: 24px; cursor: pointer;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--tinta); box-shadow: 0 1px 0 var(--tinta); }
.form .consent { display: flex; gap: 10px; font-size: .88rem; color: var(--humo); align-items: flex-start; }
.form .consent input { margin-top: 4px; accent-color: var(--tinta); width: 16px; height: 16px; flex: none; }
.form .hp { position: absolute; left: -9999px; }
.form-box { background: var(--cal-2); padding: clamp(28px, 4vw, 56px); }
.form-box h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.form-box > p { color: var(--humo); margin: 12px 0 28px; max-width: 52ch; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.contact dl { margin: 0; display: grid; gap: 26px; }
.contact dt { color: var(--humo); font-size: .9rem; margin-bottom: 4px; }
.contact dd { margin: 0; font-family: var(--serif); font-size: 1.55rem; line-height: 1.25; }
.contact dd a { text-decoration: none; }
.contact dd a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact dd small { display: block; font-family: var(--sans); font-size: .9rem; color: var(--humo); margin-top: 4px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Historia ---------- */
.chapter { padding: clamp(64px, 9vw, 130px) 0; border-top: 1px solid var(--linea); }
.chapter__head { display: grid; grid-template-columns: 120px 1fr; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.chapter__num { font-family: var(--serif); font-size: 1.5rem; color: var(--humo); padding-top: .4em; }
.chapter__head h2 { max-width: 18ch; }
.chapter__body { display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
.chapter__body > * { grid-column: 2; }
.prose { max-width: 62ch; }
.prose p { color: #3d393f; }
@media (max-width: 700px) {
  .chapter__head, .chapter__body { grid-template-columns: 1fr; }
  .chapter__body > * { grid-column: 1; }
  .chapter__num { padding: 0; }
}
.canvas-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.canvas-row figure { margin: 0; background: #D5D5D5; aspect-ratio: 6 / 5; overflow: hidden; }
.canvas-row img { width: 100%; height: 100%; object-fit: cover; }
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 40px; }
.lines article { border-top: 1px solid var(--tinta); padding-top: 18px; }
.lines h3 { margin-bottom: 10px; }
.lines p { color: var(--humo); margin: 0; }
.lines .who { margin-top: 14px; font-size: .9rem; color: var(--tinta); }
@media (max-width: 800px) { .lines, .canvas-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .chapter .trio { grid-template-columns: 1fr; } }
.def { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.25; max-width: 30ch; margin: 0; }

/* ---------- Textos legales ---------- */
.legal { max-width: 70ch; padding-bottom: clamp(80px, 10vw, 140px); }
.legal h2 { font-size: 1.9rem; margin: 44px 0 12px; }
.legal p, .legal li { color: #3d393f; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--linea); padding: clamp(56px, 7vw, 90px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { width: 150px; margin-bottom: 18px; }
.footer__brand p { color: var(--humo); max-width: 34ch; font-size: .95rem; }
.footer h2 { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--humo); margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--linea); font-size: .85rem; color: var(--humo); }
.footer__bottom nav { display: flex; gap: 20px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: span 2; } }

.center { text-align: center; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
