/* ==========================================================================
   PINSOL MADERERÍA — Hoja de estilos
   Concepto: materiales protagonistas, precisión en los acabados, oficio contemporáneo.
   ========================================================================== */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #12100e;
  --ink-2: #1a1714;
  --ink-3: #26211c;
  --paper: #f5f0e7;
  --paper-2: #ece4d6;
  --white: #fffdf9;
  --gold: #f5b70a;
  --gold-2: #ffd044;
  --gold-3: #e0a500;
  --gold-ink: #7a5600;
  --amber: #e98f2a;
  --wood: #c08a55;
  --on-ink: #f5f0e7;
  --on-ink-muted: #bdb3a5;
  --on-paper: #1a1714;
  --on-paper-muted: #5a5248;
  --line-ink: rgba(245, 240, 231, .14);
  --line-paper: rgba(26, 23, 20, .16);

  --f-display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 4px;
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; background: var(--ink); color: var(--on-ink); font-family: var(--f-body); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--gold); color: var(--ink); padding: .75rem 1rem; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }
.section-paper :focus-visible, .section-paper2 :focus-visible, .section-gold :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
.display { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: .005em; font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem); text-wrap: balance; }
.display-xl { font-size: clamp(3rem, 1.6rem + 4.6vw, 6.2rem); }
.h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1; letter-spacing: .01em; }
.h4 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; line-height: 1; letter-spacing: .02em; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.55; max-width: 38ch; }
.muted { color: var(--on-ink-muted); }
.muted-dark { color: var(--on-paper-muted); }
.eyebrow { font-family: var(--f-mono); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; color: var(--on-paper-muted); }
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; opacity: .7; }
.eyebrow-gold { color: var(--gold); }
.eyebrow-amber { color: var(--amber); }
.eyebrow-ink { color: var(--ink); }
.hero-eyebrow::before { display: none; }
.dot { width: .55rem; height: .55rem; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(245, 183, 10, .22); }

.img-note { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; line-height: 1.4; color: rgba(245, 240, 231, .82); }
.img-note-dark { color: var(--on-paper-muted); margin-top: 1.5rem; }

/* ---------- Botones ---------- */
.btn { --bg: transparent; --fg: currentColor; --bd: currentColor; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 48px; padding: .8rem 1.35rem; border: 2px solid var(--bd); background: var(--bg); color: var(--fg); font-weight: 750; font-size: .98rem; letter-spacing: .01em; text-decoration: none; border-radius: var(--radius); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); white-space: nowrap; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn-gold { --bg: var(--gold); --fg: var(--ink); --bd: var(--gold); }
.btn-gold:hover { --bg: var(--gold-2); --bd: var(--gold-2); }
.btn-ink { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn-ink:hover { --bg: var(--ink-3); --bd: var(--ink-3); }
.btn-ghost { --fg: var(--on-ink); --bd: rgba(245, 240, 231, .55); }
.btn-ghost:hover { --bg: var(--on-ink); --fg: var(--ink); --bd: var(--on-ink); }
.btn-line { --fg: var(--on-ink); --bd: rgba(245, 240, 231, .5); }
.btn-line:hover { --bg: var(--gold); --fg: var(--ink); --bd: var(--gold); }
.btn-line-dark { --fg: var(--ink); --bd: rgba(18, 16, 14, .5); }
.btn-line-dark:hover { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn-amber { --bg: var(--amber); --fg: var(--ink); --bd: var(--amber); }
.btn-amber:hover { --bg: #f5a54a; --bd: #f5a54a; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.is-solid { background: rgba(18, 16, 14, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-ink); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--on-ink); }
.brand-emblem { width: 54px; height: auto; flex: none; }
.brand-word { display: flex; flex-direction: column; justify-content: center; }
.brand-wordmark { width: 104px; height: auto; }
.brand-sub { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); margin-top: .42rem; line-height: 1; }
.brand-lg { flex-direction: column; align-items: flex-start; gap: .9rem; }
.brand-logo { width: 150px; height: auto; }
.brand-sub-lg { font-size: .74rem; margin-top: 0; padding-left: .2rem; }
@media (max-width: 420px) { .brand-emblem { width: 46px; } .brand-wordmark { width: 92px; } .brand-sub { font-size: .54rem; letter-spacing: .36em; } }

.nav-list { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.8rem); }
.nav-list a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .93rem; position: relative; padding: .5rem 0; }
.nav-list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-list a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .9rem; background: transparent; border: 2px solid rgba(245, 240, 231, .4); border-radius: var(--radius); cursor: pointer; font-weight: 700; color: var(--on-ink); }
  .nav-toggle-bars { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transition: border-color .2s; }
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { border-color: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(45deg); box-shadow: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: currentColor; transform: rotate(-45deg); }
  .nav-list { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--ink); border-top: 1px solid var(--line-ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); display: none; }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--line-ink); }
  .nav-list a:not(.btn) { display: block; padding: 1rem 0; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-cta-item { border: 0 !important; padding-top: 1.2rem; }
  .nav-cta-item .btn { width: 100%; min-height: 54px; font-size: 1.05rem; }
  .js .site-header.menu-open { background: var(--ink); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; overflow: hidden; background: #0d0b09; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 72% 55%; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(13, 11, 9, .92) 0%, rgba(13, 11, 9, .74) 32%, rgba(13, 11, 9, .15) 62%, rgba(13, 11, 9, 0) 100%),
  linear-gradient(0deg, rgba(13, 11, 9, .95) 0%, rgba(13, 11, 9, 0) 34%),
  linear-gradient(180deg, rgba(13, 11, 9, .6) 0%, rgba(13, 11, 9, 0) 18%); }
.hero-inner { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .86; font-size: clamp(3rem, .9rem + 5.2vw, 7.2rem); letter-spacing: .002em; margin-bottom: 1.6rem; }
.hero-title .line { display: block; overflow: hidden; padding-top: .14em; margin-top: -.14em; padding-bottom: .04em; white-space: nowrap; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, .98rem + .45vw, 1.32rem); max-width: 40ch; color: #e9e2d6; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.hero-address { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-mono); font-size: .82rem; letter-spacing: .02em; color: #e9e2d6; background: rgba(18, 16, 14, .55); border: 1px solid var(--line-ink); padding: .5rem .8rem; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pin { width: 16px; height: 16px; fill: var(--gold); flex: none; }
.hero-strata { border-top: 1px solid var(--line-ink); background: rgba(13, 11, 9, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.strata-inner { display: flex; flex-wrap: wrap; gap: .4rem .9rem; padding-block: 1rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-muted); }
.strata-inner span { display: inline-flex; align-items: center; gap: .9rem; }
.strata-inner span + span::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; }
.hero-note { position: absolute; right: var(--gutter); bottom: 4.1rem; z-index: 1; text-align: right; max-width: 22ch; }

@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-media { top: auto; height: 74vh; min-height: 520px; }
  .hero-media img { object-position: 62% 78%; }
  .hero-shade { top: auto; height: 74vh; min-height: 520px; background:
    linear-gradient(180deg, #0d0b09 0%, rgba(13, 11, 9, .55) 26%, rgba(13, 11, 9, .08) 52%, rgba(13, 11, 9, .55) 80%, rgba(13, 11, 9, .96) 100%); }
  .hero-inner { padding-top: calc(var(--header-h) + 1.6rem); padding-bottom: max(40vh, 300px); position: relative; }
  .hero-title { font-size: clamp(2.7rem, 12.4vw, 4.4rem); }
  .hero-title .line { white-space: normal; }
  .hero-lead { margin-bottom: 1.6rem; }
  .hero-actions { flex-direction: column; margin-bottom: 0; }
  .hero-actions .btn { width: 100%; min-height: 52px; }
  .hero-address { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.2rem; border-radius: var(--radius); font-size: .76rem; }
  .strata-inner { font-size: .66rem; gap: .35rem .7rem; }
  .hero-note { position: static; text-align: left; padding: .2rem var(--gutter) 1rem; background: rgba(13, 11, 9, .72); max-width: none; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-paper { background: var(--paper); color: var(--on-paper); }
.section-paper2 { background: var(--paper-2); color: var(--on-paper); }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-gold { background: var(--gold); color: var(--ink); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .display { max-width: 18ch; }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; max-width: none; }
.section-intro { max-width: 42ch; font-size: 1.06rem; color: var(--on-paper-muted); padding-bottom: .4rem; }
.section-gold .section-intro { color: rgba(18, 16, 14, .78); }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------- Materiales ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; gap: clamp(.8rem, 1.5vw, 1.25rem); }
.mat { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--on-ink); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; }
.mat-media { position: absolute; inset: 0; z-index: -1; }
.mat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mat:hover .mat-media img { transform: scale(1.045); }
.mat-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 11, 9, .96) 0%, rgba(13, 11, 9, .82) 34%, rgba(13, 11, 9, .25) 66%, rgba(13, 11, 9, 0) 82%); }
.mat-wide .mat-media::after { background: linear-gradient(90deg, rgba(13, 11, 9, .95) 0%, rgba(13, 11, 9, .8) 42%, rgba(13, 11, 9, .1) 78%), linear-gradient(0deg, rgba(13, 11, 9, .7) 0%, rgba(13, 11, 9, 0) 50%); }
.mat-wide .mat-media img { object-position: 75% 50%; }
.mat-media .img-note { position: absolute; top: .9rem; right: 1rem; z-index: 1; text-align: right; max-width: 24ch; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.mat-body { padding: clamp(1.2rem, 2.4vw, 2.2rem); }
.mat-body p:not(.mat-num) { max-width: 36ch; color: #e6ddcf; margin-bottom: 1.2rem; }
.mat-num { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em; color: var(--gold); margin-bottom: .6rem; }
.mat-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .9; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); margin-bottom: .7rem; }
.mat-feature { grid-column: 1 / span 7; grid-row: 1 / span 2; min-height: clamp(560px, 62vw, 820px); }
.mat-feature .mat-title { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.8rem); }
.mat-wide { grid-column: 8 / span 5; min-height: clamp(330px, 30vw, 400px); }
@media (max-width: 860px) {
  .mat-grid { grid-template-columns: 1fr; }
  .mat-feature, .mat-wide { grid-column: auto; grid-row: auto; }
  .mat-feature { min-height: 560px; }
  .mat-wide { min-height: 420px; }
}

.mat-list { margin-top: clamp(1.6rem, 3vw, 2.6rem); border-top: 2px solid var(--ink); }
.mat-row { display: grid; grid-template-columns: 96px 3.2rem minmax(0, 15rem) minmax(0, 1fr) auto; align-items: center; gap: 1.4rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line-paper); }
.mat-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); }
.mat-thumb-type { display: grid; place-items: center; background: var(--ink); color: var(--gold); font-family: var(--f-display); font-weight: 900; font-size: 2rem; letter-spacing: .04em; background-image: repeating-linear-gradient(90deg, rgba(245, 183, 10, .08) 0 2px, transparent 2px 9px); }
.mat-row .mat-num { color: var(--gold-ink); margin: 0; }
.mat-row-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); line-height: .95; }
.mat-row-text { color: var(--on-paper-muted); }
.mat-row .btn-line { --fg: var(--ink); --bd: rgba(18, 16, 14, .45); }
.mat-row .btn-line:hover { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.mat-row:hover .mat-row-title { color: var(--gold-ink); }
@media (max-width: 760px) {
  .mat-row { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "thumb title" "thumb text" "btn btn"; gap: .2rem 1rem; padding-block: 1.1rem; }
  .mat-thumb { grid-area: thumb; width: 72px; height: 72px; align-self: start; }
  .mat-row .mat-num { display: none; }
  .mat-row-title { grid-area: title; }
  .mat-row-text { grid-area: text; font-size: .95rem; }
  .mat-row .btn { grid-area: btn; justify-self: start; margin-top: .7rem; }
}

/* ---------- Enchapado ---------- */
.enchapado { padding-top: 0; overflow: hidden; }
.enchapado-hero { position: relative; }
.enchapado-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2rem; min-height: clamp(560px, 64vw, 860px); }
.enchapado-copy { padding-block: var(--section-y) 3rem; position: relative; z-index: 1; }
.enchapado-copy .display-xl { margin-bottom: 1.6rem; max-width: 9ch; }
.enchapado-copy .lead { margin-bottom: 1.2rem; }
.enchapado-media { position: relative; align-self: stretch; margin-right: calc(-1 * max(var(--gutter), (100vw - var(--wrap)) / 2 + var(--gutter))); }
.enchapado-media picture, .enchapado-media img { width: 100%; height: 100%; }
.enchapado-media img { object-fit: cover; object-position: 40% 50%; }
.enchapado-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--ink) 0%, rgba(18, 16, 14, 0) 26%), linear-gradient(0deg, var(--ink) 0%, rgba(18, 16, 14, 0) 22%); }
.enchapado-media .img-note { position: absolute; z-index: 2; right: var(--gutter); bottom: 1.2rem; }
@media (max-width: 860px) {
  .enchapado-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .enchapado-copy { padding-bottom: 2rem; }
  .enchapado-media { margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 5; }
  .enchapado-media::before { background: linear-gradient(180deg, var(--ink) 0%, rgba(18, 16, 14, 0) 20%), linear-gradient(0deg, var(--ink) 0%, rgba(18, 16, 14, 0) 22%); }
}

.anatomy { margin-top: clamp(3rem, 7vw, 6rem); }
.anatomy-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-ink); }
.anatomy-frame img { width: 100%; }
.anatomy-tags { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-mono); font-size: clamp(.68rem, .6rem + .3vw, .86rem); letter-spacing: .06em; text-transform: uppercase; background: rgba(18, 16, 14, .82); border: 1px solid rgba(245, 183, 10, .55); color: var(--on-ink); padding: .4rem .7rem .4rem .45rem; border-radius: 999px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); white-space: nowrap; }
.tag-n { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 500; }
.tag-face { left: 8%; top: 6%; }
.tag-core { left: 24%; top: 52%; }
.tag-edge { left: 64%; top: 82%; }
.anatomy figcaption { margin-top: .9rem; }
@media (max-width: 620px) {
  .anatomy-tags { position: static; display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem; background: var(--ink-2); }
  .tag { position: static; }
}

.enchapado-brief { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem; align-items: start; }
.enchapado-brief .h3 { max-width: 14ch; color: var(--gold); }
.brief-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.brief-list li { display: grid; grid-template-columns: 2.6rem 1fr; grid-template-rows: auto auto; column-gap: .9rem; padding-block: 1.2rem; border-top: 1px solid var(--line-ink); }
.brief-n { grid-row: 1 / span 2; font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; line-height: .8; color: var(--gold); }
.brief-list strong { font-size: 1.1rem; }
.brief-list li > span:last-child { color: var(--on-ink-muted); font-size: .96rem; }
.enchapado-brief .btn { grid-column: 2; justify-self: start; margin-top: 1rem; }
@media (max-width: 860px) {
  .enchapado-brief { grid-template-columns: 1fr; }
  .brief-list { grid-template-columns: 1fr; }
  .enchapado-brief .btn { grid-column: auto; width: 100%; white-space: normal; }
}

/* ---------- Aplicaciones ---------- */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.8rem); align-items: start; }
.app img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.app figcaption { padding-top: 1.1rem; border-top: 2px solid var(--ink); margin-top: 1rem; }
.app-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.8rem); line-height: .9; margin-bottom: .4rem; }
.app p { color: var(--on-paper-muted); max-width: 30ch; }
.app-offset { margin-top: clamp(2rem, 7vw, 6rem); }
@media (max-width: 760px) {
  .apps { grid-template-columns: 1fr; gap: 2.4rem; }
  .app-offset { margin-top: 0; }
  .app img { aspect-ratio: 4 / 3; }
}

/* ---------- Cómo cotizar ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 3rem; counter-reset: s; border-top: 2px solid var(--ink); }
.step { padding: 1.6rem 2rem 2rem 0; position: relative; }
.step + .step { padding-left: 2rem; border-left: 1px solid rgba(18, 16, 14, .25); }
.step-n { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(4.2rem, 3rem + 4vw, 7.5rem); line-height: .8; margin-bottom: 1.2rem; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.step-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: .95; margin-bottom: .6rem; max-width: 12ch; }
.step p { max-width: 30ch; color: rgba(18, 16, 14, .82); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.4rem 0; border-left: 0; border-bottom: 1px solid rgba(18, 16, 14, .25); display: grid; grid-template-columns: 5.2rem 1fr; column-gap: 1rem; }
  .step-n { grid-row: 1 / span 2; font-size: 4.4rem; margin: 0; }
  .section-gold .btn { width: 100%; }
}

/* ---------- Brea ---------- */
.brea { background: radial-gradient(120% 90% at 0% 50%, #2a1a0b 0%, var(--ink) 60%); }
.brea-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.brea-media { position: relative; }
.brea-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.brea-media .img-note { margin-top: .8rem; }
.brea-copy .display { margin-bottom: 1.4rem; max-width: 12ch; }
.brea-copy .lead { margin-bottom: 1.6rem; }
.ticks { display: grid; gap: .65rem; margin-bottom: 2rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .8rem; border: 2px solid var(--gold); transform: rotate(45deg); }
.brea .ticks li::before { border-color: var(--amber); }
.ticks-sm { font-size: .95rem; color: var(--on-ink-muted); gap: .5rem; margin: 0; }
@media (max-width: 860px) { .brea-grid { grid-template-columns: 1fr; } }

/* ---------- Ubicación ---------- */
.ubicacion-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ubicacion-copy .display { margin-bottom: 2rem; }
.address { display: flex; flex-direction: column; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.45; margin-bottom: 1.2rem; padding-left: 1.2rem; border-left: 4px solid var(--gold); }
.address-street { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem); line-height: .95; }
.hours { font-weight: 700; margin-bottom: 1rem; }
.ubicacion-copy .muted-dark { max-width: 44ch; margin-bottom: 2rem; }
.ubicacion-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.ubicacion-card img { width: 100%; height: 100%; object-fit: cover; }
.ubicacion-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 11, 9, .85), rgba(13, 11, 9, 0) 55%); }
.ubicacion-card-label { position: absolute; left: 1.6rem; bottom: 1.4rem; z-index: 1; color: var(--on-ink); display: flex; flex-direction: column; }
.coord-label { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.coord-big { font-family: var(--f-display); font-weight: 900; font-size: clamp(5rem, 4rem + 4vw, 8.5rem); line-height: .82; text-transform: uppercase; }
@media (max-width: 860px) {
  .ubicacion-grid { grid-template-columns: 1fr; }
  .ubicacion-card { aspect-ratio: 16 / 10; order: -1; }
  .ubicacion-copy .btn { width: 100%; }
}

/* ---------- Contacto / formulario ---------- */
.contacto { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.contacto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contacto-copy .display { margin-bottom: 1.4rem; }
.contacto-copy .lead { margin-bottom: 2rem; }
.channels { display: grid; gap: .7rem; margin-bottom: 2.2rem; }
.channels:empty { display: none; }
.channel { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1px solid var(--line-ink); border-radius: var(--radius); text-decoration: none; transition: border-color .25s, background .25s; }
.channel:hover { border-color: var(--gold); background: rgba(245, 183, 10, .06); }
.channel-k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); min-width: 6.5rem; }
.channel-v { font-weight: 700; }
.contacto-tips { border-top: 1px solid var(--line-ink); padding-top: 1.6rem; }
.contacto-tips .h4 { margin-bottom: 1rem; }

.quote-form { background: var(--paper); color: var(--on-paper); padding: clamp(1.4rem, 3vw, 2.6rem); border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); position: relative; }
.quote-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--gold) 0 40%, var(--wood) 40% 70%, var(--ink-3) 70% 100%); border-radius: var(--radius) var(--radius) 0 0; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 750; font-size: .95rem; margin-bottom: .4rem; }
.req { color: var(--gold-ink); }
.opt { font-weight: 500; color: var(--on-paper-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; background: var(--white); border: 2px solid rgba(26, 23, 20, .28); border-radius: var(--radius); color: var(--on-paper); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8a8175; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(26, 23, 20, .5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(245, 183, 10, .45); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 1rem; top: 50%; width: .55rem; height: .55rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 2.6rem; cursor: pointer; }
.field-hint { font-size: .84rem; color: var(--on-paper-muted); margin-top: .35rem; }
.field-error { font-size: .86rem; color: #9b1c14; font-weight: 700; margin-top: .35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: .82rem; color: var(--on-paper-muted); margin-top: .8rem; text-align: center; }
.form-status { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: var(--radius); font-size: .96rem; line-height: 1.5; }
.form-status:focus { outline: none; }
.form-status.is-preview { background: #fff4d1; border: 2px solid var(--gold-3); }
.form-status.is-ok { background: #e3f1e0; border: 2px solid #3d7a35; }
.form-status.is-error { background: #fbe4e1; border: 2px solid #b3261e; }
.form-status strong { display: block; margin-bottom: .3rem; }
.form-status pre { white-space: pre-wrap; font-family: var(--f-mono); font-size: .8rem; background: rgba(255, 255, 255, .7); padding: .7rem; border-radius: var(--radius); margin: .7rem 0; max-height: 220px; overflow: auto; }
.form-status .btn { margin-top: .3rem; }
@media (max-width: 860px) { .contacto-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0b0a08; color: var(--on-ink-muted); padding-top: clamp(3.5rem, 7vw, 6rem); border-top: 6px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
.footer-tagline { margin-top: 1.4rem; max-width: 30ch; font-size: 1.05rem; color: var(--on-ink); }
.footer-h { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-nav ul { display: grid; gap: .35rem; }
.footer-nav a, .footer-contact a { text-decoration: none; color: var(--on-ink); display: inline-block; padding-block: .2rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact address { color: var(--on-ink); margin-bottom: .8rem; line-height: 1.6; }
.footer-channels { display: grid; gap: .3rem; margin-top: .6rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.6rem 5.5rem; border-top: 1px solid var(--line-ink); font-size: .84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Flotantes ---------- */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.preview-bar { position: fixed; left: .8rem; bottom: .8rem; z-index: 45; display: flex; align-items: center; gap: .6rem; background: var(--paper); color: var(--ink); border: 2px solid var(--gold-3); padding: .35rem .4rem .35rem .9rem; border-radius: 999px; font-size: .8rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); max-width: calc(100vw - 1.6rem); }
.preview-bar button { border: 0; background: var(--ink); color: var(--paper); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; flex: none; }
.preview-bar a { font-weight: 700; }

/* ---------- Página industrial (brea) ---------- */
.ind-hero { position: relative; min-height: max(560px, 86svh); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; background: #0d0b09; }
.ind-hero picture, .ind-hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ind-hero picture { z-index: -2; }
.ind-hero img { object-fit: cover; object-position: 70% 60%; }
.ind-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 11, 9, .94) 0%, rgba(13, 11, 9, .6) 45%, rgba(13, 11, 9, .1) 80%), linear-gradient(0deg, rgba(13, 11, 9, .9), rgba(13, 11, 9, 0) 40%); }
.ind-hero .wrap { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.ind-hero h1 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .86; font-size: clamp(3rem, 1.6rem + 6vw, 7.4rem); max-width: 10ch; margin-bottom: 1.4rem; }
.ind-hero h1 em { font-style: normal; color: var(--amber); }
.ind-hero .lead { margin-bottom: 2rem; color: #e9e2d6; }
.ind-hero .img-note { margin-top: 1.6rem; }
.ind-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.ind-item { padding: 1.6rem 1.6rem 2rem 0; }
.ind-item + .ind-item { padding-left: 1.6rem; border-left: 1px solid var(--line-paper); }
.ind-item .mat-num { color: var(--gold-ink); }
.ind-item h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.9rem; line-height: .95; margin-bottom: .6rem; }
.ind-item p { color: var(--on-paper-muted); font-size: .98rem; }
@media (max-width: 860px) {
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .ind-item, .ind-item + .ind-item { padding: 1.4rem 1rem 1.4rem 0; border-left: 0; border-bottom: 1px solid var(--line-paper); }
}
@media (max-width: 520px) { .ind-grid { grid-template-columns: 1fr; } }
/* FAQ: longer answers need wider columns than the industrial process cards. */
#preguntas .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
#preguntas .ind-item { padding: 1.6rem 0; border-left: 0; border-bottom: 1px solid var(--line-paper); }
#preguntas .ind-item h3 { font-family: var(--f-body); font-size: 1.15rem; font-weight: 800; text-transform: none; line-height: 1.35; margin-bottom: .8rem; }
#preguntas .ind-item p { line-height: 1.7; }
@media (max-width: 620px) { #preguntas .ind-grid { grid-template-columns: 1fr; } }
.back-link { display: flex; width: max-content; gap: .5rem; align-items: center; font-weight: 700; text-decoration: none; margin-bottom: 1.6rem; color: var(--on-ink-muted); }
.back-link:hover { color: var(--gold); }

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media img { animation: heroZoom 2.4s var(--ease) both; }
  .js .hero-title .line > span { animation: rise 1s var(--ease) both; }
  .js .hero-title .line:nth-child(2) > span { animation-delay: .08s; }
  .js .hero-title .line:nth-child(3) > span { animation-delay: .16s; }
  .js .hero-lead, .js .hero-actions, .js .hero-address, .js .hero-eyebrow { animation: fadeUp .9s var(--ease) both; }
  .js .hero-eyebrow { animation-delay: .02s; }
  .js .hero-lead { animation-delay: .3s; }
  .js .hero-actions { animation-delay: .4s; }
  .js .hero-address { animation-delay: .5s; }
  .js .hero-strata { animation: fadeIn 1.2s .6s var(--ease) both; }
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .mat-list [data-reveal]:nth-child(2) { transition-delay: .06s; }
  .js .mat-list [data-reveal]:nth-child(3) { transition-delay: .12s; }
  .js .mat-list [data-reveal]:nth-child(4) { transition-delay: .18s; }
  .js .steps [data-reveal]:nth-child(2), .js .apps [data-reveal]:nth-child(2) { transition-delay: .1s; }
  .js .steps [data-reveal]:nth-child(3), .js .apps [data-reveal]:nth-child(3) { transition-delay: .2s; }
  .js .anatomy.is-in .tag { animation: tagIn .7s var(--ease) both; }
  .js .anatomy.is-in .tag-core { animation-delay: .15s; }
  .js .anatomy.is-in .tag-edge { animation-delay: .3s; }
}
@keyframes heroZoom { from { transform: scale(1.08); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tagIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

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