/* Fuentes alojadas en el propio servidor (Archivo y JetBrains Mono, licencia SIL Open Font License) */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(assets/fonts/archivo-latin-ext-300-800.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(assets/fonts/archivo-latin-300-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================================
   1. Tokens (colores del logotipo, fondos blancos)
   ============================================================= */
:root {
  --paper:    #ffffff;
  --paper-2:  #f4f4f1;   /* superficies secundarias */
  --ink:      #121719;   /* títulos casi negros */
  --ink-2:    #3a4245;
  --muted:    #6a7174;
  --steel:    #9a9ea0;   /* gris de las barras del logotipo */
  --char:     #171d20;   /* secciones oscuras puntuales y pie */
  --char-2:   #20282b;
  --olive:    #5d7a2b;   /* verde corporativo */
  --olive-2:  #6f8f33;
  --olive-lt: #a8c46a;   /* verde sobre fondo oscuro */
  --bone:     #ecebe5;
  --line:     rgba(18, 23, 25, .12);
  --line-dk:  rgba(236, 235, 229, .16);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(1.1rem, 4.5vw, 4rem);
  --max: 1440px;
  --radius: 4px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: 760; line-height: .98; letter-spacing: -.025em; text-wrap: balance; font-stretch: 110%; font-variation-settings: "wdth" 110; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.9rem); }
em { font-style: normal; color: var(--olive); }
::selection { background: var(--olive); color: #fff; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 3px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 4px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin-bottom: 1.4rem;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: currentColor; transform: skewX(-30deg); }
.section-head { max-width: 48rem; }
.section-head > p:not(.kicker) { margin-top: 1.5rem; max-width: 36rem; font-size: 1.08rem; color: var(--ink-2); }

/* =============================================================
   4. Components
   ============================================================= */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: 0 1.8rem; border-radius: 2px;
  font-weight: 650; font-size: .95rem; letter-spacing: .01em; font-stretch: 106%;
  transform: translate(var(--mx), var(--my));
  transition: transform .5s var(--ease-out), color .35s, background-color .35s, box-shadow .35s;
}
.btn::after { /* barrido diagonal como el trazo del logotipo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateX(-110%) skewX(-24deg); transform-origin: left; transition: transform .65s var(--ease-out);
}
.btn:hover::after { transform: translateX(0) skewX(-24deg) scaleX(1.35); }
.btn-olive { background: var(--olive); color: #fff; }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn-line:hover { color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { color: #fff; }
.btn-block { width: 100%; }
.btn span { transition: transform .4s var(--ease-out); }
.btn:hover span { transform: translateX(5px); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(.98); }

.link-arrow { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1.6rem; font-weight: 650; color: var(--olive); border-bottom: 2px solid currentColor; padding-bottom: .2rem; }
.link-arrow span { transition: transform .4s var(--ease-out); }
.link-arrow:hover span { transform: translateX(5px); }

/* Fotografía: tono unificado ligeramente sobrio; color pleno al pasar */
.photo { position: relative; overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.05); transition: filter .9s var(--ease-out), transform 1.6s var(--ease-out); }
@media (hover: hover) {
  .photo:hover img, .service:hover .photo img { filter: saturate(1.02) contrast(1.02); transform: scale(1.025); }
}
/* Revelado progresivo de fotografías al entrar en pantalla */
.fx .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-out); }
.fx .reveal-img img { transform: scale(1.14); transition: transform 1.8s var(--ease-out), filter .9s var(--ease-out); }
.fx .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.fx .reveal-img.is-in img { transform: scale(1); }

/* =============================================================
   5. Splash
   ============================================================= */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #fff; animation: splashOut .7s var(--ease-out) 2.4s forwards; }
.splash.is-done { animation: splashOut .7s var(--ease-out) forwards; }
.splash-mark { width: 120px; height: auto; animation: rise 1s var(--ease-out) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); clip-path: inset(100% 0 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  transition: background-color .4s, box-shadow .4s, padding .4s var(--ease-out);
}
.nav.is-scrolled { background: rgba(255,255,255,.88); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { width: 52px; height: auto; }
.brand-word { display: grid; line-height: 1; font-weight: 800; font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; font-stretch: 118%; }
.brand-word b { font-weight: 600; font-size: .64rem; letter-spacing: .42em; color: var(--olive); margin-top: .3rem; }
.nav-links { display: none; }
.nav-ig { display: inline-flex; align-items: center; gap: .5rem; }
.nav-ig svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav-ig .dot { fill: currentColor; stroke: none; }
.nav-toggle { position: relative; width: 48px; height: 48px; border-radius: 2px; background: var(--ink); }
.nav-toggle i { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; transition: transform .4s var(--ease-out); }
.nav-toggle i:first-of-type { top: 20px; }
.nav-toggle i:last-of-type { top: 27px; }
.nav.is-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.nav.is-open .nav-toggle i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-toggle i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
.nav.is-open .nav-links {
  display: flex; flex-direction: column; gap: 1rem;
  position: fixed; inset: 0; z-index: -1; padding: 7rem var(--gutter) 2rem; overflow-y: auto;
  background: #fff; font-weight: 760; font-size: 2rem; font-stretch: 110%; letter-spacing: -.02em;
}
.nav.is-open .nav-links a { animation: fadeUp .5s var(--ease-out) both; }
.nav.is-open .nav-links a:nth-child(2) { animation-delay: .04s; }
.nav.is-open .nav-links a:nth-child(3) { animation-delay: .08s; }
.nav.is-open .nav-links a:nth-child(4) { animation-delay: .12s; }
.nav.is-open .nav-links a:nth-child(5) { animation-delay: .16s; }
.nav.is-open .nav-links a:nth-child(6) { animation-delay: .2s; }
.nav.is-open .nav-links a:nth-child(7) { animation-delay: .24s; }
.nav.is-open .nav-ig { font-size: 1rem; font-weight: 600; color: var(--ink-2); margin-top: .6rem; }
.nav.is-open .nav-links .nav-cta { font-size: 1rem; margin-top: .6rem; align-self: flex-start; }

/* =============================================================
   7. Hero: vídeo a pantalla completa
   ============================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2.4rem;
  min-height: 100svh; padding: 7.5rem var(--gutter) 1.4rem;
  background: var(--char); color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { animation: heroZoom 9s var(--ease-soft) both; }
.hero-video { opacity: 0; transition: opacity 1.4s var(--ease-soft); }
.hero-video.is-playing { opacity: 1; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
/* Degradado oscuro: legibilidad del texto sin apagar la imagen */
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,15,17,.62) 0%, rgba(11,15,17,.12) 26%, rgba(11,15,17,.18) 52%, rgba(11,15,17,.86) 100%),
    linear-gradient(90deg, rgba(11,15,17,.55) 0%, rgba(11,15,17,.08) 70%);
}
.hero-meta { display: flex; align-items: center; gap: .9rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.86); margin-bottom: 1.6rem; animation: fadeUp .9s var(--ease-out) .5s both; }
.bars { width: 34px; height: 26px; }
.bars rect { fill: rgba(255,255,255,.55); transform-box: fill-box; transform-origin: bottom; animation: barUp 1s var(--ease-out) both; }
.bars rect:nth-child(1) { animation-delay: .55s; }
.bars rect:nth-child(2) { fill: rgba(255,255,255,.85); animation-delay: .65s; }
.bars rect:nth-child(3) { fill: var(--olive-lt); animation-delay: .75s; }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero-copy { max-width: 62rem; }
.hero-title { font-size: clamp(2.4rem, 10.6vw, 6.6rem); font-weight: 800; line-height: .92; letter-spacing: -.03em; text-transform: uppercase; font-stretch: 108%; font-variation-settings: "wdth" 108; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-title .line { display: block; overflow: hidden; padding: .02em 0 .05em; }
.hero-title .line > span { display: inline-block; animation: lineUp 1.2s var(--ease-out) both; }
.hero-title .line:nth-child(1) > span { animation-delay: .6s; }
.hero-title .line:nth-child(2) > span { animation-delay: .7s; }
.hero-title .line:nth-child(3) > span { animation-delay: .8s; }
.hero-title .line:nth-child(4) > span { animation-delay: .9s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero-title em { color: var(--olive-lt); }
/* "lo antiguo" se tacha: lo retiramos */
.hero-title .old { position: relative; color: rgba(255,255,255,.5); }
.hero-title .old::after { content: ""; position: absolute; left: -2%; right: 4%; top: 52%; height: .085em; background: var(--olive-lt); transform: scaleX(0) skewY(-4deg); transform-origin: left; animation: strike .9s var(--ease-out) 1.7s forwards; }
@keyframes strike { to { transform: scaleX(1) skewY(-4deg); } }
.hero-lead { max-width: 38rem; margin-top: 1.7rem; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: rgba(255,255,255,.88); animation: fadeUp 1s var(--ease-out) 1.05s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; animation: fadeUp 1s var(--ease-out) 1.2s both; }
.btn-ghost { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost::after { background: #fff; }
.btn-ghost:hover { color: var(--ink); }

.hero-foot { display: flex; align-items: flex-end; gap: 1.2rem; animation: fadeUp 1s var(--ease-out) 1.4s both; }
.hero-index { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.hero-index a { display: flex; gap: .6rem; align-items: baseline; padding: .9rem 0 .2rem; border-top: 1.5px solid rgba(255,255,255,.4); font-weight: 600; font-size: .9rem; font-stretch: 106%; color: rgba(255,255,255,.92); transition: color .3s, padding .4s var(--ease-out), border-color .3s; }
.hero-index a span { font-family: var(--mono); font-size: .7rem; color: var(--olive-lt); }
.hero-index a:hover { color: #fff; border-color: var(--olive-lt); padding-left: .4rem; }
.hero-tools { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.hero-credit { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); white-space: nowrap; }
.hero-pause { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); transition: box-shadow .3s, background-color .3s; }
.hero-pause[hidden] { display: none; }
.hero-pause:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px #fff; }
.hero-pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-pause .i-play { display: none; fill: currentColor; }
.hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }

/* Navegación sobre el vídeo: blanca hasta que se hace scroll */
.nav-over .brand-mark--light { display: none; }
.nav-over:not(.is-scrolled):not(.is-open) .brand-mark--dark { display: none; }
.nav-over:not(.is-scrolled):not(.is-open) .brand-mark--light { display: block; }
.nav-over:not(.is-scrolled):not(.is-open) .brand-word { color: #fff; }
.nav-over:not(.is-scrolled):not(.is-open) .brand-word b { color: var(--olive-lt); }
.nav-over:not(.is-scrolled):not(.is-open) .nav-toggle { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Cinta de especialidades */
.ribbon { overflow: hidden; padding: 1.2rem 0; background: var(--paper-2); }
.ribbon-track { display: flex; width: max-content; animation: ribbon 46s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.ribbon span::after { content: ""; width: 14px; height: 4px; background: var(--olive); transform: skewX(-30deg); }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* =============================================================
   8. Manifiesto
   ============================================================= */
.manifesto { padding: clamp(6rem, 14vw, 11rem) var(--gutter); }
.manifesto-text { max-width: 25ch; margin: 0 auto; font-size: clamp(1.9rem, 4.3vw, 4.1rem); font-weight: 700; line-height: 1.07; letter-spacing: -.025em; font-stretch: 108%; }
.manifesto-text .w { opacity: var(--o, 1); transition: opacity .25s linear; }

/* =============================================================
   9. Servicios (bloques editoriales asimétricos)
   ============================================================= */
.services { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(5rem, 10vw, 8rem); }
.services > .section-head { margin-bottom: clamp(3.5rem, 8vw, 7rem); }
.service { position: relative; display: grid; gap: 2rem; margin-bottom: clamp(4.5rem, 10vw, 9rem); }
.service-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.service-n { display: flex; align-items: center; gap: 1rem; font-size: clamp(3.4rem, 6vw, 5.6rem); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--steel); font-stretch: 100%; margin-bottom: 1.2rem; }
.service h3 { font-size: clamp(1.9rem, 3.1vw, 2.9rem); margin-bottom: 1.2rem; }
.service p { color: var(--ink-2); max-width: 32rem; }
.service p + p { margin-top: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.tags li { padding: .45rem .85rem; border-radius: 999px; background: var(--paper-2); font-size: .8rem; font-weight: 550; color: var(--ink-2); transition: background-color .3s, color .3s; }
.service:hover .tags li { background: rgba(93,122,43,.1); color: var(--olive); }
.badge { display: inline-block; padding: .4rem .7rem; border-radius: 2px; background: var(--olive); color: #fff; font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.service--feature { padding: clamp(1.4rem, 3vw, 3rem); background: var(--paper-2); border-radius: var(--radius); }
.service--feature .service-n { color: var(--olive); }

/* =============================================================
   10. Fibrocemento (sección destacada, oscura)
   ============================================================= */
.fibro { position: relative; isolation: isolate; overflow: hidden; background: var(--char); color: var(--bone); }
.fibro-bg { position: absolute; inset: -12% 0; z-index: -1; background: var(--char); }
.fibro-bg img { opacity: .26; filter: grayscale(1) contrast(1.15); }
.fibro-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--char) 18%, rgba(23,29,32,.72) 60%, rgba(23,29,32,.55)); }
.fibro-inner { display: grid; gap: 3.5rem; max-width: var(--max); margin: 0 auto; padding: clamp(6rem, 12vw, 10rem) var(--gutter); }
.fibro .kicker { color: var(--olive-lt); }
.fibro em { color: var(--olive-lt); }
.fibro-head p:not(.kicker) { margin: 1.5rem 0 2.2rem; max-width: 34rem; font-size: 1.08rem; color: rgba(236,235,229,.82); }
.fibro-steps { display: grid; gap: 0; }
.fibro-steps li { display: flex; gap: 1.4rem; padding: 1.6rem 0; border-top: 1px solid var(--line-dk); }
.fibro-steps li:last-child { border-bottom: 1px solid var(--line-dk); }
.fibro-steps span { font-family: var(--mono); font-size: .8rem; color: var(--olive-lt); padding-top: .35rem; min-width: 1.8rem; }
.fibro-steps h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); margin-bottom: .5rem; }
.fibro-steps p { color: rgba(236,235,229,.74); font-size: .97rem; max-width: 34rem; }

/* =============================================================
   11. Medios de elevación (banda visual)
   ============================================================= */
.lift { position: relative; display: grid; }
.lift-photo { height: clamp(26rem, 80svh, 54rem); }
.lift-photo img { height: 116%; margin-top: -8%; }
.lift-card { position: relative; margin: -5rem var(--gutter) 0; padding: clamp(1.6rem, 4vw, 3.2rem); background: #fff; box-shadow: 0 40px 80px -50px rgba(18,23,25,.5); max-width: 38rem; }
.lift-card h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
.lift-card p:not(.kicker) { margin-top: 1.2rem; color: var(--ink-2); }

/* =============================================================
   12. Llamadas a la acción
   ============================================================= */
.cta { padding: clamp(6rem, 13vw, 11rem) var(--gutter); text-align: center; }
.cta-inner { max-width: 60rem; margin: 0 auto; display: grid; justify-items: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); text-transform: uppercase; font-weight: 800; letter-spacing: -.03em; }
.cta p { margin: 1.6rem 0 2.4rem; max-width: 34rem; font-size: 1.1rem; color: var(--ink-2); }
.cta--olive { background: var(--olive); color: #fff; }
.cta--olive p { color: rgba(255,255,255,.86); }

/* =============================================================
   13. Cómo trabajamos
   ============================================================= */
.method { display: grid; gap: 4rem; max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(6rem, 12vw, 10rem); }
.method-photo { aspect-ratio: 4 / 5; margin-top: 3rem; border-radius: var(--radius); max-width: 34rem; }
.steps { display: grid; gap: 3.2rem; align-content: start; }
.step { position: relative; display: grid; gap: .6rem; padding-top: 1.4rem; border-top: 1.5px solid var(--ink); }
.step-bar { position: absolute; right: 0; bottom: 100%; width: 22px; height: 110px; margin-bottom: 1.5px; display: flex; align-items: flex-end; }
.step-bar i { width: 100%; height: calc(var(--h) * 100%); background: var(--steel); transform-origin: bottom; transition: transform 1.2s var(--ease-out) .2s; }
.step:nth-child(3) .step-bar i { background: var(--ink-2); }
.step:last-child .step-bar i { background: var(--olive); }
.fx .step:not(.is-in) .step-bar i { transform: scaleY(0); }
.step-n { font-family: var(--mono); font-size: .8rem; color: var(--olive); }
.step h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.step p { color: var(--ink-2); max-width: 26rem; font-size: 1.05rem; }

/* =============================================================
   14. Sectores
   ============================================================= */
.sectors { display: grid; gap: 3rem; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(6rem, 12vw, 10rem); }
.sectors-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.sector-list { margin-top: 2.6rem; counter-reset: s; }
.sector-list li { position: relative; display: flex; align-items: baseline; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 680; font-stretch: 108%; letter-spacing: -.01em; transition: padding .5s var(--ease-out), color .3s; counter-increment: s; }
.sector-list li:last-child { border-bottom: 1px solid var(--line); }
.sector-list li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; font-weight: 400; color: var(--olive); }
@media (hover: hover) { .sector-list li:hover { padding-left: 1rem; color: var(--olive); } }

/* =============================================================
   15. Contacto
   ============================================================= */
.contact { display: grid; gap: 3rem; max-width: var(--max); margin: 0 auto; padding: clamp(6rem, 12vw, 10rem) var(--gutter); }
.contact-direct { display: grid; gap: 1.1rem; margin-top: 2.6rem; }
.contact-direct li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; font-size: 1.02rem; }
.contact-direct span { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .3rem; }
.contact-direct a { justify-self: start; font-weight: 600; background: linear-gradient(var(--olive), var(--olive)) 0 100% / 100% 2px no-repeat; padding-bottom: .15rem; transition: color .3s, background-size .4s var(--ease-out); }
.contact-direct a:hover { color: var(--olive); background-size: 100% 3px; }

.form { width: 100%; padding: clamp(1.4rem, 3vw, 2.6rem); border-radius: var(--radius); background: var(--paper-2); }
.form-body { display: grid; gap: 1rem; }
.field-row { display: grid; gap: 1rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.55rem 1rem .55rem; border: 0; border-radius: 2px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
  box-shadow: inset 0 -2px 0 var(--line); transition: box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 -2px 0 var(--olive); }
.field label { position: absolute; left: 1rem; top: 1.05rem; pointer-events: none; color: var(--muted); font-size: 1rem; transform-origin: left top; transition: transform .35s var(--ease-out), color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 2.5rem); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-.62rem) scale(.74); color: var(--olive); }
.field.is-invalid input, .field.is-invalid select { box-shadow: inset 0 -2px 0 #c0502f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--olive); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form-error { min-height: 1.2em; font-size: .88rem; color: #b0452a; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.form-done { display: grid; justify-items: start; gap: 1rem; padding: 2rem 0; }
.form-done[hidden] { display: none; }
.form-done svg { width: 76px; height: 76px; fill: none; stroke: var(--olive); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-done circle { stroke-dasharray: 227; stroke-dashoffset: 227; animation: draw 1s var(--ease-out) forwards; }
.form-done path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s var(--ease-out) .7s forwards; }
.form-done h3 { font-size: 2rem; }
.form-done p { color: var(--ink-2); max-width: 28rem; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =============================================================
   16. Pie
   ============================================================= */
.footer { background: var(--char); color: rgba(236,235,229,.7); padding: 5rem var(--gutter) 2rem; }
.footer-top, .footer-nav, .footer-bottom { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; gap: 2.6rem; }
.footer-logo { width: min(240px, 60vw); }
.footer-slogan { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 780; line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; color: var(--bone); font-stretch: 108%; margin-bottom: 1rem; }
.footer-contact { display: grid; gap: .7rem; color: var(--bone); }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--olive-lt); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 3.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dk); font-weight: 600; color: var(--bone); }
.footer-bottom { display: grid; gap: 1rem; margin-top: 2.2rem; font-size: .82rem; }
.credits summary { cursor: pointer; width: max-content; }
.credits p { margin-top: .8rem; font-size: .78rem; }
.credits ul { display: grid; gap: .3rem; margin-top: .6rem; font-size: .74rem; color: rgba(236,235,229,.55); }
.credits a { text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   17. Effects (solo con main.js activo: html.fx)
   ============================================================= */
.fx .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.fx .reveal.is-in { opacity: 1; transform: none; }
.fx .manifesto-text .w { --o: .14; }
[data-parallax] { will-change: transform; }

/* =============================================================
   18. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .hero-index { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 4rem 2.4rem; }
  .footer-top { grid-template-columns: auto 1fr auto; gap: 3.5rem; align-items: start; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; align-items: center; gap: 1.8rem; font-size: .9rem; font-weight: 600; font-stretch: 104%; }
  .nav-links a:not(.btn) { position: relative; color: var(--ink-2); transition: color .3s; }
  .nav-links a[data-nav-link]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--olive); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
  .nav-links a:not(.btn):hover, .nav-links a.is-active { color: var(--ink); }
  .nav-links a[data-nav-link]:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav-ig-text { display: none; }
  .nav-cta { min-height: 46px; padding: 0 1.3rem; }
  .nav-toggle { display: none; }

  .hero { padding-bottom: 2rem; }
  .hero-title { font-size: clamp(3.4rem, 6.6vw, 7.6rem); }
  .hero-index { grid-template-columns: repeat(6, 1fr); }
  .nav-over:not(.is-scrolled) .nav-links a:not(.btn) { color: rgba(255,255,255,.88); }
  .nav-over:not(.is-scrolled) .nav-links a:not(.btn):hover { color: #fff; }
  .nav-over:not(.is-scrolled) .nav-links a[data-nav-link]::after { background: var(--olive-lt); }

  .service { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 0 clamp(1.5rem, 3vw, 3rem); }
  .service-photo { grid-column: 1 / span 7; grid-row: 1; aspect-ratio: 4 / 3.1; }
  .service-body { grid-column: 9 / span 4; grid-row: 1; }
  .service--flip .service-photo { grid-column: 6 / span 7; }
  .service--flip .service-body { grid-column: 1 / span 4; }
  .service:nth-of-type(3n+2) .service-photo { aspect-ratio: 16 / 10; }
  .service--feature { margin-inline: calc(var(--gutter) * -1); padding: clamp(3rem, 5vw, 5rem) var(--gutter); }
  .service--feature .service-photo { grid-column: 1 / span 8; aspect-ratio: 16 / 11; }
  .service--feature .service-body { grid-column: 9 / span 4; }

  .fibro-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 7vw, 8rem); align-items: start; }
  .fibro-head { position: sticky; top: 8rem; }

  .lift { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .lift-photo { grid-column: 1 / -1; grid-row: 1; }
  .lift-card { grid-column: 2 / span 5; grid-row: 1; margin: 0 0 -4rem; }
  .lift + .cta { padding-top: clamp(9rem, 15vw, 13rem); }

  .method { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(3rem, 7vw, 8rem); }
  .method-aside { position: sticky; top: 7rem; align-self: start; }
  .method-photo { aspect-ratio: 16 / 13; }
  .steps { grid-template-columns: 1fr; gap: 4.2rem; padding-top: 8rem; }

  .sectors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 8rem); align-items: center; }
  .sectors-photo { aspect-ratio: 4 / 5; clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%); }
  .fx .sectors-photo.reveal-img { clip-path: polygon(0 0, 100% 0, 100% 0, 10% 0); transition: clip-path 1.4s var(--ease-out); }
  .fx .sectors-photo.reveal-img.is-in { clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%); }

  .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); align-items: start; gap: clamp(3rem, 7vw, 8rem); }
}
@media (min-width: 1280px) {
  .nav-links { gap: 2.2rem; }
}

/* =============================================================
   19. Reduced motion: solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; }
  [data-parallax] { transform: none !important; }
  .hero-poster { animation: none; }
}

/* =============================================================
   20. Asistente de soporte (chat)
   ============================================================= */
.chat { position: fixed; right: clamp(.8rem, 2vw, 1.6rem); bottom: clamp(.8rem, 2vw, 1.6rem); z-index: 150; }
.chat[hidden] { display: none; }
.chat-launch {
  display: inline-flex; align-items: center; gap: .7rem; padding: .55rem 1.2rem .55rem .65rem; border-radius: 999px;
  background: var(--char); color: var(--bone); font-size: .9rem; font-weight: 500; font-stretch: 106%;
  box-shadow: 0 18px 40px -14px rgba(26,32,35,.6), inset 0 0 0 1px rgba(236,235,229,.08);
  transition: transform .5s var(--ease-out), opacity .3s;
  animation: fadeUp .8s var(--ease-out) 2s both;
}
.chat-launch img { width: 38px; height: auto; padding: 5px; border-radius: 50%; background: rgba(236,235,229,.08); }
.chat-launch b { color: var(--olive-lt); font-weight: 650; }
.chat-launch:hover { transform: translateY(-3px); }
.chat.is-open .chat-launch { opacity: 0; pointer-events: none; transform: scale(.9); }

.chat-panel {
  position: fixed; inset: auto 0 0 0; height: min(86svh, 640px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: var(--ink); border-radius: 14px 14px 0 0;
  box-shadow: 0 30px 80px -20px rgba(26,32,35,.55);
  transform-origin: bottom right; animation: chatIn .45s var(--ease-out) both;
}
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: var(--char); color: var(--bone); }
.chat-head img { width: 40px; height: auto; }
.chat-head div { display: grid; line-height: 1.25; flex: 1; }
.chat-head b { font-weight: 700; font-stretch: 110%; letter-spacing: .01em; }
.chat-head span { font-size: .76rem; color: rgba(236,235,229,.6); }
.chat-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: background-color .3s; }
.chat-close:hover { background: rgba(236,235,229,.1); }
.chat-close svg, .chat-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem 1rem; background: var(--paper-2); }
.msg { max-width: 88%; padding: .7rem .95rem; border-radius: 12px; font-size: .94rem; line-height: 1.5; animation: fadeUp .4s var(--ease-out) both; }
.msg p + p, .msg p + ul, .msg ul + p, .msg p + ol, .msg ol + p { margin-top: .55rem; }
.msg ul, .msg ol { padding-left: 1.15rem; display: grid; gap: .25rem; }
.msg ul { list-style: disc; }
.msg ol { list-style: decimal; }
.msg a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; }
.msg-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 3px; box-shadow: 0 1px 0 var(--line); }
.msg-user { align-self: flex-end; background: var(--olive); color: #fff; border-bottom-right-radius: 3px; white-space: pre-wrap; }
.msg-error { background: #fbeee9; color: #7a3420; }
.msg-typing { display: inline-flex; gap: 5px; padding: .9rem 1rem; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); animation: blink 1.2s infinite ease-in-out; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1rem .8rem; background: var(--paper-2); }
.chat-suggest[hidden] { display: none; }
.chat-suggest button { padding: .5rem .8rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; text-align: left; color: var(--ink-2); transition: box-shadow .3s, color .3s; }
.chat-suggest button:hover { box-shadow: inset 0 0 0 1.5px var(--olive); color: var(--olive); }

.chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; max-height: 8rem; padding: .7rem .8rem; border: 0; border-radius: 8px; background: var(--paper-2); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4; }
.chat-form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--olive); }
.chat-send { flex: 0 0 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--olive); color: #fff; transition: background-color .3s, opacity .3s; }
.chat-send:hover { background: var(--olive-2); }
.chat-send:disabled { opacity: .45; cursor: default; }
.chat-note { padding: 0 1rem .75rem; font-size: .7rem; line-height: 1.4; color: var(--muted); }

@media (min-width: 540px) {
  .chat-panel { inset: auto clamp(.8rem, 2vw, 1.6rem) clamp(.8rem, 2vw, 1.6rem) auto; width: 400px; height: min(78svh, 640px); border-radius: 14px; }
}

/* =============================================================
   21. Páginas legales
   ============================================================= */
.legal { display: grid; gap: 2.5rem; max-width: var(--max); margin: 0 auto; padding: 8.5rem var(--gutter) clamp(5rem, 10vw, 8rem); }
.legal-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; }
.legal-meta { margin-top: 1.2rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--muted); }
.legal-intro { margin-top: 1.6rem; max-width: 46rem; font-size: 1.1rem; color: var(--ink-2); }
.legal-toc ol { display: grid; gap: .1rem; counter-reset: t; padding: 1.4rem 1.6rem; background: var(--paper-2); border-radius: var(--radius); }
.legal-toc li { counter-increment: t; }
.legal-toc a { display: flex; gap: .8rem; padding: .35rem 0; font-weight: 600; font-size: .95rem; transition: color .3s; }
.legal-toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; font-weight: 400; color: var(--olive); padding-top: .2rem; }
.legal-toc a:hover { color: var(--olive); }
.legal-body { max-width: 50rem; }
.legal-body section { padding: 2.4rem 0; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.legal-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1.2rem; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p, .legal-body dl + p { margin-top: 1rem; }
.legal-body ul { display: grid; gap: .5rem; padding-left: 1.2rem; list-style: disc; }
.legal-body a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }
.legal-body code { font-family: var(--mono); font-size: .88em; padding: .1em .35em; background: var(--paper-2); border-radius: 3px; }
.legal-data { display: grid; }
.legal-data div { display: grid; gap: .25rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.legal-data div:first-child { padding-top: 0; }
.legal-data dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal-data dd { color: var(--ink); }
.legal-highlight { padding: 1.2rem 1.4rem; background: rgba(93,122,43,.09); border-left: 3px solid var(--olive); color: var(--ink) !important; }
mark.todo { padding: .1em .35em; background: #fff1a8; color: #5a4a00; border-radius: 3px; font-weight: 600; }
.legal-other { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 2rem; max-width: 50rem; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.legal-other .link-arrow { margin-top: 0; }
@media (min-width: 720px) {
  .legal-data div { grid-template-columns: 11rem 1fr; gap: 1.5rem; }
}
@media (min-width: 960px) {
  .legal { grid-template-columns: 17rem minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .legal-head, .legal-other { grid-column: 1 / -1; }
  .legal-toc { position: sticky; top: 7rem; }
  .legal-body section:first-child { border-top: 0; padding-top: 0; }
}
.chat-note a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; }
.chat.on-hero .chat-launch { animation: none; opacity: 0; pointer-events: none; transform: translateY(16px); }
@media (max-width: 719px) {
  .hero-foot { flex-direction: column; align-items: stretch; gap: .9rem; }
  .hero-tools { flex-direction: row; justify-content: space-between; align-items: center; }
  .hero-index a { padding-top: .7rem; font-size: .86rem; }
}
