/* Integral Manufacture — diseño v2 (visual, oscuro) */

:root {
  --bg: #0a1218;
  --bg-2: #0f1b24;
  --bg-3: #15252f;
  --line: rgba(255, 255, 255, .1);
  --text: #e9eff3;
  --muted: #9fb0bb;
  --brand: #4bbfec;
  --brand-2: #8fd8f5;

  --display: "Archivo", system-ui, sans-serif;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 6px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--bg); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Titulares condensados */
.display {
  font-family: var(--display); font-stretch: 72%; font-weight: 800;
  text-transform: uppercase; letter-spacing: -.01em; line-height: .92;
}
.kicker {
  font: 600 12.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }

.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-title { font-size: clamp(44px, 7vw, 96px); margin-bottom: clamp(32px, 5vw, 56px); }
.section-title em { font-style: normal; color: var(--brand); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 15px/1 var(--font); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--bg); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(10, 18, 24, .92); backdrop-filter: blur(10px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { margin-right: auto; display: flex; }
.brand img { height: 46px; width: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: block; padding: 10px 13px; color: #dfe7ec; font-size: 15px; font-weight: 500; text-decoration: none; border-radius: 999px; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lang { font: 600 13px/1 var(--mono); letter-spacing: .08em; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 10px 13px; }
.lang:hover { border-color: var(--brand); color: var(--brand); }
.header-cta { min-height: 44px; padding: 0 18px; font-size: 14px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 18, 24, .4); color: #fff; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 1100px) {
  .nav-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: rgba(10, 18, 24, .98); padding: 8px var(--gutter) 24px; display: none; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { font-size: 22px; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-stretch: 80%; font-weight: 700; text-transform: uppercase; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 18s ease-out forwards; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 24, .55) 0%, rgba(10, 18, 24, 0) 30%),
    linear-gradient(0deg, rgba(10, 18, 24, 1) 0%, rgba(10, 18, 24, .55) 45%, rgba(10, 18, 24, .15) 100%);
}
@keyframes drift { to { transform: scale(1); } }
.hero-content { position: relative; padding: calc(var(--header-h) + 40px) 0 48px; }
.hero h1 { font-size: clamp(56px, 11vw, 168px); }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { color: var(--brand); }
.hero-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; }
.hero-sub p { margin: 0; font-size: clamp(17px, 1.6vw, 20px); color: #d6e0e6; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 24px 20px 28px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1; text-transform: uppercase; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Mosaico de capacidades ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 22vw, 300px); gap: 12px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); isolation: isolate; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 18, 24, .92) 0%, rgba(10, 18, 24, .35) 50%, rgba(10, 18, 24, .05) 100%); transition: background .4s; }
.tile-body { position: absolute; inset: auto 0 0 0; padding: 22px; }
.tile-num { font: 600 12px/1 var(--mono); letter-spacing: .12em; color: var(--brand); }
.tile h3 { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 34px); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .3s ease, margin .3s; }
.chips li { font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); white-space: nowrap; }
.tile:hover img, .tile:focus-within img { transform: scale(1.06); }
.tile:hover::after, .tile:focus-within::after { background: linear-gradient(0deg, rgba(10, 18, 24, .95) 0%, rgba(10, 18, 24, .6) 60%, rgba(10, 18, 24, .2) 100%); }
.tile:hover .chips, .tile:focus-within .chips { max-height: 220px; opacity: 1; margin-top: 14px; }
@media (hover: none) {
  .chips { max-height: none; opacity: 1; margin-top: 12px; }
  .chips li { white-space: normal; }
}
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .tile.wide { grid-column: span 1; }
  .tile.tall { grid-row: span 1; }
}

/* ---------- Banda de proceso (imagen a todo lo ancho) ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 18, 24, .94) 0%, rgba(10, 18, 24, .75) 55%, rgba(10, 18, 24, .5) 100%); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 22px 16px 0 0; border-top: 2px solid rgba(255, 255, 255, .25); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--brand); font-size: 0; }
.steps strong { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: clamp(22px, 2vw, 28px); text-transform: uppercase; }
.steps span { display: block; font: 500 12.5px/1.4 var(--mono); color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr 1fr; } }

/* ---------- Galería deslizable ---------- */
.reel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.reel-controls { display: flex; gap: 10px; margin-bottom: clamp(32px, 5vw, 56px); }
.reel-controls button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.reel-controls button:hover { border-color: var(--brand); color: var(--brand); }
.reel-controls svg { width: 22px; height: 22px; }
.reel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter);
}
.reel::-webkit-scrollbar { display: none; }
.reel li { flex: 0 0 auto; scroll-snap-align: start; }
.reel figure { margin: 0; position: relative; height: clamp(320px, 42vw, 540px); border-radius: var(--radius); overflow: hidden; }
.reel img { height: 100%; width: auto; max-width: none; object-fit: cover; }
.reel figcaption { position: absolute; left: 14px; bottom: 14px; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; padding: 9px 12px; border-radius: 999px; background: rgba(10, 18, 24, .7); backdrop-filter: blur(6px); }
@media (min-width: 1320px) { .reel { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); scroll-padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }

/* ---------- Industrias / armadoras ---------- */
.industries { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.industries p { color: var(--muted); font-size: 18px; max-width: 460px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { font: 600 13px/1 var(--mono); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-3); }
.oem-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.oem-logos li { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 16px; border-radius: var(--radius); background: #e8eef2; transition: background .25s, transform .25s; }
.oem-logos li:hover { background: #fff; transform: translateY(-2px); }
.oem-logos img { max-height: 46px; max-width: 100%; width: auto; height: auto; }
@media (max-width: 900px) { .industries { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .oem-logos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Clientes: marquesina ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(24px, 3vw, 36px) 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li { font-family: var(--display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 5vw, 68px); line-height: 1; padding: 0 clamp(20px, 3vw, 40px); white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(233, 239, 243, .55); display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.marquee li::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.marquee li:hover { color: var(--text); -webkit-text-stroke-color: var(--text); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Shelter (split con imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; background: var(--bg-2); }
.split-media { position: relative; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-body { padding: clamp(48px, 7vw, 110px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.split-body .section-title { font-size: clamp(40px, 5vw, 72px); margin-bottom: 24px; }
.split-body p { color: var(--muted); font-size: 18px; max-width: 480px; }
.checks { display: grid; gap: 12px; margin-top: 18px; }
.checks li { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 18px; }
.checks li::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%230a1218' stroke-width='2'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media { min-height: 300px; } }

/* ---------- Plantas ---------- */
.plants { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plant { position: relative; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--radius); background: rgba(15, 27, 36, .78); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.plant-flag { font: 600 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0; }
.plant h3 { font-family: var(--display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 4vw, 52px); margin: 12px 0 20px; }
.plant dl { margin: 0; display: grid; gap: 12px; }
.plant dt { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.plant dd { margin: 0; }
.plant a { color: #fff; }
.plant a:hover { color: var(--brand); }
@media (max-width: 760px) { .plants { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 44px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact .section-title { font-size: clamp(48px, 7vw, 100px); margin-bottom: 28px; }
.contact-lines { display: grid; gap: 10px; }
.contact-lines a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; transition: background .2s, border-color .2s; }
.contact-lines a:hover { background: rgba(75, 191, 236, .12); border-color: var(--brand); }
.contact-lines svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.contact-lines small { display: block; font: 500 11.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-person { margin-top: 18px; color: var(--muted); font-size: 15px; }
.contact-person strong { color: #fff; }

.form { padding: clamp(24px, 3.5vw, 40px); border-radius: 12px; background: rgba(10, 18, 24, .72); backdrop-filter: blur(14px); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: #d6e0e6; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: #fff; width: 100%;
  padding: 13px 14px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
}
.field select option { color: #0a1218; }
.field input::placeholder, .field textarea::placeholder { color: #7f919c; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.form .btn { width: 100%; margin-top: 20px; }
.form-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #060b0f; color: var(--muted); font-size: 14.5px; padding: 56px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-top img { height: 52px; width: auto; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 80px); }
.footer-cols h3 { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-cols ul { display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; padding-top: 24px; font-size: 13px; }
.footer-bottom .to-top { justify-self: end; }
.site-footer .credit { justify-self: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.site-footer .credit strong { color: #fff; font-weight: 600; }
.site-footer .credit:hover { border-color: var(--brand); }
.site-footer .credit:hover strong { color: var(--brand); }
@media (max-width: 860px) {
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-bottom .to-top { justify-self: center; }
}

/* ---------- Animaciones ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
