/* JC&M Ingeniería y Construcción */
@font-face{font-family:"Mont";src:url(fonts/montserrat-latin.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Gloock";src:url(fonts/gloock-400-latin.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Caslon";src:url(fonts/libre-caslon-text-400.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Caslon";font-style:italic;src:url(fonts/libre-caslon-text-400-italic.woff2) format("woff2");font-display:swap}
:root{--crema:#f4ecdf;--nar2:#e89a5c;--fondo:#1a1410;--e:cubic-bezier(.22,.7,.2,1);--m:56px;--mb:66px}
*,*::before,*::after{box-sizing:border-box}
html,a,button{-webkit-tap-highlight-color:transparent}
html{background:var(--fondo);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--fondo);color:var(--crema);font-family:"Mont",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-appearance:none;appearance:none;touch-action:manipulation}
a{touch-action:manipulation}
:focus:not(:focus-visible){outline:none}
:focus-visible{outline:2px solid var(--crema);outline-offset:4px;border-radius:2px}
h1,h2,p,ul,figure{margin:0;padding:0}
ul{list-style:none}
img{display:block}
.salto{position:fixed;left:12px;top:12px;z-index:20;padding:15px 16px;background:var(--crema);color:#1a1410;font:600 .8125rem "Mont",system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;transform:translateY(-200%)}
.salto:focus{transform:none}
.oculto{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* ---------- сцена ---------- */
#esc{position:relative;background:var(--fondo)}
#fondo,#velo,.sombra,.linea{display:none}
.wa i{display:block;flex:none;width:17px;height:17px;background:url(img/wa.svg) center/contain no-repeat}
.logo{display:block}
.logo img{height:100%;width:auto;filter:brightness(0) invert(1);opacity:.95}

/* общие типографские правила */
.tit,.col,.obr p{text-shadow:0 1px 22px rgba(10,7,5,.6),0 1px 2px rgba(10,7,5,.45)}
.tit h1,.tit h2{font:400 1rem/0.98 "Gloock",Georgia,"Times New Roman",serif;letter-spacing:-.012em;text-wrap:balance}
.tit em{font-family:"Caslon",Georgia,serif;font-style:italic;letter-spacing:-.02em}
.col{font:400 1.125rem/1.5 "Caslon",Georgia,serif}
.lnk{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;font:700 .875rem "Mont",system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase}
.lnk span{border-bottom:1px solid var(--crema);padding-bottom:6px}
.dat{margin-top:10px;font:500 .8125rem/1.5 "Mont",system-ui,sans-serif;letter-spacing:.06em}
.dat a{display:inline-flex;align-items:center;min-height:44px;margin-right:22px}
.dat a span{border-bottom:1px solid rgba(244,236,223,.55);padding-bottom:3px}
.capas{margin-top:14px;padding-top:12px;border-top:1px solid rgba(244,236,223,.35);font:600 .78rem/1.2 "Mont",system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;columns:2;column-gap:18px}
.capas li{padding:4px 0;break-inside:avoid}
.capas-t{margin-top:16px;font:italic 400 .95rem/1.3 "Caslon",Georgia,serif}
.capas-t+.capas{margin-top:8px}

/* ---------- без скриптов: обычная страница, разделы один под другим ---------- */
html:not(.js) .cab{position:absolute;left:0;right:0;top:0;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;padding:10px 20px 0 10px}
html:not(.js) .logo{height:76px;padding:10px}
html:not(.js) .nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 22px;padding-top:18px;max-width:70%;font:500 .8125rem "Mont",system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase}
html:not(.js) .nav a{display:inline-flex;align-items:center;gap:10px;min-height:44px}
html:not(.js) .botones,html:not(.js) .hoja,html:not(.js) .paso,html:not(.js) .flechas,html:not(.js) .lead{display:none}
html:not(.js) .parada{position:relative;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end;padding:140px 20px 40px;background:var(--fondo) center/cover no-repeat}
html:not(.js) .parada::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(20,14,10,.42) 0,rgba(20,14,10,0) 17%,rgba(20,14,10,0) 40%,rgba(16,12,8,.82) 66%,rgba(16,12,8,.96) 100%)}
html:not(.js) .parada>*{position:relative;max-width:640px}
html:not(.js) .tit h1,html:not(.js) .tit h2{font-size:2.6rem}
html:not(.js) .col{margin-top:14px}
html:not(.js) .cinta{display:flex;gap:12px;overflow-x:auto;max-width:none;margin-top:18px}
html:not(.js) #inicio{background-image:url(img/ph1.webp)}html:not(.js) #steel{background-image:url(img/ph2.webp)}html:not(.js) #construimos{background-image:url(img/ph3.webp)}
html:not(.js) #trabajamos{background-image:url(img/ph4.webp)}html:not(.js) #nosotros{background-image:url(img/ph5.webp)}html:not(.js) #obras{background-image:url(img/ph6.webp)}html:not(.js) #contacto{background-image:url(img/ph7.webp)}
@media (min-aspect-ratio:1/1){
  html:not(.js) #inicio{background-image:url(img/pc1.webp)}html:not(.js) #steel{background-image:url(img/pc2.webp)}html:not(.js) #construimos{background-image:url(img/pc3.webp)}
  html:not(.js) #trabajamos{background-image:url(img/pc4.webp)}html:not(.js) #nosotros{background-image:url(img/pc5.webp)}html:not(.js) #obras{background-image:url(img/pc6.webp)}html:not(.js) #contacto{background-image:url(img/pc7.webp)}
  html:not(.js) .parada{padding:160px 56px 56px}
}

/* ---------- со скриптом: одна сцена во весь экран ---------- */
html.js,html.js body{height:100%;overflow:hidden;overscroll-behavior:none}
html.js body{touch-action:none;-webkit-user-select:none;user-select:none}
html.js #esc{position:fixed;inset:0;overflow:hidden;background:var(--fondo) center/cover no-repeat}
html.js #esc>*{position:absolute}
html.js #fondo{display:block;inset:0;isolation:isolate}
html.js #fondo>*{position:absolute}
html.js #casa{display:block;inset:0;width:100%;height:100%}
html.js #fija,html.js #fijb{display:block;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none}
html.js #fija.on,html.js #fijb.on{opacity:1}
html.js #velo{display:block;inset:0;pointer-events:none;opacity:0;transition:opacity .9s linear;background:linear-gradient(to bottom,rgba(20,14,10,.62) 0,rgba(20,14,10,.42) 13%,rgba(20,14,10,.22) 30%,rgba(20,14,10,0) 46%,rgba(20,14,10,0) 50%,rgba(16,12,8,.46) 74%,rgba(16,12,8,.82) 100%)}
html.js.ph #velo{background:linear-gradient(to bottom,rgba(20,14,10,.6) 0,rgba(20,14,10,.4) 13%,rgba(20,14,10,.2) 28%,rgba(20,14,10,0) 42%,rgba(20,14,10,0) 50%,rgba(16,12,8,.74) 70%,rgba(16,12,8,.95) 100%)}
html.js.lista #velo{opacity:1}
html.js .linea{display:block;left:0;right:0;bottom:0;height:2px;background:var(--crema);transform-origin:0 50%;transform:scaleX(0);opacity:.7;pointer-events:none}
html.js.lista .linea{opacity:0;transition:opacity .4s linear}

/* шапка */
html.js .cab{inset:0 0 auto 0;height:0;z-index:3}
html.js .cab>*{position:absolute}
html.js .logo{left:48px;top:10px;height:108px;padding:14px}
html.js .nav{left:230px;right:var(--m);top:40px;display:flex;align-items:center;justify-content:flex-end;gap:clamp(16px,2vw,32px);font:600 .875rem "Mont",system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
html.js .nav a{display:inline-flex;align-items:center;min-height:44px;text-shadow:0 1px 10px rgba(0,0,0,.6)}
html.js .nav a span{padding:6px 0 5px;border-bottom:1px solid transparent;transition:border-color .5s var(--e)}
html.js .nav a.on span{border-bottom-color:var(--crema)}
html.js .nav .wa{gap:10px;font-weight:700}
html.js .botones{right:8px;top:14px;display:none;gap:8px;text-shadow:0 1px 10px rgba(0,0,0,.6)}
html.js .bt{height:48px;min-width:48px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font:700 .84rem "Mont",system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase}
html.js .bt.wa i{width:22px;height:22px}
html.js .bt b{display:block;width:16px;height:9px;border-top:1.5px solid var(--crema);border-bottom:1.5px solid var(--crema);transition:opacity .25s}
html.js #bm{width:118px;justify-content:flex-end}   /* ширина постоянная: при «Menú»→«Cerrar» значок WhatsApp стоит на месте */
html.js.menu .bt b{opacity:0}
html.js .sombra{display:block;inset:0;z-index:2;background:linear-gradient(to left,rgba(14,10,7,.86) 0,rgba(14,10,7,.68) 48%,rgba(14,10,7,.42) 100%);opacity:0;pointer-events:none;transition:opacity .34s linear}
html.js.menu .sombra{opacity:1;pointer-events:auto;transition:opacity .45s var(--e)}
html.js .hoja{right:20px;top:74px;z-index:3;text-align:right;display:none;visibility:hidden;transition:visibility 0s .2s}
html.js .hoja a{display:block;padding:14px 0;min-height:44px;font:600 .875rem/1.2 "Mont",system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;white-space:nowrap;text-shadow:0 1px 10px rgba(0,0,0,.55);opacity:0;transform:translateX(14px);transition:opacity .18s linear,transform .18s linear}
html.js .hoja a.w{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:10px;padding-top:22px;border-top:1px solid rgba(244,236,223,.35);font-weight:600}
html.js.menu .hoja{visibility:visible;transition:none}
html.js.menu .hoja a{opacity:1;transform:none;transition:opacity .6s var(--e),transform .6s var(--e)}
html.js.menu .hoja a:nth-child(1){transition-delay:.06s}html.js.menu .hoja a:nth-child(2){transition-delay:.10s}html.js.menu .hoja a:nth-child(3){transition-delay:.14s}html.js.menu .hoja a:nth-child(4){transition-delay:.18s}html.js.menu .hoja a:nth-child(5){transition-delay:.22s}html.js.menu .hoja a:nth-child(6){transition-delay:.26s}html.js.menu .hoja a:nth-child(7){transition-delay:.32s}
html.js .hoja a.aqui::before{content:"";display:inline-block;width:7px;height:7px;border:1.5px solid var(--nar2);border-radius:50%;margin-right:10px;vertical-align:1px}
html.js.mn .nav{display:none}
html.js.mn .botones{display:flex}
html.js.mn .hoja{display:block}

/* до конца заставки шапки и текста нет */
html.js .cab,html.js .paso,html.js .pie{opacity:0;transition:opacity .9s linear}
html.js.lista .cab,html.js.lista .paso,html.js.lista .pie{opacity:1}
html.js:not(.lista) .cab{pointer-events:none;visibility:hidden}

/* остановки */
html.js main,html.js .parada{position:absolute;inset:0;pointer-events:none}
html.js main{transition:opacity .25s linear}
html.js.menu main{opacity:0}
html.js .parada{visibility:hidden;transition:visibility 0s .3s}
html.js .parada.on{visibility:visible;transition:none}
html.js .parada>*{position:absolute}
html.js .caja{left:var(--m);right:var(--m);bottom:var(--mb);display:flex;align-items:flex-end;justify-content:space-between;gap:48px}
html.js .tit{flex:0 1 900px;min-width:0}
html.js .tit h1{font-size:calc(clamp(34px,min(6.4vw,10.2vh),124px)*var(--z,1))}
html.js .tit h2{font-size:calc(clamp(30px,min(5vw,8vh),98px)*var(--z,1))}
html.js .col{flex:0 0 380px;padding-bottom:6px;font-size:calc(1.125rem*var(--z,1))}
html.js .pie{left:var(--m);right:var(--m);bottom:30px;height:1px;background:rgba(244,236,223,.4)}
html.js .paso{right:28px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:10px;align-items:flex-end;pointer-events:none}
html.js .paso i{display:block;width:14px;height:1.5px;background:rgba(244,236,223,.5);transition:width .6s var(--e),background .6s}
html.js .paso i.on{width:30px;background:var(--crema)}
html.js .lead u{position:absolute;left:-6px;top:-6px;width:12px;height:12px;border:1.5px solid var(--crema);border-radius:50%;background:rgba(244,236,223,.3)}
html.js .lead svg{position:absolute;left:0;top:0;overflow:visible}
html.js .lead div{position:absolute;white-space:nowrap;text-shadow:0 0 14px rgba(10,7,5,.8),0 1px 3px rgba(10,7,5,.65)}
html.js .lead b{display:block;font:700 .84rem/1.2 "Mont",system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase}
html.js .lead em{display:block;font:italic 400 1.15rem/1.3 "Caslon",Georgia,serif;margin-top:5px}

/* работы: фото прямо на экране, лентой */
html.js .obr{left:var(--m);bottom:calc(70px + 36px);width:300px}
html.js .obr .tit h2{font-size:clamp(34px,min(5vw,8vh),98px)}
html.js .obr p{margin-top:14px;font:400 1.125rem/1.5 "Caslon",Georgia,serif}
html.js .cinta{left:calc(var(--m) + 340px);right:0;bottom:70px;display:flex;gap:18px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none;touch-action:pan-x;overscroll-behavior:contain;padding-right:var(--m);scroll-snap-type:x proximity}
html.js .cinta::-webkit-scrollbar{display:none}
.cinta figure{flex:none;width:min(312px,24vh*1.38);scroll-snap-align:start}
.cinta img{width:100%;height:auto;aspect-ratio:312/226;object-fit:cover;border-radius:4px;box-shadow:0 10px 30px rgba(0,0,0,.35);background:#3a302a}
.cinta figcaption{margin-top:10px;font:italic 400 .94rem/1.3 "Caslon",Georgia,serif}
html.js .flechas{right:var(--m);bottom:calc(70px + min(226px,24vh) + 1.3rem + 46px);display:flex;gap:10px}
html.js .flechas button{width:46px;height:46px;border:1px solid rgba(244,236,223,.7);border-radius:50%;display:flex;align-items:center;justify-content:center}
html.js .flechas svg{width:18px;height:18px}
html.js .flechas button[disabled]{opacity:.35;cursor:default}

/* появление и уход содержимого остановки: мелкие части по очереди, большие слои не двигаются */
html.js .parada .tit,html.js .parada .col,html.js .parada .lead u,html.js .parada .lead div,html.js .parada .obr,html.js .parada .cinta,html.js .parada .flechas{opacity:0;transform:translateY(14px);transition:opacity .22s linear,transform .22s linear}
html.js .parada .lead polyline{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .2s linear}
html.js .parada.ve .tit,html.js .parada.ve .col,html.js .parada.ve .lead u,html.js .parada.ve .lead div,html.js .parada.ve .obr,html.js .parada.ve .cinta,html.js .parada.ve .flechas{opacity:1;transform:none;transition:opacity .9s var(--e),transform .9s var(--e)}
html.js .parada .obr .tit{opacity:1;transform:none;transition:none}
html.js .parada.ve .lead polyline{stroke-dashoffset:0;transition:stroke-dashoffset .9s var(--e)}
html.js .parada.ve .tit{transition-delay:.05s}html.js .parada.ve .col,html.js .parada.ve .cinta{transition-delay:.22s}html.js .parada.ve .flechas{transition-delay:.3s}
html.js .parada.ve .lead:nth-of-type(1) u{transition-delay:.10s}html.js .parada.ve .lead:nth-of-type(1) polyline{transition-delay:.18s}html.js .parada.ve .lead:nth-of-type(1) div{transition-delay:.42s}
html.js .parada.ve .lead:nth-of-type(2) u{transition-delay:.30s}html.js .parada.ve .lead:nth-of-type(2) polyline{transition-delay:.38s}html.js .parada.ve .lead:nth-of-type(2) div{transition-delay:.62s}
html.js .parada.ve a,html.js .parada.ve button,html.js .parada.ve .cinta{pointer-events:auto}
html.js .parada.ve .col,html.js .parada.ve .tit,html.js .parada.ve .obr{-webkit-user-select:text;user-select:text}

@media (hover:hover) and (pointer:fine){
  html.js .nav a:hover span{border-bottom-color:rgba(244,236,223,.6)}
  .lnk:hover span,.dat a:hover span{border-bottom-color:var(--nar2)}
  html.js .flechas button:not([disabled]):hover{border-color:var(--crema);background:rgba(244,236,223,.12)}
}

/* низкие окна (ноутбук, телефон боком) */
html.js.bajo{--mb:46px}
html.js.bajo .logo{height:clamp(64px,13vh,108px);padding:clamp(8px,1.6vh,14px);top:clamp(4px,1vh,10px)}
html.js.bajo .nav{top:clamp(8px,3.4vh,40px)}
html.js.bajo .pie{bottom:22px}
html.js.bajo .cinta{bottom:44px}
html.js.bajo .obr{bottom:44px}
html.js.bajo .flechas{bottom:calc(44px + min(226px,24vh) + 14px)}
html.js.bajo .cinta figcaption{display:none}
html.js.chico{--m:24px;--mb:26px}
html.js.chico .logo{left:8px}
html.js.chico .pie{display:none}
html.js.chico .col{flex-basis:320px;font-size:calc(.94rem*var(--z,1));line-height:1.4}
html.js.chico .cinta{bottom:22px;left:calc(var(--m) + 230px)}
html.js.chico .obr{bottom:22px;width:210px}
html.js.chico .flechas{display:none}
html.js.chico .obr p{display:none}
html.js.chico .paso{display:none}
html.js.chico .capas,html.js.chico .capas-t{display:none}
html.js.chico .botones{top:6px}
html.js.chico .hoja{top:46px}
html.js.chico .hoja a{padding:7px 0;min-height:0;display:flex;align-items:center;justify-content:flex-end;height:44px}
html.js.chico .hoja a.w{margin-top:0;padding-top:7px;border-top:0}
@media (max-height:400px){html.js.chico .hoja{top:44px;columns:2;column-gap:28px;right:16px}html.js.chico .hoja a{break-inside:avoid}}

/* телефон и узкие окна: всё столбиком в нижней части экрана */
html.js.ph{--m:20px;--mb:calc(26px + env(safe-area-inset-bottom,0px))}
html.js.ph .logo{left:10px;top:6px;height:76px;padding:10px}
html.js.ph .caja{display:block}
html.js.ph .tit h1{font-size:calc(clamp(28px,min(9.6vw,5.7vh),60px)*var(--z,1));line-height:1.02}
html.js.ph .tit h2{font-size:calc(clamp(28px,min(9.6vw,5.7vh),60px)*var(--z,1));line-height:1.02}
html.js.ph .col{margin-top:clamp(10px,1.8vh,16px);font-size:calc(1.03rem*var(--z,1));line-height:1.45;padding-bottom:0;max-width:34em}
html.js.ph .pie{display:none}
html.js.ph .paso{right:12px;top:40%}
html.js.ph .lead b{font-size:.75rem}
html.js.ph .lead em{font-size:.94rem;margin-top:3px}
html.js.ph .capas{font-size:.7rem;line-height:1.75;margin-top:6px;padding-top:8px;columns:auto}
html.js.ph .capas li{display:inline;padding:0}
html.js.ph .capas li+li::before{content:"· "}
html.js.ph .solo-pc{display:none}
html.js.ph .capas-t{margin-top:10px;font-size:.9rem}
html.js.ph .obr{top:auto;bottom:calc(var(--mb) + min(154px,23vh) + 62px);width:auto;right:var(--m)}
html.js.ph .obr .tit h2{font-size:clamp(28px,min(9.6vw,5.7vh),60px)}
html.js.ph .obr p{font-size:.94rem;margin-top:8px}
html.js.ph .cinta{bottom:var(--mb);gap:10px;left:var(--m)}
html.js.ph .cinta figure{width:min(206px,23vh*1.34)}
html.js.ph .cinta img{aspect-ratio:206/154}
html.js.ph .cinta figcaption{font-size:.85rem;margin-top:7px}
html.js.ph .flechas{display:none}
@supports (padding:max(0px)){
  html.js .botones{right:max(8px,env(safe-area-inset-right))}
  html.js.ph .logo,html.js.chico .logo{left:max(8px,env(safe-area-inset-left))}
}

@media (prefers-reduced-motion:reduce){
  html.js .parada *,html.js .hoja a,html.js .sombra,html.js #velo,html.js .cab,html.js .paso,html.js .pie,html.js #fija,html.js #fijb{transition-duration:.01s!important;transition-delay:0s!important}
}
@media print{
  html.js,html.js body{height:auto;overflow:visible}
  html.js #esc{position:static}
  html.js #fondo,html.js #velo,html.js .sombra,html.js .botones,html.js .hoja,html.js .paso,html.js .pie,html.js .flechas,html.js .lead,html.js .linea,.salto{display:none!important}
  html.js #esc>*,html.js main,html.js .parada,html.js .parada>*,html.js .cab>*{position:static!important;visibility:visible!important;opacity:1!important;transform:none!important}
  html.js .cab{height:auto;opacity:1}
  body,html{background:#fff!important;color:#000!important}
  .logo img{filter:none;height:70px}
  html.js .caja{display:block}
  html.js .parada{padding:18px 0;break-inside:avoid}
  html.js .cinta{display:flex;flex-wrap:wrap;gap:8px}
  .cinta figure{width:150px}
}
