/* Project Control Industrial — ingeniería, planificación y abastecimiento B2B */
:root {
  --night: #08111b;
  --navy: #0d1a28;
  --steel: #152536;
  --steel-2: #1d3247;
  --line: rgba(160, 190, 220, .14);
  --line-2: rgba(160, 190, 220, .26);
  --text: #eef3f8;
  --muted: #9fb0c2;
  --dim: #6f8296;
  --orange: #f28c28;
  --orange-2: #ffab52;
  --paper: #f4f6f8;
  --ink: #0b1622;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --max: 1280px;
  --g: clamp(16px, 4vw, 40px);
  --r: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.pc { margin: 0; background: var(--night); color: var(--text); font: 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
.pc img { display: block; max-width: 100%; }
.pc a { color: inherit; text-decoration: none; }
.pc button, .pc input, .pc select, .pc textarea { font: inherit; color: inherit; }
.pc h1, .pc h2, .pc h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; }
.pc p { margin: 0; }
.pc ul, .pc ol { margin: 0; padding: 0; list-style: none; }
.pc :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.pc .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); display: inline-flex; gap: 10px; align-items: center; }
.label::before { content: ""; width: 8px; height: 8px; background: var(--orange); }

/* Botones */
.pc .b { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: var(--r); border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.pc .b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.pc .b:hover svg { transform: translateX(3px); }
.b-or { background: var(--orange); color: var(--ink) !important; }
.b-or:hover { background: var(--orange-2); }
.b-ln { border-color: var(--line-2) !important; }
.b-ln:hover { border-color: var(--text) !important; }
.b-dk { background: var(--ink); color: #fff !important; }

/* Header */
.pc-top { background: #050b12; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.pc-top .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.pc-top b { color: var(--muted); font-weight: 500; }
.pc-head { position: sticky; top: 0; z-index: 50; background: rgba(8, 17, 27, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.pc-head .wrap { display: flex; align-items: center; gap: 32px; height: 76px; }
.pc-logo img { height: 40px; width: auto; }
.pc-nav { display: flex; gap: 6px; margin-left: auto; font-size: 15px; }
.pc-nav a { padding: 8px 14px; border-radius: var(--r); color: var(--muted); transition: color .2s, background .2s; }
.pc-nav a:hover, .pc-nav a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .05); }
.pc-nav .cart-count, .pc-head .cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--ink); color: var(--orange); font-size: 12px; font-weight: 700; }
.pc-menu { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.pc-menu svg { width: 20px; height: 20px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Hero */
.pc-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.pc-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.pc-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(8, 17, 27, .97) 0%, rgba(8, 17, 27, .82) 48%, rgba(8, 17, 27, .35) 100%); }
.grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000 30%, transparent 75%); -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 75%); }
.pc-hero .wrap { padding-top: clamp(72px, 10vw, 132px); padding-bottom: clamp(56px, 8vw, 100px); }
.pc-hero h1 { font-size: clamp(44px, 6.2vw, 88px); max-width: 920px; margin: 22px 0 24px; }
.pc-hero h1 em { font-style: normal; color: var(--orange); }
.pc-hero p.lead { max-width: 600px; font-size: 19px; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 920px; margin-top: 64px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(13, 26, 40, .6); backdrop-filter: blur(8px); }
.specs div { padding: 18px 20px; }
.specs div + div { border-left: 1px solid var(--line-2); }
.specs strong { display: block; font-family: var(--mono); font-size: 26px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; }
.specs span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }

/* Ticker */
.ticker { border-bottom: 1px solid var(--line); background: var(--navy); overflow: hidden; }
.ticker-track { display: flex; gap: 48px; width: max-content; padding: 18px 0; animation: tick 40s linear infinite; font-family: var(--mono); font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ticker-track span::before { content: "◆"; color: var(--orange); margin-right: 14px; font-size: 10px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Secciones */
.s { padding: clamp(72px, 10vw, 136px) 0; }
.s.alt { background: var(--navy); }
.s.light { background: var(--paper); color: var(--ink); }
.s-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.s-head h2 { font-size: clamp(34px, 4.2vw, 58px); margin-top: 16px; }
.s-head p { color: var(--muted); font-size: 17.5px; }
.s.light .s-head p { color: #46576a; }

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.collage { position: relative; aspect-ratio: 1 / 1.02; }
.collage figure { position: absolute; margin: 0; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-2); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c-a { inset: 0 18% 22% 0; }
.collage .c-b { inset: 44% 0 0 38%; box-shadow: 0 30px 60px -20px #000; }
.collage figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 4px; background: rgba(8, 17, 27, .85); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }
.collage figcaption b { color: var(--orange); font-weight: 500; margin-right: 6px; }
.years { position: absolute; left: 0; bottom: 0; width: 34%; padding: 18px; border-radius: var(--r); background: var(--orange); color: var(--ink); }
.years strong { display: block; font-family: var(--mono); font-size: 46px; font-weight: 600; line-height: 1; }
.years span { font-size: 13px; font-weight: 600; }
.about h2 { font-size: clamp(32px, 3.6vw, 50px); margin: 16px 0 18px; }
.about p { color: var(--muted); font-size: 17px; }
.ticks { display: grid; gap: 12px; margin: 26px 0 32px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.ticks li::before { content: ""; width: 22px; height: 22px; border-radius: 4px; background: rgba(242, 140, 40, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23f28c28' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; margin-top: 2px; }

/* Servicios */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.svc article { position: relative; padding: 32px 30px 34px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: grid; gap: 14px; align-content: start; transition: background .3s; }
.svc article:hover { background: rgba(242, 140, 40, .05); }
.svc .n { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.svc .n i { font-style: normal; color: var(--orange); border: 1px solid rgba(242, 140, 40, .35); padding: 2px 8px; border-radius: 3px; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.svc svg { width: 34px; height: 34px; fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 22px; }
.svc p { color: var(--muted); font-size: 15.5px; }
.svc ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.svc li { font-family: var(--mono); font-size: 11.5px; padding: 4px 8px; border-radius: 3px; background: rgba(255, 255, 255, .05); color: var(--muted); }

/* Industrias */
.inds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ind { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.ind img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ind:hover img { transform: scale(1.06); }
.ind::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 17, 27, .92)); }
.ind div { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.ind h3 { font-size: 22px; }
.ind p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Proceso */
.proc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid #d5dde5; border-radius: var(--r); background: #fff; }
.proc li { padding: 30px 26px; display: grid; gap: 10px; align-content: start; }
.proc li + li { border-left: 1px solid #d5dde5; }
.proc b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: #c46a12; }
.proc h3 { font-size: 21px; }
.proc p { color: #46576a; font-size: 15px; }

/* Tienda teaser */
.shop-teaser { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.shop-teaser h2 { font-size: clamp(32px, 3.8vw, 52px); margin: 16px 0 16px; }
.shop-teaser p { color: var(--muted); font-size: 17px; }
.prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prod { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--steel); display: grid; }
.prod img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.prod div { padding: 14px; display: grid; gap: 4px; }
.prod small { font-family: var(--mono); font-size: 11px; color: var(--orange); letter-spacing: .06em; text-transform: uppercase; }
.prod b { font-weight: 600; font-size: 15px; line-height: 1.3; }

/* CTA */
.pc-cta { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-2); background: linear-gradient(120deg, var(--steel), var(--navy)); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.pc-cta .grid-bg { mask-image: linear-gradient(270deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%); }
.pc-cta h2 { font-size: clamp(32px, 4vw, 54px); }
.pc-cta p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.pc-cta .ctas { margin-top: 0; justify-content: flex-end; }
.pc-cta .urgent { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #ff8a7a; margin-bottom: 16px; }
.pc-cta .urgent i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a47; box-shadow: 0 0 0 4px rgba(255, 90, 71, .2); }

/* Footer */
.pc-foot { border-top: 1px solid var(--line); background: #050b12; padding: 64px 0 28px; margin-top: clamp(72px, 10vw, 120px); font-size: 14.5px; color: var(--muted); }
.pc-foot .grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.pc-foot h4 { margin: 0 0 14px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.pc-foot li { margin-bottom: 9px; }
.pc-foot a:hover { color: var(--text); }
.pc-foot .pc-logo img { height: 44px; margin-bottom: 18px; }
.pc-foot .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* Páginas internas */
.p-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.p-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.p-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(8, 17, 27, .96), rgba(8, 17, 27, .7)); }
.p-hero .wrap { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(48px, 7vw, 88px); }
.p-hero h1 { font-size: clamp(40px, 5.4vw, 74px); max-width: 960px; margin-top: 18px; }
.p-hero p { margin-top: 18px; max-width: 640px; font-size: 18px; color: var(--muted); }
.crumb { display: flex; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin-bottom: 18px; }
.crumb a:hover { color: var(--text); }
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-detail article { display: grid; grid-template-columns: 160px 1fr; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--navy); }
.svc-detail img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.svc-detail div { padding: 24px; display: grid; gap: 10px; align-content: start; }
.svc-detail h3 { font-size: 21px; }
.svc-detail p { color: var(--muted); font-size: 15px; }
.svc-detail .n { font-family: var(--mono); font-size: 12px; color: var(--orange); letter-spacing: .06em; text-transform: uppercase; }
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cred { padding: 26px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--navy); display: grid; gap: 8px; }
.cred strong { font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--orange); }
.cred span { color: var(--muted); font-size: 14.5px; }
.timeline-pc { display: grid; gap: 0; }
.timeline-pc li { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line-2); }
.timeline-pc li:last-child { border-bottom: 1px solid var(--line-2); }
.timeline-pc b { font-family: var(--mono); font-weight: 500; color: var(--orange); font-size: 14px; }
.timeline-pc h3 { font-size: 20px; margin-bottom: 6px; }
.timeline-pc p { color: var(--muted); }
.contact-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-pc { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--navy); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.form-pc h2 { font-size: 30px; }
.form-pc .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-pc label { display: grid; gap: 7px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form-pc label.full { grid-column: 1 / -1; }
.form-pc input, .form-pc select, .form-pc textarea { width: 100%; min-width: 0; padding: 13px 14px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--night); font-family: var(--sans); font-size: 15.5px; letter-spacing: 0; text-transform: none; color: var(--text); resize: vertical; }
.form-pc input:focus, .form-pc select:focus, .form-pc textarea:focus { outline: 0; border-color: var(--orange); }
.urg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.urg label { position: relative; cursor: pointer; }
.urg input { position: absolute; opacity: 0; }
.urg span { display: block; padding: 12px; border-radius: 4px; border: 1px solid var(--line-2); font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); text-align: center; }
.urg input:checked + span { border-color: var(--orange); background: rgba(242, 140, 40, .12); }
.urg input:focus-visible + span { outline: 2px solid var(--orange); }
.quote-note { padding: 14px 16px; border-radius: 4px; background: rgba(242, 140, 40, .1); border: 1px solid rgba(242, 140, 40, .3); font-size: 14.5px; }
.ok-pc { padding: 14px 16px; border-radius: 4px; background: rgba(60, 200, 120, .12); border: 1px solid rgba(60, 200, 120, .35); color: #9be3b9; font-size: 15px; }
.side-pc { border: 1px solid var(--line-2); border-radius: var(--r); padding: 28px; display: grid; gap: 20px; position: sticky; top: 100px; }
.side-pc img { height: 46px; width: auto; }
.side-pc ol { display: grid; gap: 14px; counter-reset: c; }
.side-pc li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--muted); font-size: 15px; }
.side-pc li::before { counter-increment: c; content: "0" counter(c); font-family: var(--mono); color: var(--orange); font-size: 13px; padding-top: 2px; }
.side-pc li b { display: block; color: var(--text); font-weight: 600; }
.admin-link { position: fixed; right: 16px; bottom: 16px; z-index: 30; padding: 8px 12px; border-radius: 4px; background: rgba(8, 17, 27, .9); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.admin-link:hover { color: var(--text); }

/* Reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .svc { grid-template-columns: 1fr 1fr; }
  .inds { grid-template-columns: 1fr 1fr; }
  .proc { grid-template-columns: 1fr 1fr; }
  .proc li:nth-child(3) { border-left: 0; }
  .proc li:nth-child(n+3) { border-top: 1px solid #d5dde5; }
  .creds { grid-template-columns: 1fr 1fr; }
  .svc-detail { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pc-top .hide-sm { display: none; }
  .pc-head .wrap { height: 66px; }
  .pc-logo img { height: 34px; }
  .pc-menu { display: grid; }
  .pc-nav { position: fixed; inset: 66px 0 auto; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--g) 20px; background: var(--night); border-bottom: 1px solid var(--line); transform: translateY(calc(-100% - 120px)); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; z-index: -1; }
  .pc-nav.open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .pc-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; border-radius: 0; background: none !important; }
  .pc-head .b-or { display: none; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs div:nth-child(3) { border-left: 0; }
  .specs div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .s-head, .about, .shop-teaser, .pc-cta, .contact-wrap { grid-template-columns: 1fr; }
  .pc-cta .ctas { justify-content: flex-start; }
  .pc-foot .grid { grid-template-columns: 1fr 1fr; }
  .side-pc { position: static; }
  .timeline-pc li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 560px) {
  .svc, .inds, .proc, .creds, .form-pc .fields, .pc-foot .grid { grid-template-columns: 1fr; }
  .proc li + li { border-left: 0; border-top: 1px solid #d5dde5; }
  .prods { grid-template-columns: 1fr 1fr; }
  .svc-detail article { grid-template-columns: 1fr; }
  .svc-detail img { min-height: 0; aspect-ratio: 16 / 9; }
  .urg { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pc *, .pc *::before, .pc *::after { transition: none !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
}
.chips-pc { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-pc li { font-family: var(--mono); font-size: 11.5px; padding: 4px 8px; border-radius: 3px; background: rgba(255, 255, 255, .05); color: var(--muted); }
.form-pc .full { grid-column: 1 / -1; }
