/* Kabbet · "Bitácora de obra"
   Concreto claro, carbón y naranja de seguridad. Esquinas rectas en todo el sitio. */

:root {
  --ink: #1f1d1b;
  --concrete: #efeae2;
  --concrete-2: #e3ddd3;
  --concrete-3: #f7f4ee;
  --orange: #f26b1d;
  --orange-ink: #9c3e06;
  --grey: #8a8378;
  --grey-text: #5c564e;
  --hh: 68px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1360px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --f-display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 12px); }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}
/* Textura de ruido: solo en un pseudo fijo, sin eventos */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .18  0 0 0 0 .16  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--ink); color: var(--concrete); padding: 0.7rem 1rem; z-index: 100;
  font-weight: 600; font-size: 0.9375rem;
}
.skip:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.mono { font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.label {
  font-family: var(--f-display); font-size: 0.875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-text);
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  height: var(--hh);
  background: var(--concrete);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; min-height: 44px; }
.brand img { height: 38px; width: auto; }
.brand__t { display: flex; flex-direction: column; line-height: 1; }
.brand__n {
  font-weight: 900; font-stretch: 62%; font-size: 1.55rem; letter-spacing: 0.01em; text-transform: uppercase;
}
.brand__s { font-weight: 600; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-text); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.nav__link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 8px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out);
}
.nav__tel { margin-left: 0.75rem; }

.menu-btn {
  display: none; width: 48px; height: 48px; padding: 0; background: transparent; border: 1px solid var(--ink); cursor: pointer; position: relative;
}
.menu-btn i {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink);
  transition: transform 260ms var(--ease-out), opacity 160ms ease;
}
.menu-btn i:nth-child(1) { top: 16px; }
.menu-btn i:nth-child(2) { top: 23px; }
.menu-btn i:nth-child(3) { top: 30px; }
.menu-open .menu-btn i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; min-height: 52px; padding: 0 1.4rem;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--f-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--orange); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--primary:active { box-shadow: 1px 1px 0 var(--ink); transform: translate(3px, 3px); }
.btn--sm { min-height: 44px; padding: 0 1rem; font-size: 0.9375rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(.btn--primary):hover { background: var(--ink); color: var(--concrete); }
  .btn--primary { transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
  .btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
  .btn--primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
  .nav__link:hover::after { transform: scaleX(1); }
}
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

/* ---------- Obra: hero + etapas con casa pegajosa ---------- */
.obra { position: relative; }
.cols {
  position: absolute; inset: 0 0 auto 0; height: 100svh; max-height: 1100px; pointer-events: none;
}
.cols__in {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); height: 100%;
}
.cols__in i {
  display: block; height: 100%;
  background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 11%, transparent) 0 1px, transparent 1px calc(100% / 12));
}
.obra__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem;
}
.obra__main { display: contents; }
.hero { grid-column: 1 / span 8; grid-row: 1; min-width: 0; }
.etapas { grid-column: 1 / span 8; grid-row: 2; min-width: 0; }
.obra__panel { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: start; }

.hero { min-height: calc(100dvh - var(--hh)); padding: clamp(2rem, 6vh, 4.5rem) 0 4rem; display: flex; flex-direction: column; justify-content: center; }
/* Datos de la empresa: cajetín de plano */
.cajetin { grid-column: 1 / -1; border: 2px solid var(--ink); background: var(--concrete-3); }
.cajetin__bar { display: flex; justify-content: space-between; gap: 1rem; background: var(--ink); color: var(--concrete); padding: 0.7rem 1.2rem; }
.cajetin__bar .label { color: var(--concrete); }
.cajetin dl { margin: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cajetin__c { padding: 1rem 1.2rem 1.15rem; border-top: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-left: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); min-width: 0; }
.cajetin__c:nth-child(1) { grid-column: 1 / span 12; border-top: 0; border-left: 0; }
.cajetin__c:nth-child(2) { grid-column: 1 / span 4; border-left: 0; }
.cajetin__c:nth-child(3) { grid-column: 5 / span 4; }
.cajetin__c:nth-child(4) { grid-column: 9 / span 4; }
.cajetin__c:nth-child(5) { grid-column: 1 / span 4; border-left: 0; }
.cajetin__c:nth-child(6) { grid-column: 5 / span 8; }
.cajetin dt { font-family: var(--f-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-text); }
.cajetin dd { margin: 0.35rem 0 0; font-weight: 700; font-stretch: 75%; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; }
.cajetin dd a { text-decoration: none; border-bottom: 2px solid var(--orange); }
.cajetin dd.mono-v { font-family: var(--f-mono); font-weight: 500; font-stretch: 100%; letter-spacing: 0.04em; font-size: clamp(1.1rem, 2vw, 1.4rem); }
.hero__h1 {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(3.5rem, 7.8vw, 7rem); line-height: 0.9; letter-spacing: -0.005em;
}
.hero__h1 .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__h1 .ln > span { display: block; will-change: transform; }
.mark { background: var(--orange); padding: 0 0.1em; margin-left: -0.02em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__sub { margin-top: 1.8rem; max-width: 34rem; font-size: 1.2rem; line-height: 1.5; }
.hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; }

.panel {
  position: sticky; top: calc(var(--hh) + 1rem);
  height: calc(100dvh - var(--hh) - 2rem); max-height: 650px; overflow: hidden;
  margin-top: 1.5rem;
  display: flex; flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  background: color-mix(in srgb, var(--concrete-3) 70%, transparent);
}
.panel__fig { margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.house { flex: 1; min-height: 0; width: 100%; padding: 0.75rem 0.75rem 0; }
.house svg { width: 100%; height: 100%; overflow: visible; }
.panel__cap {
  display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 1rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); padding: 0.75rem 1rem 0.9rem;
}
.panel__n { font-weight: 900; font-stretch: 62%; font-size: 3rem; line-height: 0.85; color: var(--ink); min-width: 2ch; }
.panel__t { font-family: var(--f-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.3; }

/* casa */
.house .g { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }
.house .g * { vector-effect: non-scaling-stroke; }
.house .g.is-active { stroke: var(--orange); }
.house .g { transition: stroke 300ms ease; }
.house .ground { stroke: var(--ink) !important; }
.house .ghost { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0.3; }
.house .ghost * { vector-effect: non-scaling-stroke; }
.house .dash { stroke-dasharray: 5 6; stroke-width: 1.4; }
.house .thin { stroke-width: 1.4; }
.house .fill { fill: var(--orange); stroke: none; }
.house .door-fill { fill: var(--orange); stroke: none; }
.house text { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; fill: var(--ink); text-transform: uppercase; }

/* etapas */
.etapas { padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(2rem, 6vh, 4rem); }
.etapas__head { margin-bottom: clamp(2rem, 5vh, 3.5rem); max-width: 40rem; }
.h2 { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 0.92; }
.etapas__head p { margin-top: 1.1rem; color: var(--grey-text); max-width: 34rem; }
.steps { position: relative; padding-left: clamp(1.75rem, 3.5vw, 3rem); }
.steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.step { position: relative; padding-bottom: clamp(3rem, 8vh, 5rem); }
.step:last-child { padding-bottom: 1rem; }
.step::before {
  content: ""; position: absolute; left: calc(-1 * clamp(1.75rem, 3.5vw, 3rem) + 1px); top: 0.55rem; width: 14px; height: 14px;
  background: var(--concrete); border: 2px solid var(--ink); transition: background-color 250ms ease;
}
.step.is-on::before { background: var(--orange); }
.step__top { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.9rem; }
.step__num { font-family: var(--f-mono); font-weight: 500; font-size: 0.9rem; color: var(--orange-ink); letter-spacing: 0.1em; }
.step__rule { flex: 1; height: 1px; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.step h3 { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 0.95; }
.step__lead { margin-top: 0.9rem; max-width: 32rem; color: var(--grey-text); }
.svc { margin-top: 1.4rem; display: grid; gap: 0.7rem; max-width: 38rem; }
.svc li { position: relative; padding-left: 1.5rem; line-height: 1.4; }
.svc li::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 0.6rem; height: 0.6rem; background: var(--ink); }

.steps__note { margin: 1.5rem 0 0 clamp(1.75rem, 3.5vw, 3rem); font-size: 0.875rem; color: var(--grey-text); }

/* ---------- Empresa: cinta métrica ---------- */
.empresa { position: relative; padding: clamp(4rem, 10vh, 7rem) 0; background: var(--concrete-2); border-block: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.empresa__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.empresa__top p { margin-top: 1.1rem; max-width: 36rem; color: var(--grey-text); }
.empresa__logo { width: clamp(150px, 16vw, 210px); height: auto; }
.tape { position: relative; margin-top: clamp(2.5rem, 6vh, 4rem); height: 46px; background: var(--orange); border: 2px solid var(--ink); overflow: hidden; }
.tape__ticks {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 120px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px);
  background-size: 100% 26px, 100% 18px, 100% 10px;
  background-repeat: no-repeat;
  background-position: 0 0;
}
.tape__cover { position: absolute; inset: 0; background: var(--concrete-2); transform-origin: right; transform: scaleX(0); }
.cotas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); margin-top: 0; }
.cota { position: relative; padding: 2.2rem 0 0; }
.cota::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 1.6rem; background: var(--ink); }
.cota::after { content: ""; position: absolute; left: -3px; top: 1.45rem; width: 8px; height: 8px; background: var(--orange); border: 1px solid var(--ink); }
.cota__v { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; }
.cota__l { margin-top: 0.6rem; color: var(--grey-text); font-size: 0.98rem; max-width: 22rem; }
.hazard { height: 14px; background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--orange) 14px 28px); }

/* ---------- Contacto ---------- */
.contacto { padding: clamp(4rem, 10vh, 7rem) 0; }
.contacto__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 3rem; }
.contacto__intro { grid-column: 1 / span 5; }
.contacto__intro p { margin-top: 1.2rem; max-width: 26rem; color: var(--grey-text); }
.direct { margin-top: 2.2rem; display: grid; gap: 0.9rem; justify-items: start; }
.direct .btn { max-width: 100%; white-space: normal; text-align: left; }
.sheet { grid-column: 6 / span 7; border: 2px solid var(--ink); background: var(--concrete-3); box-shadow: 8px 8px 0 var(--ink); }
.sheet__bar { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; border-bottom: 2px solid var(--ink); background: var(--ink); color: var(--concrete); padding: 0.7rem 1.2rem; }
.sheet__bar .label { color: var(--concrete); }
.sheet__body { padding: clamp(1.1rem, 3vw, 2rem); display: grid; gap: 1.25rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.field label small { text-transform: none; letter-spacing: 0; color: var(--grey-text); font-size: 0.875rem; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; background: #fff; border: 2px solid var(--ink); border-radius: 0;
  transition: box-shadow 160ms var(--ease-out), border-color 160ms ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 2px; box-shadow: 4px 4px 0 var(--orange); }
.field [aria-invalid="true"] { border-color: #a31b0b; }
.err { font-weight: 500; font-size: 0.9375rem; color: #a31b0b; min-height: 0; }
.err:empty { display: none; }
.field label.check { text-transform: none; letter-spacing: 0; font-family: var(--f-display); font-size: 1rem; }
.check { min-height: 44px; display: grid; grid-template-columns: 24px 1fr; gap: 0.75rem; align-items: start; font-size: 0.95rem; line-height: 1.45; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.check a { color: var(--orange-ink); font-weight: 600; }
.sheet__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.status { font-size: 0.9375rem; color: var(--grey-text); max-width: 26rem; }
.status a { color: var(--orange-ink); font-weight: 600; word-break: break-all; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--concrete); padding: clamp(2.5rem, 6vh, 4rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.footer__brand img { width: 64px; height: auto; }
.footer__brand b { display: block; font-weight: 900; font-stretch: 62%; font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.footer__brand small { display: block; margin-top: 4px; font-size: 0.875rem; color: #b8b1a5; }
.footer__rs { font-weight: 700; font-stretch: 75%; text-transform: uppercase; font-size: 1.35rem; line-height: 1.15; max-width: 30rem; }
.footer__meta { margin-top: 0.9rem; color: #b8b1a5; font-size: 0.95rem; }
.footer__links { display: grid; gap: 0.35rem; justify-items: start; font-size: 0.98rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--concrete) 40%, transparent); }
.footer__links a:hover { border-bottom-color: var(--orange); color: var(--orange); }
.footer :focus-visible { outline-color: var(--orange); }
.footer__base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--concrete) 25%, transparent); color: #a8a196; font-size: 0.875rem; }

/* ---------- Aviso de privacidad ---------- */
.legal { padding: clamp(3rem, 9vh, 6rem) 0 clamp(4rem, 10vh, 7rem); min-height: 60dvh; }
.legal__body { margin-top: 2rem; max-width: 40rem; display: grid; gap: 1.4rem; }
.legal__ph { border: 2px dashed var(--ink); padding: 1.4rem; background: var(--concrete-3); font-family: var(--f-mono); font-size: 0.95rem; }
.legal__rs { font-family: var(--f-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-text); }

/* ---------- Estados iniciales de movimiento (solo con JS y sin reduced-motion) ---------- */
.js.anim .hero__h1 .ln > span { transform: translateY(105%); }
.js.anim .hero__fade { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .nav.is-mobile { display: flex; }
  .header .nav {
    position: fixed; inset: 0; top: var(--hh); z-index: 30;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 1.5rem var(--gutter) 2rem; background: var(--concrete);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 260ms;
    display: flex; overflow-y: auto;
  }
  .menu-open .header .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__link { font-size: 1.5rem; font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; min-height: 64px; padding: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); letter-spacing: 0.02em; }
  .nav__link::after { display: none; }
  .nav__tel { margin: 1.5rem 0 0; }
  .nav > * { opacity: 0; transform: translateY(12px); transition: opacity 240ms ease, transform 300ms var(--ease-out); }
  .menu-open .nav > * { opacity: 1; transform: none; }
  .menu-open .nav > *:nth-child(2) { transition-delay: 40ms; }
  .menu-open .nav > *:nth-child(3) { transition-delay: 80ms; }
  .menu-open .nav > *:nth-child(4) { transition-delay: 120ms; }

  .obra__grid { display: flex; flex-direction: column; }
  .hero { display: contents; }
  .hero__h1 { order: 1; padding-top: 1.5rem; }
  .hero__sub { order: 2; margin-top: 1.1rem; font-size: 1.1rem; }
  .obra__panel { order: 3; align-self: stretch; }
  .hero__cta { order: 4; margin-top: 1.25rem; padding-bottom: 2.5rem; }
  .etapas { order: 5; }
  .cajetin__c:nth-child(n) { grid-column: 1 / -1; border-left: 0; }
  .cajetin__c:nth-child(1) { border-top: 0; }
  .panel {
    position: sticky; top: var(--hh); z-index: 20; height: 220px; margin: 1.1rem calc(-1 * var(--gutter)) 0;
    flex-direction: row; background: var(--concrete); border-width: 1px 0; border-color: color-mix(in srgb, var(--ink) 40%, transparent);
  }
  .panel__fig { flex-direction: row; align-items: stretch; width: 100%; }
  .house { flex: 0 0 64%; padding: 0.4rem 0 0.4rem var(--gutter); }
  .panel__cap { flex: 1; border-top: 0; border-left: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); align-content: end; padding: 0.75rem var(--gutter) 0.9rem 0.9rem; grid-template-columns: 1fr; gap: 0.35rem; }
  .panel__n { font-size: 3rem; }
  .cols { display: none; }
  .empresa__top { grid-template-columns: 1fr; }
  .empresa__logo { order: -1; }
  .cotas { grid-template-columns: 1fr; gap: 1.5rem; }
  .cota { padding-top: 1.6rem; border-top: 0; }
  .cota::before, .cota::after { display: none; }
  .tape { margin-bottom: 2rem; }
  .contacto__intro, .sheet { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .row2 { grid-template-columns: 1fr; }
  .hero__cta { flex-wrap: nowrap; gap: 0.75rem; }
  .hero__cta .btn { padding: 0 0.5rem; min-width: 0; white-space: normal; text-align: center; line-height: 1.15; }
  .hero__cta .btn--primary { flex: 6 1 0; }
  .hero__cta .btn:not(.btn--primary) { flex: 4 1 0; }
  .direct .btn { width: 100%; justify-content: flex-start; }
  .sheet { box-shadow: 5px 5px 0 var(--ink); margin-right: 5px; }
  .sheet__foot .btn { width: 100%; }
  .brand__s { display: none; }
}
@media (min-width: 601px) and (max-width: 980px) {
  .cajetin__c:nth-child(n) { grid-column: auto; }
  .cajetin dl { grid-template-columns: 1fr 1fr; }
  .cajetin__c:nth-child(1) { grid-column: 1 / -1; }
  .cajetin__c:nth-child(odd):not(:first-child) { border-left: 0; }
}
@media (min-width: 981px) and (max-width: 1180px) {
  .panel__n { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
