/* ==========================================================================
   styles.css — Composición propia · Mundo Maderero Siglo XXI
   Momentos firma: (1) la puerta del hero se abre sobre su bisagra y aparecen
   las cotas · (2) cinta métrica que se extiende con el scroll en el proceso.
   Interacciones propias: tarjetas de portafolio que "abren" como puerta,
   ticket de orden de trabajo en vivo con vista previa a escala.
   ========================================================================== */

html { overflow-x: clip; }
body { overflow-x: clip; }
.display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: var(--display-leading); font-variation-settings: var(--display-settings); text-wrap: balance; }
.display em { font-style: italic; font-weight: 450; color: var(--brand); }
.num { font-variant-numeric: tabular-nums; }
.opt { font-weight: 450; color: var(--ink-3); font-size: 13px; }
.i--sm { width: 15px; height: 15px; stroke-width: 2.5; }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow::before { background: var(--accent); width: 18px; height: 3px; border-radius: 2px; }
.eyebrow--inv { color: var(--accent); }
.section--inverse .section__title, .section--inverse .display { color: var(--on-inverse); }
.section--inverse .display em { color: var(--accent); }

/* ---------- Header ---------- */
.header { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.brand { display: flex; align-items: center; flex: none; }
.brand__logo { height: 42px; width: auto; }
.brand__logo--sm { height: 34px; }
.header .btn--sm { --h: 40px; }
.drawer__meta { text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Botones propios ---------- */
.btn--lime { background: var(--accent); color: var(--on-accent); box-shadow: var(--sh-btn); }
.btn--lime:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.icon-tile { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: var(--on-brand); flex: none; }
.icon-tile--lime { background: var(--accent); color: var(--on-accent); }

/* ==========================================================================
   HERO · puerta que se abre
   ========================================================================== */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 79px, color-mix(in srgb, var(--ink) 4%, transparent) 79px 80px); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-xs); font-size: 13.5px; color: var(--ink-2); margin-bottom: 26px; }
.hero__kicker strong { color: var(--brand-text); }
.hero__kicker .live-dot { background: var(--ok); }
.hero__kicker .live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .7; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
.hero__title { max-width: 12ch; }
.hero__lead { margin-top: 26px; max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero__proof li { display: grid; gap: 2px; }
.hero__proof strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; color: var(--brand); letter-spacing: -.02em; }
.hero__proof span { font-size: 13.5px; color: var(--ink-3); }

.hero__stage { position: relative; justify-self: center; width: min(100%, 460px); padding: 0 56px 56px 0; }
.doorway { position: relative; }
.doorway__frame { position: relative; aspect-ratio: 3 / 4; padding: 16px 16px 0; border-radius: 6px 6px 0 0; perspective: 1500px; perspective-origin: 50% 40%;
  background: linear-gradient(90deg, var(--wood-dark), var(--wood) 18%, color-mix(in srgb, var(--wood) 80%, #fff) 50%, var(--wood) 82%, var(--wood-dark));
  box-shadow: var(--sh-xl), inset 0 0 0 1px rgba(0,0,0,.18); }
.doorway__frame::after { content: ""; position: absolute; left: -24px; right: -24px; bottom: -10px; height: 10px; border-radius: 2px; background: var(--ink); opacity: .85; }
.doorway__view { position: absolute; inset: 16px 16px 0; overflow: hidden; background: var(--ink); }
.doorway__view img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); transition: transform 2.2s var(--ease-out) .5s; }
.door-leaf { position: absolute; inset: 16px 16px 0; z-index: 2; transform-origin: 0 50%; transform: rotateY(80deg);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1.5fr; gap: 9%; padding: 13% 12% 14%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--brand-400), var(--brand-600));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset -14px 0 30px rgba(0,0,0,.18);
  transition: transform 1.7s var(--ease-hinge) .45s; }
.door-leaf__panel { border-radius: 2px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.22), inset 3px 3px 0 rgba(255,255,255,.08), 0 1px 0 rgba(255,255,255,.08); }
.door-leaf__knob { position: absolute; right: 9%; top: 54%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6d8, #c9a35b 55%, #7a5a22); box-shadow: 0 2px 4px rgba(0,0,0,.35); }
.js.motion-pending .door-leaf { transform: none; transition: none; }
.js.motion-pending .doorway__view img { transform: scale(1.18); transition: none; }

.cota { position: absolute; overflow: visible; fill: none; stroke: var(--ink-3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cota--w { left: 0; right: 0; bottom: -46px; width: 100%; height: 24px; }
.cota--h { top: 0; bottom: 0; right: -46px; height: 100%; width: 24px; }
.cota path { vector-effect: non-scaling-stroke; }
.cota-label { position: absolute; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--bg); padding: 2px 8px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--border-strong); white-space: nowrap; }
.cota-label--w { left: 50%; bottom: -46px; transform: translate(-50%, -1px); }
.cota-label--h { right: -46px; top: 50%; transform: translate(50%, -50%) rotate(90deg); transform-origin: 50% 50%; }

.hero__float { z-index: 3; }
.hero__float--a { left: -44px; top: 16%; }
.hero__float--b { right: 4px; bottom: 22%; }

/* ==========================================================================
   Ribbon
   ========================================================================== */
.ribbon { background: var(--accent); color: var(--on-accent); padding: 18px 0; border-block: 1px solid color-mix(in srgb, var(--on-accent) 14%, transparent); }
.ribbon .marquee__group span { font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.ribbon .marquee__group i { font-style: normal; font-size: 14px; opacity: .55; }

/* ==========================================================================
   PORTAFOLIO · tarjetas que abren como puerta
   ========================================================================== */
.port-filter { margin-bottom: 28px; }
.port-filter .num { font-size: 12px; color: var(--ink-4); font-weight: 500; }
.port-filter button[aria-selected="true"] .num { color: var(--brand); }
.port-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 18vw, 262px); grid-auto-flow: dense; gap: var(--grid-gap); }
@media (min-width: 1200px) { .port-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 16vw, 236px); } }
.work { position: relative; min-width: 0; }
.work--xl { grid-column: span 2; grid-row: span 2; }
.work--tall { grid-row: span 2; }
.work--wide { grid-column: span 2; }
.work__btn { position: relative; display: block; width: 100%; height: 100%; border-radius: var(--r-lg); overflow: hidden; perspective: 1200px; background: var(--brand-700); text-align: left; isolation: isolate; }
.work__behind { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 18px; color: var(--accent); font-weight: 650; font-size: 14.5px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 10px), var(--brand-700); }
.work__behind .i { width: 18px; height: 18px; }
.work__leaf { position: absolute; inset: 0; transform-origin: 0 50%; transition: transform .8s var(--ease-hinge), box-shadow .8s var(--ease-out); will-change: transform; }
.work__leaf img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .5s; }
.work__leaf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(0,0,0,.28)); opacity: 0; transition: opacity .6s var(--ease); }
.work__cap { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink); box-shadow: var(--sh-sm); pointer-events: none; transition: transform .5s var(--ease-out); }
.work__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); }
@media (hover: hover) {
  .work__btn:hover .work__leaf, .work__btn:focus-visible .work__leaf { transform: rotateY(-24deg); box-shadow: 18px 0 40px rgba(0,0,0,.35); }
  .work__btn:hover .work__leaf::after, .work__btn:focus-visible .work__leaf::after { opacity: 1; }
  .work__btn:hover .work__cap { transform: translateX(-4px); }
  .work--xl .work__btn:hover .work__leaf { transform: rotateY(-16deg); }
}
.work__btn:active .work__leaf { transform: rotateY(-10deg) scale(.99); }
.work__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ==========================================================================
   PROCESO · cinta métrica
   ========================================================================== */
.process { overflow: clip; }
.process__inner { display: grid; gap: clamp(36px, 5vw, 56px); }
.process__head .section__title { max-width: 16ch; }
.tape { position: relative; display: flex; align-items: center; height: 92px; }
.tape__case { position: relative; z-index: 2; flex: none; width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), inset 0 -6px 0 rgba(0,0,0,.18), 0 12px 24px rgba(0,0,0,.35); color: var(--on-accent); }
.tape__case::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.18); }
.tape__readout { position: relative; font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-align: center; line-height: 1.1; }
.tape__readout b { display: block; font-size: 20px; font-weight: 600; }
.tape__track { position: relative; flex: 1; height: 34px; margin-left: -6px; }
.tape__blade { --p: 1; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p)); border-radius: 0 3px 3px 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.75) 0 1px, transparent 1px 8px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(0,0,0,.85) 0 2px, transparent 2px 40px) 0 0 / 100% 16px no-repeat,
    linear-gradient(180deg, #f3e27a, #e8cd3c);
  box-shadow: 0 6px 16px rgba(0,0,0,.35), inset 0 -2px 0 rgba(0,0,0,.15); }
.tape__blade::after { content: ""; position: absolute; right: -4px; top: -4px; bottom: -4px; width: 7px; border-radius: 2px; background: #a8a9ad; box-shadow: inset -1px 0 0 rgba(0,0,0,.3); }
.process__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.pstep { position: relative; padding: 26px 22px 28px; border-radius: var(--r-xl); background: var(--inverse-2); box-shadow: inset 0 0 0 1px var(--inverse-border); transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease-out); }
.pstep::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); }
.pstep__n { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--on-inverse-2); margin-bottom: 44px; transition: color .4s; }
.pstep h3 { font-family: var(--font-display); font-weight: 560; font-size: var(--fs-h3); letter-spacing: -.015em; line-height: 1.1; color: var(--on-inverse); margin-bottom: 10px; }
.pstep p { font-size: 15px; line-height: 1.6; color: var(--on-inverse-2); }
.pstep.is-active { background: var(--inverse-3); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-4px); }
.pstep.is-active::before, .pstep.is-done::before { transform: none; }
.pstep.is-active .pstep__n, .pstep.is-done .pstep__n { color: var(--accent); }

/* ==========================================================================
   COTIZADOR
   ========================================================================== */
.quote__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); grid-template-areas: "form ticket" "submit ticket"; gap: 16px clamp(20px, 3vw, 40px); align-items: start; }
.quote__form { grid-area: form; display: grid; gap: 14px; }
.ticket { grid-area: ticket; position: sticky; top: calc(var(--header-h) + 20px); }
.quote__submit { grid-area: submit; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.quote__send { --h: 58px; font-size: 16.5px; }
.qstep { margin: 0; min-width: 0; border: 0; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-xs); display: grid; gap: 18px; }
.qstep__legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; font-family: var(--font-display); font-size: 21px; font-weight: 560; letter-spacing: -.01em; }
.qstep__legend + * { clear: both; }
.qstep__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.qtypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qtypes button { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 14px; border-radius: var(--r-lg); text-align: left; font-weight: 650; font-size: 15px; line-height: 1.2; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); transition: box-shadow var(--dur-2), background-color var(--dur-2), transform var(--dur-2) var(--ease); }
.qtypes button .i { grid-row: span 2; width: 22px; height: 22px; color: var(--brand); }
.qtypes button small { font-size: 12.5px; font-weight: 450; color: var(--ink-3); margin-top: 2px; }
.qtypes button:hover { background: var(--muted); transform: translateY(-1px); }
.qtypes button:active { transform: translateY(1px) scale(.99); }
.qtypes button[aria-checked="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.qtypes button[aria-checked="true"]::after { content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.qpresets { display: flex; flex-wrap: wrap; gap: 8px; }
.qpreset { height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 13px; font-weight: 500; background: var(--muted); box-shadow: inset 0 0 0 1px var(--border); transition: background-color var(--dur-1), box-shadow var(--dur-1), color var(--dur-1); }
.qpreset:hover { background: var(--muted-2); }
.qpreset.is-on { background: var(--ink); color: var(--bg); box-shadow: none; }
.qdims { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; transition: opacity .3s; }
.qdims.is-off { opacity: .35; pointer-events: none; }
.qdims label { display: flex; justify-content: space-between; align-items: baseline; }
.qout { font-family: var(--font-mono); font-size: 14px; color: var(--brand-text); }
.qcheck { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; line-height: 1.35; }
.qcheck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qcheck__box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border-input); color: transparent; transition: background-color var(--dur-1), box-shadow var(--dur-1), color var(--dur-1), transform .2s var(--ease); }
.qcheck__box .i { width: 14px; height: 14px; stroke-width: 3; }
.qcheck input:checked + .qcheck__box { background: var(--brand); box-shadow: none; color: #fff; transform: scale(1.06); }
.qcheck input:focus-visible + .qcheck__box { box-shadow: inset 0 0 0 1.5px var(--brand), var(--ring); }
.qcheck--lime { padding: 12px 14px; border-radius: var(--r-lg); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, var(--border)); }
.qextras { display: flex; flex-wrap: wrap; gap: 8px; }
.qextras .qcheck { padding: 9px 14px 9px 10px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); font-weight: 550; transition: background-color var(--dur-1), box-shadow var(--dur-1); }
.qextras .qcheck:hover { background: var(--muted); }
.qextras .qcheck:has(input:checked) { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.qextras .qcheck__box { width: 18px; height: 18px; border-radius: 50%; }
.qextras .qcheck__box .i { width: 11px; height: 11px; }
.qqty { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; border-top: 1px dashed var(--border); padding-top: 16px; }
.qfields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qfields__full { grid-column: 1 / -1; }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.5; }
.qlang { justify-self: start; }

/* Ticket (orden de trabajo) */
.ticket__paper { position: relative; padding: 22px 22px 26px; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface); box-shadow: var(--sh-xl), inset 0 0 0 1px var(--border);
  -webkit-mask: radial-gradient(8px at 50% 100%, #0000 98%, #000) 50% 100% / 20px 100% repeat-x;
          mask: radial-gradient(8px at 50% 100%, #0000 98%, #000) 50% 100% / 20px 100% repeat-x;
  padding-bottom: 34px; }
.ticket__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1.5px dashed var(--border-strong); }
.ticket__logo { height: 32px; width: auto; }
.ticket__folio { text-align: right; font-family: var(--font-mono); line-height: 1.1; }
.ticket__folio small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ticket__folio b { font-size: 16px; }
.ticket__preview { position: relative; margin: 14px 0 6px; border-radius: var(--r-lg); background:
  linear-gradient(var(--muted) 1px, transparent 1px) 0 0 / 16px 16px,
  linear-gradient(90deg, var(--muted) 1px, transparent 1px) 0 0 / 16px 16px, var(--brand-25); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); }
.pv { width: 100%; height: auto; aspect-ratio: 240 / 300; max-height: 300px; }
.pv__floor { stroke: var(--ink-3); stroke-width: 2; }
.pv__frame { fill: var(--wood); stroke: var(--wood-dark); stroke-width: 1.5; }
.pv__rail { fill: var(--ink-2); opacity: 0; transition: opacity .3s; }
.pv__leaf { fill: #F4EFE3; stroke: rgba(0,0,0,.28); stroke-width: 1; transition: fill .4s; }
.pv__grain { color: var(--wood-dark); pointer-events: none; }
.pv__panels rect { fill: none; stroke: rgba(0,0,0,.24); stroke-width: 1.2; }
.pv__panels .glass { fill: color-mix(in srgb, var(--accent) 25%, #cfe7f2); stroke: rgba(0,0,0,.3); }
.pv__panels .glass-line { stroke: rgba(0,0,0,.22); stroke-width: 1; fill: none; }
.pv__knob { fill: var(--ink-2); }
.pv__cota path { fill: none; stroke: var(--brand); stroke-width: 1.4; }
.pv__label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; fill: var(--brand-text); paint-order: stroke; stroke: var(--brand-25); stroke-width: 4px; }
.pv__note { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 650; white-space: nowrap; }
.ticket.is-paint .pv__leaf, .ticket.is-paint .pv__frame { opacity: .25; }
.ticket__lines { display: grid; gap: 0; margin: 10px 0 0; font-size: 14px; }
.ticket__lines > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dotted var(--border-strong); }
.ticket__lines dt { color: var(--ink-3); flex: none; }
.ticket__lines dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ticket__lines .is-new dd { animation: inkIn .6s var(--ease-out); }
@keyframes inkIn { from { color: var(--brand); background: var(--accent-soft); } }
.ticket__foot { position: relative; margin-top: 16px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.ticket__foot strong { color: var(--ink); }
.ticket__stamp { position: absolute; right: 10px; bottom: -6px; padding: 6px 14px; border: 3px solid var(--brand); border-radius: 8px; font-family: var(--font-mono); font-weight: 600; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); background: color-mix(in srgb, var(--surface) 70%, transparent); opacity: 0; transform: rotate(-14deg) scale(1.3); pointer-events: none; transition: transform .45s cubic-bezier(.2,1.6,.4,1), opacity .2s; }
.ticket.is-stamped .ticket__stamp { opacity: 1; transform: rotate(-14deg) scale(1); }

/* ==========================================================================
   SAYER
   ========================================================================== */
.sayer { position: relative; background: var(--brand); color: var(--on-brand); padding-block: clamp(64px, 9vw, 112px); overflow: clip; }
.sayer::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); pointer-events: none; }
.sayer__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.sayer__badge { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); background: color-mix(in srgb, #fff 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 22%, transparent); margin-bottom: 22px; }
.sayer__title { font-size: var(--fs-h2); color: #fff; max-width: 15ch; }
.sayer__title .num { color: var(--accent); font-style: italic; }
.sayer__lead { margin-top: 22px; max-width: 50ch; font-size: var(--fs-lead); line-height: 1.6; color: #DCE9DD; }
.sayer__lead strong { color: #fff; box-shadow: inset 0 -.32em 0 color-mix(in srgb, var(--accent) 55%, transparent); }
.sayer__ctas { margin-top: 30px; }
.sayer .btn--ink { background: var(--accent); color: var(--on-accent); }
.sayer .btn--ink:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.sayer__media { aspect-ratio: 4 / 5; border-radius: var(--r-2xl); box-shadow: var(--sh-xl); transform: rotate(2deg); }
.sayer__media img { height: 100%; }

/* ==========================================================================
   FERRETERÍA (bento)
   ========================================================================== */
.shop { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, clamp(220px, 22vw, 290px)); gap: var(--grid-gap); }
.shop__card { position: relative; display: block; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: #fff; isolation: isolate; box-shadow: var(--sh-sm); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.shop__card--a { grid-row: span 2; }
.shop__media { position: absolute; inset: 0; z-index: -1; }
.shop__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.shop__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,9,0) 30%, rgba(8,14,9,.82)); }
.shop__body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 18px 20px 20px; }
.shop__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.shop__body strong { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 24px); font-weight: 560; line-height: 1.1; letter-spacing: -.01em; }
.shop__card--a .shop__body strong { font-size: clamp(24px, 2.4vw, 34px); }
.shop__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 600; opacity: .8; transition: opacity .2s, gap .2s var(--ease); }
.shop__card:hover { transform: translateY(-3px); box-shadow: var(--sh-xl); }
.shop__card:hover .shop__media img { transform: scale(1.05); }
.shop__card:hover .shop__go { opacity: 1; gap: 9px; }
.shop__card:active { transform: translateY(0) scale(.995); }

/* ==========================================================================
   CONFIANZA
   ========================================================================== */
.trust__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.trust__copy .section__title { font-style: italic; font-weight: 480; }
.trust__copy .section__lead { margin-top: 22px; max-width: 46ch; }
.trust__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
.trust__stats li { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-xs); }
.trust__num { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--brand); }
.trust__stats li span:last-child { font-size: 14.5px; color: var(--ink-3); line-height: 1.45; }
.trust__stats li:nth-child(2) { background: var(--accent); box-shadow: none; }
.trust__stats li:nth-child(2) .trust__num { color: var(--on-accent); }
.trust__stats li:nth-child(2) span:last-child { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; justify-items: start; gap: 18px; }
.faq__head .eyebrow { margin-bottom: 0; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact__copy { display: grid; align-content: start; justify-items: start; gap: 22px; }
.contact__copy .eyebrow { margin-bottom: 0; }
.pill--inv { background: var(--inverse-2); color: var(--on-inverse); box-shadow: inset 0 0 0 1px var(--inverse-border); height: 34px; }
.hours.is-open .live-dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hours.is-closed .live-dot { background: #E8836F; }
.channels { display: grid; gap: 10px; width: 100%; }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--inverse-2); box-shadow: inset 0 0 0 1px var(--inverse-border); transition: background-color .25s, transform .3s var(--ease-out); }
.channel:hover { background: var(--inverse-3); transform: translateX(4px); }
.channel small { display: block; font-size: 12px; color: var(--on-inverse-2); }
.channel strong { display: block; font-weight: 600; color: var(--on-inverse); overflow-wrap: anywhere; }
.channel__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--inverse-3); color: var(--on-inverse); flex: none; }
.channel__ic--lime { background: var(--accent); color: var(--on-accent); }
.channel__go { margin-left: auto; color: var(--on-inverse-2); transition: transform .25s var(--ease); }
.channel:hover .channel__go { transform: translate(2px, -2px); color: var(--accent); }
.contact__map { min-height: 420px; border-radius: var(--r-2xl); overflow: hidden; background: var(--inverse-2); box-shadow: inset 0 0 0 1px var(--inverse-border); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: clamp(56px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); background: var(--bg); }
.footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--border); }
.footer__claim { font-size: clamp(32px, 4.4vw, 60px); max-width: 16ch; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0; }
.footer__brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer__brand p { font-size: 14.5px; color: var(--ink-3); max-width: 32ch; }
.footer__social { display: flex; gap: 4px; margin-top: 14px; margin-left: -10px; }
.footer__col { display: grid; align-content: start; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.footer__col h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.footer__col a { width: fit-content; transition: color var(--dur-1); }
.footer__col a:hover { color: var(--brand); }
.footer__legal { padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-3); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.overlay--dark { background: rgba(6,12,7,.72); }
.lightbox { width: min(1040px, calc(100vw - 32px)); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); overflow: hidden; padding: 0; }
.lightbox__media { position: relative; background: var(--inverse); display: grid; place-items: center; perspective: 1400px; min-height: 360px; }
.lightbox__media img { width: 100%; height: 100%; max-height: min(78vh, 760px); object-fit: contain; transform-origin: 0 50%; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, #fff 92%, transparent); color: var(--ink); box-shadow: var(--sh-lg); transition: transform .2s var(--ease), background-color .2s; }
.lightbox__nav:hover { transform: scale(1.06); background: #fff; }
.lightbox__nav:active { transform: scale(.96); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__body { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 56px 28px 28px; }
.lightbox__close { position: absolute; top: 10px; right: 10px; }
.lightbox__count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.lightbox__title { font-size: clamp(26px, 2.6vw, 36px); }
.lightbox__desc { color: var(--ink-2); line-height: 1.6; }
.lightbox__ctas { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  .hero__float--a { left: -16px; }
  .qtypes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 14ch; }
  .hero__stage { width: min(100%, 400px); margin-top: 8px; }
  .port-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .quote__grid { grid-template-columns: 1fr; grid-template-areas: "form" "ticket" "submit"; }
  .ticket { position: relative; top: 0; max-width: 520px; width: 100%; justify-self: center; }
  .sayer__grid, .trust__grid, .faq, .contact__grid { grid-template-columns: 1fr; }
  .sayer__media { max-width: 420px; }
  .faq__head { position: static; }
  .shop { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: clamp(200px, 40vw, 280px); }
  .shop__card--a { grid-column: span 2; grid-row: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .lightbox { grid-template-columns: 1fr; max-height: calc(100dvh - 32px); overflow-y: auto; }
  .lightbox__media img { max-height: 56vh; }
}
@media (max-width: 767px) {
  .brand__logo { height: 36px; }
  .hero { padding-top: 20px; }
  .hero__kicker { font-size: 12.5px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__proof { gap: 10px 22px; }
  .hero__proof strong { font-size: 24px; }
  .hero__stage { padding: 0 44px 48px 0; }
  .hero__float { font-size: 13px; }
  .hero__float--a { left: -8px; top: 8%; }
  .hero__float--b { right: 10px; bottom: 18%; }
  .cota--w { bottom: -38px; } .cota-label--w { bottom: -38px; }
  .cota--h { right: -38px; } .cota-label--h { right: -38px; }
  .port-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 52vw, 260px); gap: 10px; }
  .port-filter { width: 100%; }
  .work__cap { left: 8px; bottom: 8px; font-size: 12.5px; padding: 4px 10px 4px 4px; }
  .work__tag { display: none; }
  .work__behind { display: none; }
  .tape { height: 72px; }
  .tape__case { width: 72px; height: 72px; border-radius: 18px; }
  .tape__readout b { font-size: 16px; }
  .process__steps { grid-template-columns: 1fr; }
  .pstep__n { margin-bottom: 18px; }
  .qtypes { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qtypes button { padding: 12px; font-size: 14px; }
  .qtypes button small { display: none; }
  .qdims, .qfields { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .shop__card--a { grid-column: auto; }
  .trust__stats li { padding: 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__cta .btn { width: 100%; }
  .lightbox__body { padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
  .lightbox__close { top: 8px; right: 8px; background: var(--surface); }
}
@media (max-width: 400px) {
  .hero__float--b { display: none; }
  .trust__stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .door-leaf { transform: rotateY(80deg); }
  html:not(.force-motion) .hero__kicker .live-dot::after { animation: none; }
}
