/* ==========================================================================
   Techos Australes — sitio público
   Dirección visual: corralón patagónico. Papel kraft + carbón + naranja de marca,
   tipografía geométrica pesada (como el logotipo) y el "techito" del logo como motivo.
   ========================================================================== */

/* ---------- Fuentes: self-hosted, declaradas en home.blade.php (URLs con ?v=) ---------- */

/* ---------- Tokens ---------- */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d4;
  --card: #fffdf9;
  --ink: #17191c;
  --ink-2: #2b2e33;
  --muted: #6a655c;
  --line: rgba(23, 25, 28, .12);
  --line-2: rgba(23, 25, 28, .2);
  --orange: #ff7f00;          /* naranja del logo */
  --orange-2: #e86c00;
  --orange-ink: #a84a00;      /* naranja para texto sobre papel (contraste AA) */
  --orange-soft: #ffe6cc;
  --wa: #1fa855;
  --wa-2: #178a45;
  --ok: #1f7a46;
  --bad: #c2341b;

  --font: 'Jakarta', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(23,25,28,.06), 0 8px 24px -12px rgba(23,25,28,.18);
  --shadow-lg: 0 30px 80px -20px rgba(23,25,28,.45);
  --hdr-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
html.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* Estados iniciales SOLO cuando GSAP va a animar (html.motion lo pone el <head>). */
.motion [data-hero-reveal], .motion [data-hero-line], .motion [data-reveal], .motion [data-card],
.motion [data-step], .motion [data-tl], .motion [data-partner] { visibility: hidden; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: clamp(.08em, 1vw, .16em); text-transform: uppercase; color: var(--orange-ink);
}
.eyebrow--light { color: #ffb66b; }
.eyebrow__roof { width: 26px; height: 16px; color: var(--orange); }
.sechead { max-width: 720px; margin-bottom: clamp(24px, 4vw, 40px); }
.sechead__title {
  margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(34px, 5.4vw, 64px);
}
.sechead__lead { margin: 14px 0 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 56ch; }
.sechead--light .sechead__title { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--card); --fg: var(--ink); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover > svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn--primary { --bg: var(--orange); --fg: #1b1000; --bd: var(--orange); box-shadow: 0 8px 20px -10px rgba(255,127,0,.8); }
.btn--primary:hover { --bg: #ff8f1f; }
.btn--ghost { --bg: transparent; }
.btn--ghost:hover { --bg: rgba(23,25,28,.05); }
.btn--ghost-light { --bg: rgba(255,255,255,.08); --fg: #fff; --bd: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { --bg: rgba(255,255,255,.16); }
.btn--wa { --bg: var(--wa); --fg: #fff; --bd: var(--wa); box-shadow: 0 8px 20px -10px rgba(31,168,85,.9); }
.btn--wa:hover { --bg: var(--wa-2); --bd: var(--wa-2); }
.btn--text { --bg: transparent; --bd: transparent; padding: 0 10px; color: var(--muted); font-weight: 600; }
.btn--text:hover { color: var(--ink); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--block { width: 100%; }
.iconbtn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: background-color .2s;
}
.iconbtn:hover { background: var(--paper-2); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn--sm { width: 34px; height: 34px; border-color: transparent; background: transparent; color: var(--muted); }
.iconbtn--sm:hover { color: var(--bad); background: #fbe9e5; }
.iconbtn--sm svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40; height: var(--hdr-h);
  background: rgba(244, 239, 230, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 20px; }
.hdr__brand img { height: 30px; width: auto; }
.hdr__nav { display: none; gap: 4px; margin-left: 12px; }
.hdr__nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); transition: background-color .2s; }
.hdr__nav a:hover { background: rgba(23,25,28,.06); }
.status {
  display: none; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; background: rgba(23,25,28,.05);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #9b958b; }
.status.is-open { color: var(--ok); background: #e2f2e7; }
.status.is-open .status__dot { background: #22a35a; box-shadow: 0 0 0 0 rgba(34,163,90,.6); animation: ping 2s infinite; }
.status--inline { display: inline-flex; margin-left: 8px; font-size: 12px; padding: 3px 10px; vertical-align: middle; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,163,90,.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(34,163,90,0); } }
.cartbtn {
  position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px;
  transition: transform .2s var(--ease), background-color .2s;
}
.cartbtn:hover { background: #000; }
.cartbtn svg { width: 19px; height: 19px; }
.cartbtn__label { display: none; }
.cartbtn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--orange); color: #1b1000; font-size: 12.5px; font-weight: 800;
}
@media (min-width: 1100px) { .status:not([hidden]) ~ .cartbtn { margin-left: 0; } }
.is-pulse { animation: pulse .5s var(--ease); }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (min-width: 560px) { .cartbtn__label { display: inline; } }
@media (min-width: 900px) { .hdr__nav { display: flex; } }
@media (min-width: 1100px) { .status { display: inline-flex; } .status--inline { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { padding: 8px var(--gutter) 0; }
.hero__panel {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg);
  min-height: min(86svh, 820px); display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); color: #fff; max-width: 1400px; margin-inline: auto;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; transform: scale(1.08); will-change: transform; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,15,17,.15) 0%, rgba(14,15,17,.35) 40%, rgba(14,15,17,.92) 100%),
    linear-gradient(90deg, rgba(14,15,17,.7) 0%, rgba(14,15,17,0) 70%);
}
.hero__content { padding-top: 120px; padding-bottom: 28px; }
.hero__title {
  margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: .92; text-transform: uppercase;
  font-size: clamp(44px, 9.4vw, 128px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--orange); }
.hero__lead { max-width: 50ch; margin: 22px 0 0; font-size: clamp(16px, 1.8vw, 20px); color: rgba(255,255,255,.86); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 auto; padding-top: 22px; padding-bottom: 26px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__stats > div { padding-right: 12px; }
.hero__stats dt { font-size: clamp(10.5px, 1.2vw, 12px); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.hero__stats dd { margin: 4px 0 0; font-weight: 800; font-size: clamp(22px, 3.4vw, 40px); letter-spacing: -.03em; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.ticker span { font-weight: 800; font-size: clamp(20px, 2.6vw, 30px); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); }
.ticker svg { width: 30px; height: 19px; color: var(--orange); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Beneficios ---------- */
.perks { display: grid; gap: 14px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.perk__ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-ink); }
.perk__ico svg { width: 24px; height: 24px; }
.perk h2 { margin: 16px 0 6px; font-size: 19px; letter-spacing: -.02em; }
.perk p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 760px) { .perks { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ---------- Catálogo ---------- */
.catalog { padding-bottom: clamp(56px, 8vw, 110px); }
.toolbar {
  position: sticky; top: var(--hdr-h); z-index: 20; display: grid; gap: 12px;
  margin: 0 calc(var(--gutter) * -1) 22px; padding: 12px var(--gutter);
  background: rgba(244,239,230,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.search { position: relative; display: block; }
.search > svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 52px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card);
  padding: 0 48px 0 46px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,127,0,.18); }
.search__clear { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; }
.search__clear svg { width: 16px; height: 16px; }
/* Chips: SIEMPRE una sola línea. Scroll horizontal nativo (touch/trackpad),
   drag con mouse, flechas cuando hay overflow y bordes que se desvanecen. */
.chipbar { position: relative; min-width: 0; margin-inline: calc(var(--gutter) * -1); }
.chips {
  display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 2px var(--gutter); scroll-padding-inline: var(--gutter); scroll-behavior: smooth;
  --fade-l: 0px; --fade-r: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.chips::-webkit-scrollbar { display: none; }
.chipbar.can-l .chips { --fade-l: 48px; }
.chipbar.can-r .chips { --fade-r: 48px; }
.chips.is-dragging { scroll-behavior: auto; cursor: grabbing; user-select: none; }
.chips.is-dragging .chip { pointer-events: none; }
.chipbar__arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: none; place-items: center; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  transition: transform .2s var(--ease), opacity .2s;
}
.chipbar__arrow:hover { transform: scale(1.08); }
.chipbar__arrow svg { width: 16px; height: 16px; }
.chipbar__arrow--prev { left: 4px; }
.chipbar__arrow--next { right: 4px; }
@media (hover: hover) and (pointer: fine) {
  .chips { cursor: grab; }
  .chipbar.can-l .chipbar__arrow--prev, .chipbar.can-r .chipbar__arrow--next { display: grid; }
}
.chip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent;
  font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 900px) {
  .toolbar { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); align-items: center; }
  .chipbar { margin: 0; }
  .chips { padding-inline: 2px; scroll-padding-inline: 2px; }
}

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.card { position: relative; }
.card__hit {
  position: relative; width: 100%; height: 100%; text-align: left; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 0; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card__hit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card.is-in .card__hit { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__hit:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 16px; flex: 1; }
.card__grupo { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.card__name { font-size: clamp(16px, 1.6vw, 19px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.card__meta { font-size: 13.5px; color: var(--muted); }
.card__cta { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.card__cta svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card__hit:hover .card__cta svg { transform: translateX(4px); }
.card__badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--orange); color: #1b1000; font-size: 12px; font-weight: 800; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4);
}
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--r); }
.empty a { color: var(--orange-ink); font-weight: 700; }

.hits { margin-bottom: 26px; }
.hits__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--muted); }
.hits__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 900px) { .hits__list { grid-template-columns: repeat(2, 1fr); } }
.hit { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.hit img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.hit__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hit__txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit__txt small { color: var(--muted); font-size: 12.5px; }
.hit__qty { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); font-weight: 800; font-size: 13px; }

/* ---------- Proceso ---------- */
.process { background: var(--ink); color: #fff; padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.process::before {
  /* motivo "techo" gigante de fondo */
  content: ''; position: absolute; right: -8%; top: -10%; width: 60vw; max-width: 760px; aspect-ratio: 64/40; opacity: .05;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='5' d='M4 38 32 6l28 32'/%3E%3C/svg%3E");
}
.process__rail { height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; margin-bottom: 30px; display: none; }
.process__rail span { display: block; height: 100%; background: var(--orange); transform-origin: left; }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.process__steps li { padding: 24px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); transition: border-color .4s, background-color .4s; }
.process__steps li.is-lit { border-color: rgba(255,127,0,.6); background: rgba(255,127,0,.07); }
.process__n { font-family: var(--mono); font-size: 14px; color: var(--orange); }
.process__steps h3 { margin: 10px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.process__steps p { margin: 0; color: rgba(255,255,255,.7); }
.process__steps strong { color: #fff; }
.process__cta { margin-top: 36px; }
@media (min-width: 860px) {
  .process__rail { display: block; }
  .process__steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { .process__rail span { transform: none; } }

/* ---------- Nosotros ---------- */
.about { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 80px); }
.about__media { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--paper-2); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__text > p { color: var(--ink-2); font-size: 17px; max-width: 56ch; }
.timeline { list-style: none; margin: 26px 0 0; padding: 0; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 18px 22px; display: grid; gap: 2px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--orange); }
.timeline b { font-size: 17px; letter-spacing: -.01em; }
.timeline span { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.05fr 1fr; } }

/* ---------- Marcas ---------- */
.partners { padding: clamp(40px, 6vw, 80px) 0; }
.partners__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.partners__grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 16 / 8; display: grid; place-items: center; padding: 14px; overflow: hidden; }
.partners__grid img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .85; transition: filter .4s, opacity .4s, transform .4s var(--ease); }
.partners__grid li:hover img { filter: none; opacity: 1; transform: scale(1.04); }
@media (min-width: 720px) { .partners__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 18px; padding-bottom: clamp(56px, 8vw, 110px); }
.contact__card { position: relative; z-index: 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow-lg); }
.contact__card .sechead__title { font-size: clamp(32px, 4vw, 48px); }
.contact__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact__list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; }
.contact__list svg { width: 22px; height: 22px; color: var(--orange-ink); margin-top: 1px; }
.contact__list a { text-decoration: none; font-weight: 600; word-break: break-word; }
.contact__list a:hover { text-decoration: underline; }
.contact__list small { color: var(--muted); font-weight: 500; }
.hours { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 22px; }
.hours h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; font-size: 16px; }
.hours h3 svg { width: 20px; height: 20px; color: var(--orange-ink); }
.hours table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { color: var(--muted); text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--ink); background: var(--orange-soft); }
/* Mapa: panel grande entonado (cálido/desaturado), pin propio y bloqueo de interacción. */
.contact__map { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 420px; background: var(--paper-2); isolation: isolate; }
.contact__map iframe {
  position: absolute; inset: -110px 0 0 0; width: 100%; height: calc(100% + 110px); border: 0; display: block;
  filter: grayscale(1) sepia(.28) contrast(1.06) brightness(1.03); pointer-events: none; transition: filter .5s;
}
.contact__map::after { /* viñeta para integrar el mapa con el papel */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 120px rgba(244,239,230,.55);
  /* fundido superior: tapa los controles que Google pone arriba a la izquierda del embed */
  background: linear-gradient(180deg, var(--paper) 0, rgba(244,239,230,.85) 50px, rgba(244,239,230,0) 120px);
  border-radius: inherit; transition: opacity .4s;
}
.contact__map.is-live iframe { pointer-events: auto; filter: none; }
.contact__map.is-live::after, .contact__map.is-live .mappin { opacity: 0; }
.mappin { position: absolute; left: 50%; top: calc(50% - 55px); z-index: 2; pointer-events: none; display: grid; justify-items: center; translate: -50% -100%; transition: opacity .3s; }
.mappin__dot { position: relative; width: 52px; height: 52px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--orange); display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(168,74,0,.7); }
.mappin__dot svg { rotate: 45deg; width: 26px; height: 17px; color: #1b1000; }
.mappin__ring { position: absolute; bottom: -10px; width: 22px; height: 8px; border-radius: 50%; background: rgba(23,25,28,.35); }
.mappin__ring::after { content: ''; position: absolute; inset: -8px -14px; border-radius: 50%; border: 2px solid var(--orange); animation: ring 2s ease-out infinite; }
.mappin__label { position: absolute; top: -34px; white-space: nowrap; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mappin__ring::after { animation: none; } }
.mapunlock {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow);
}
.mapunlock svg { width: 16px; height: 16px; }
@media (min-width: 900px) {
  /* El mapa ocupa todo el panel y la tarjeta flota encima, a la izquierda. */
  .contact { grid-template-columns: 1fr; grid-template-areas: "s"; }
  .contact > * { grid-area: s; }
  .contact__card { align-self: center; justify-self: start; width: min(430px, 42%); margin: 32px; }
  .contact__map { min-height: 700px; }
  /* El iframe mide 132% de ancho → su centro (el local) cae en el 66% del panel, donde va el pin. */
  .contact__map iframe { width: 132%; }
  .mappin { left: 66%; }
}

/* ---------- Footer ---------- */
/* Footer: centrado, separador arriba, mismo fondo que el body (como en Tornillo Alvear). */
.ftr__in { text-align: center; padding-top: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ftr__brand { display: inline-block; transition: opacity .2s; }
.ftr__brand:hover { opacity: .75; }
.ftr__brand img { width: 220px; height: auto; display: block; }
.ftr__tag { margin: 12px 0 8px; font-size: 13px; color: var(--muted); }
.ftr__copy { margin: 0; font-size: 12px; color: var(--muted); }
body:has(.dock:not([hidden])) .ftr__in { padding-bottom: 100px; }

/* ---------- Dock (mobile) ---------- */
.dock {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 10px 0 12px; border: 0; border-radius: 18px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); text-align: left; font-weight: 600;
}
.dock__count { min-width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); color: #1b1000; font-weight: 800; }
.dock__label { flex: 1; font-size: 14.5px; }
.dock__go { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.1); font-weight: 700; }
.dock__go svg { width: 16px; height: 16px; }
@media (min-width: 900px) { .dock { display: none !important; } body:has(.dock:not([hidden])) .ftr__in { padding-bottom: 32px; } }

/* ---------- Dialogs comunes ---------- */
dialog { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(14, 15, 17, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; height: 40px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); flex: none; }
.stepper.has-qty { border-color: var(--orange); background: #fff7ef; }
.stepper__b { width: 38px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; border-radius: 999px; color: var(--ink); }
.stepper__b:hover:not(:disabled) { background: rgba(23,25,28,.06); }
.stepper__b:disabled { opacity: .3; cursor: default; }
.stepper__b svg { width: 16px; height: 16px; }
.stepper__n {
  width: 46px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 16px;
  -moz-appearance: textfield; appearance: textfield; outline: none;
}
.stepper__n::-webkit-outer-spin-button, .stepper__n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Ficha (sheet) ---------- */
.sheet { width: 100%; height: 100%; place-items: end center; }
.sheet[open] { display: grid; }
.sheet__box {
  width: 100%; max-height: 92svh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); overflow: hidden;
}
.sheet__head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 12px; }
.sheet__head > div { flex: 1; min-width: 0; }
.sheet__img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; }
.sheet__grupo { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); }
.sheet__title { margin: 2px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.sheet__hint { margin: 0; padding: 0 18px 12px; color: var(--muted); font-size: 14px; }
.sheet__list { list-style: none; margin: 0; padding: 4px 12px 12px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.row { border-radius: 14px; padding: 10px 10px 10px 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; transition: border-color .2s, background-color .2s; }
.row.is-in { border-color: var(--orange); background: #fffaf4; }
.row__main { display: flex; align-items: center; gap: 12px; }
.row__name { flex: 1; font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.row__detail { padding-top: 8px; }
.row__detail input, .citem__det {
  width: 100%; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; padding: 0 12px; font-size: 15px; outline: none;
}
.row__detail input:focus, .citem__det:focus { border-color: var(--orange); }
.sheet__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.sheet__sum { flex: 1 1 100%; font-size: 14px; color: var(--muted); font-weight: 600; }
.sheet__foot .btn { flex: 1; }
@media (min-width: 720px) {
  .sheet { place-items: center; padding: 24px; }
  .sheet__box { max-width: 640px; max-height: min(86vh, 780px); border-radius: 24px; }
  .sheet__img { width: 72px; height: 72px; }
  .sheet__sum { flex: 1; }
  .sheet__foot .btn { flex: none; }
}

/* ---------- Drawer (presupuesto) ---------- */
.drawer { width: 100%; height: 100%; display: none; justify-content: flex-end; align-items: flex-end; }
.drawer[open] { display: flex; }
.drawer__box {
  width: 100%; height: 94svh; display: flex; flex-direction: column; background: var(--paper);
  border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); overflow: hidden;
}
@media (min-width: 720px) {
  .drawer { align-items: stretch; }
  .drawer__box { width: 480px; height: 100%; border-radius: 24px 0 0 24px; }
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 10px; }
.drawer__head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.drawer__id { margin: 2px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.steps { list-style: none; margin: 0 18px 8px; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--paper-2); border-radius: 999px; }
.steps li { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s; }
.steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(23,25,28,.08); }
.steps li.is-current { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.steps li.is-current span { background: var(--orange); color: #1b1000; }
.steps li.is-done { color: var(--ok); }
.steps li.is-done span { background: var(--ok); color: #fff; }

.pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pane__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 18px 18px; }
.pane__foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.pane__foot .btn--primary, .pane__foot .btn--wa { margin-left: auto; }
.pane__sum { margin: 0; font-size: 14px; color: var(--muted); }
.pane__sum b { color: var(--ink); }

.emptycart { text-align: center; padding: 40px 12px; color: var(--muted); }
.emptycart svg { width: 64px; height: 40px; color: var(--orange); margin-bottom: 12px; }
.emptycart b { color: var(--ink); }
.cgroup { margin-top: 14px; }
.cgroup__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cgroup__title img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.cgroup__add { margin-left: auto; border: 0; background: none; color: var(--orange-ink); font-weight: 700; font-size: 13px; text-transform: none; letter-spacing: 0; padding: 4px 6px; border-radius: 6px; }
.cgroup__add:hover { background: var(--orange-soft); }
.citem { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 12px 14px; margin-bottom: 8px; }
.citem__top { display: flex; align-items: center; gap: 8px; }
.citem__name { flex: 1; font-weight: 700; font-size: 15px; line-height: 1.25; }
.citem__bottom { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.citem__det { flex: 1; min-width: 0; }

/* Form */
.form { display: grid; gap: 16px; align-content: start; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.field i { color: var(--orange-ink); font-style: normal; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input:not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card);
  padding: 10px 14px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236a655c' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,127,0,.15); }
.field__err { display: none; margin: 6px 0 0; color: var(--bad); font-size: 13.5px; font-weight: 600; }
.field.is-bad input, .field.is-bad select { border-color: var(--bad); }
.field.is-bad .field__err { display: block; }
.field__hint { margin: 6px 0 0; font-size: 13px; color: var(--ok); font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 6px 8px; text-align: center;
  border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s;
}
.seg span svg { width: 18px; height: 18px; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Review */
.review__lead { margin: 6px 0 14px; color: var(--ink-2); font-size: 15px; }
.bubble {
  position: relative; background: #dcf8c6; border-radius: 12px 12px 4px 12px; padding: 12px 14px 22px; margin-left: 24px;
  box-shadow: 0 1px 1px rgba(0,0,0,.12);
  background-image: linear-gradient(#dcf8c6, #d5f4bd);
}
.bubble pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 400 14.5px/1.45 var(--font); color: #111b21; }
.bubble__meta { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: #53bdeb; letter-spacing: -2px; }
.pane__scroll > .btn--text { margin-top: 10px; }

/* Done */
.done { text-align: center; padding-top: 40px; }
.done__ico { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #e2f2e7; color: var(--ok); }
.done__ico svg { width: 38px; height: 38px; }
.done h3 { margin: 18px 0 8px; font-size: 26px; letter-spacing: -.03em; }
.done p { color: var(--muted); max-width: 36ch; margin: 0 auto 12px; }
.done__id b { font-family: var(--mono); color: var(--ink); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 2147483000; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); translate: -50% 0; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .3s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast span { flex: 1; }
.toast button { border: 0; background: rgba(255,255,255,.12); color: #ffb66b; font-weight: 700; font-size: 14px; height: 34px; padding: 0 12px; border-radius: 10px; }
.toast button:hover { background: rgba(255,255,255,.2); }

/* ==========================================================================
   Anatomía de un techo — escena 3D con CSS (perspective + preserve-3d).
   El estado por defecto (sin JS / movimiento reducido) es el techo ARMADO;
   motion.js lo "explota" y lo arma capa por capa con el scroll (pin + scrub).
   ========================================================================== */
.anatomy { background: var(--ink); color: #fff; position: relative; overflow: clip; }
.anatomy__pin { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr-h) + 24px) 0 40px; }
.anatomy__in { display: grid; gap: 24px; align-items: center; }
.anatomy__copy .sechead__title { color: #fff; font-size: clamp(30px, 4.4vw, 56px); max-width: 14ch; }
.anatomy__copy .sechead__title em { font-style: normal; color: var(--orange); }

.layers { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: l; }
.layers__item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; transition: opacity .35s, background-color .35s; }
.layers__n { font-family: var(--mono); font-size: 13px; color: var(--orange); padding-top: 3px; }
.layers__item b { font-size: 17px; letter-spacing: -.01em; }
.layers__item p { margin: 2px 0 6px; color: rgba(255,255,255,.66); font-size: 14.5px; }
.layers__link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: #ffb66b; font-weight: 700; font-size: 13.5px; }
.layers__link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.layers__link:hover svg { transform: translateX(3px); }
/* Con animación: capas futuras apagadas, la actual resaltada, las colocadas compactas. */
.motion .layers__item { opacity: .32; }
.motion .layers__item p, .motion .layers__item .layers__link { display: none; }
.motion .layers__item.is-done { opacity: .7; }
.motion .layers__item.is-active { opacity: 1; background: rgba(255,127,0,.1); }
.motion .layers__item.is-active p, .motion .layers__item.is-active .layers__link { display: block; }
.motion .layers__item.is-active .layers__link { display: inline-flex; }

.anatomy__stage { position: relative; }
.anatomy__progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; z-index: 2; display: none; }
.motion .anatomy__progress { display: block; }
.anatomy__progress span { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }

.scene { position: relative; height: clamp(300px, 46svh, 600px); display: grid; place-items: center; perspective: 1600px; perspective-origin: 50% 30%; }
.stack {
  position: relative; width: min(66vw, 300px); aspect-ratio: 4 / 3; transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-36deg);
}
.slab {
  --edge: rgba(0,0,0,.5); --t: 10px;
  position: absolute; inset: 0; border-radius: 3px; transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * 15px));
}
/* Cantos (espesor): cara frontal y lateral rotadas 90°. */
.slab::before, .slab::after { content: ''; position: absolute; background: var(--edge); }
.slab::before { left: 0; right: 0; bottom: 0; height: var(--t); transform-origin: bottom; transform: rotateX(-90deg); }
.slab::after { top: 0; bottom: 0; right: 0; width: var(--t); transform-origin: right; transform: rotateY(90deg); filter: brightness(.8); }
.slab__tag {
  position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  background: rgba(23,25,28,.82); color: #fff; white-space: nowrap; opacity: 0; transition: opacity .3s;
}
.motion .slab.is-active .slab__tag { opacity: 1; }

/* Fuentes: los @font-face están en home.blade.php para versionar sus URLs con ?v=.
   Texturas compuestas a partir de materiales CC0 de ambientCG (ver img/web/techo/CREDITOS.txt).
   Cada capa es una sola imagen 4:3 → no se ve mosaico repetido. */
.slab { background: var(--tex) center / 100% 100% no-repeat; }  /* --tex viene del HTML, con ?v= */
.slab--tirantes { --edge: #8a5a2b; --t: 14px; }
.slab--machimbre { --edge: #9a6a38; --t: 6px; }
.slab--lana { --edge: #c99a1c; --t: 16px; }
.slab--osb { --edge: #9c7444; --t: 6px; }
.slab--membrana { --edge: #aab8c4; --t: 3px; }
.slab--chapa { --edge: #ff7f00; --t: 8px; }
/* Los tirantes son un marco con huecos: sin canto continuo debajo. */
.slab--tirantes::before, .slab--tirantes::after { background: #8a5a2b; }
.scene__shadow {
  position: absolute; left: 50%; bottom: 6%; width: 70%; height: 18%; translate: -50% 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(6px);
}

@media (min-width: 900px) {
  .anatomy__in { grid-template-columns: minmax(320px, 0.9fr) 1.1fr; gap: 40px; }
  .stack { width: min(34vw, 440px); }
  .scene { height: min(72svh, 640px); }
  .slab { transform: translateZ(calc(var(--i) * 20px)); }
}
/* Mobile con animación: escena arriba, solo la capa activa abajo (cabe en una pantalla). */
@media (max-width: 899px) {
  .anatomy__in { grid-template-columns: 1fr; }
  .anatomy__stage { order: -1; }
  .motion .anatomy__pin { padding-top: calc(var(--hdr-h) + 12px); align-items: flex-start; }
  .motion .anatomy__copy .sechead__title { font-size: clamp(26px, 7vw, 34px); }
  .motion .anatomy__copy .eyebrow { display: none; }
  .motion .layers { margin-top: 12px; min-height: 150px; }
  .motion .layers__item:not(.is-active) { display: none; }
}
