/* LEXSAN Radiadores S.A.C. — landing
   Dirección visual: "vidrio térmico". Superficies de vidrio esmerilado (blur),
   resplandores naranjas difuminados y esquinas amplias.
   Mobile first. Cortes principales: 700px, 1000px, 1100px. */

:root {
  --orange: #FC4805;        /* naranja medido en el logo oficial */
  --orange-ink: #C23600;    /* naranja oscuro para texto pequeño sobre claro (AA) */
  --orange-soft: #FF8A5C;   /* naranja claro para texto pequeño sobre oscuro (AA) */
  --ink: #0c0c0d;
  --black: #111111;
  --paper: #f5f4f1;
  --white: #ffffff;
  --text: #3a3a3a;
  --muted: #5a5a5a;
  --line: #e4e2dd;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --nav-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-soft: 0 24px 60px rgba(17, 17, 17, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1.02; color: var(--black); text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); letter-spacing: -.005em; }
h3 { font-size: 1.8rem; font-weight: 500; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .hero :focus-visible, .nav :focus-visible, .contact :focus-visible, .map__card :focus-visible, .footer :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--black); color: #fff; padding: 12px 18px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: 20px; }
.section { position: relative; padding-block: 88px; }
.section--tight { padding-block: 80px; }
.section--flush { padding-top: 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: #d6d6d6; overflow: hidden; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 780px; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }
@media (min-width: 1000px) { .section { padding-block: 128px; } .section--tight { padding-block: 104px; } .section--flush { padding-top: 0; } .section__head { margin-bottom: 56px; } }

.kicker { margin: 0 0 16px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); }
.kicker--light { color: var(--orange-soft); }
.lead { font-size: 1.07rem; color: var(--muted); max-width: 54ch; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(252, 72, 5, .28); }

/* ---------- Vidrio y resplandores ---------- */
.glass {
  background: rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .17);
}
.blob { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(252, 72, 5, .5) 0%, rgba(252, 72, 5, .18) 38%, rgba(252, 72, 5, 0) 68%); }
.blob--photo { left: -90px; bottom: -90px; width: 420px; height: 420px; }
.blob--a { right: -160px; top: -160px; width: 560px; height: 560px; }
.blob--b { left: -180px; bottom: -200px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(255, 179, 143, .8) 0%, rgba(255, 179, 143, 0) 66%); }
.blob--gallery { right: -320px; top: -320px; width: 900px; height: 900px; opacity: .55; }
.blob--contact { left: -360px; top: -320px; width: 1000px; height: 1000px; opacity: .7; }

.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 9px 18px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pill--glass { color: #fff; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .2); }
.pill--frost { color: var(--black); background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .9); letter-spacing: .02em; text-transform: none; font-size: .88rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .3s, transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--black); }
.btn--primary:hover { background: #ff6a2e; }
.btn--glow { box-shadow: 0 14px 40px rgba(252, 72, 5, .4); }
.btn--glow:hover { box-shadow: 0 18px 54px rgba(252, 72, 5, .55); }
.btn--glass { color: #fff; font-weight: 600; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, .3); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #2a2a2a; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .88rem; }
.btn--block { width: 100%; }

.round-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .06); color: #fff;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.round-btn:hover, .round-btn--accent { background: var(--orange); border-color: var(--orange); color: var(--black); }
.round-btn--accent:hover { background: #ff6a2e; }

/* ---------- Navbar flotante ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 12px 12px 0; pointer-events: none; }
.nav__bar {
  position: relative; z-index: 0; pointer-events: auto;
  max-width: 1208px; margin-inline: auto; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 12px; border-radius: 999px; color: #fff;
}
.nav__bar::before { /* el vidrio va en un pseudo-elemento para no atrapar al menú fijo */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background-color .35s, box-shadow .35s;
}
.nav.is-solid .nav__bar::before, .nav.is-open .nav__bar::before { background: rgba(16, 16, 17, .74); box-shadow: 0 14px 40px rgba(0, 0, 0, .22); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 42px; height: 42px; padding: 5px; background: #fff; border-radius: 13px; flex: none; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: .06em; }
.brand__text span { font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-top: 4px; color: #dcdcdc; }

.nav__toggle { display: grid; align-content: center; gap: 7px; width: 46px; height: 46px; padding: 12px; background: rgba(255, 255, 255, .1); border: 0; border-radius: 50%; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.nav__menu {
  position: fixed; inset: 0; z-index: -2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 104px 28px 36px;
  background: rgba(12, 12, 13, .9); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .3s, visibility 0s .3s;
}
.nav.is-open .nav__menu { visibility: visible; opacity: 1; transition-delay: 0s; }
.nav__menu ul { display: flex; flex-direction: column; }
.nav__menu ul a { display: block; padding: 12px 0; font-family: var(--display); font-weight: 500; font-size: 2.1rem; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nav__menu ul a[aria-current="true"] { color: var(--orange-soft); }
.nav__menu .btn { min-height: 56px; font-size: 1rem; }

@media (min-width: 1100px) {
  .nav { padding-top: 18px; }
  .nav__bar { padding-left: 14px; }
  .nav__toggle { display: none; }
  .nav__menu { position: static; z-index: auto; flex: 1; flex-direction: row; align-items: center; justify-content: flex-end; gap: 28px; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; visibility: visible; opacity: 1; transition: none; }
  .nav__menu ul { flex-direction: row; gap: 4px; margin-inline: auto; }
  .nav__menu ul a { padding: 10px 14px; border: 0; border-radius: 999px; font-family: var(--body); font-size: .9rem; font-weight: 500; text-transform: none; color: #ececec; transition: background-color .25s, color .25s; }
  .nav__menu ul a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
  .nav__menu ul a[aria-current="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
  .nav__menu .btn { min-height: 44px; font-size: .88rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); max-width: none; object-fit: cover; object-position: 40% 40%; filter: blur(3px) saturate(1.05); z-index: -3; }
.hero__overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(12, 12, 13, .64) 0%, rgba(12, 12, 13, .4) 35%, rgba(12, 12, 13, .95) 100%); }
.hero__glow {
  position: absolute; z-index: -1; left: 0; top: 0; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(252, 72, 5, .5) 0%, rgba(252, 72, 5, .2) 36%, rgba(252, 72, 5, 0) 66%);
  transform: translate3d(var(--gx, 12vw), var(--gy, 96vh), 0);
  will-change: transform;
}
.hero__content { display: grid; gap: 32px; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 40px; }
.hero h1 { color: #fff; font-weight: 500; font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.1; letter-spacing: -.01em; text-transform: none; max-width: 19ch; margin-top: 26px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lead { margin: 26px 0 34px; max-width: 54ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.6; color: #e6e6e6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__card { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--r-lg); max-width: 460px; }
.hero__card img { width: 96px; height: 96px; object-fit: cover; object-position: center 35%; border-radius: 18px; flex: none; }
.hero__card p { margin: 0 0 8px; font-size: .82rem; line-height: 1.45; color: #e4e4e4; }
.hero__card strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: .08em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); }
.chips li { padding: 8px 16px; border-radius: 999px; font-size: .8rem; font-weight: 500; color: #ededed; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .16); }

@media (max-width: 479px) { .hero__cta .btn { width: 100%; } }
@media (min-width: 1000px) {
  .hero__content { grid-template-columns: minmax(0, 1fr) 340px; align-items: end; column-gap: 56px; row-gap: 44px; padding-bottom: 56px; }
  .hero__card { flex-direction: column; align-items: stretch; padding: 14px; }
  .hero__card img { width: 100%; height: 210px; }
  .hero__card div { padding: 0 8px 10px; }
  .hero__card p { font-size: .86rem; }
  .hero__card strong { font-size: 1.45rem; }
  .chips { grid-column: 1 / -1; }
}

/* ---------- Nosotros ---------- */
.about { display: grid; gap: 48px; }
.about__photo { position: relative; }
.about__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 74%; border-radius: var(--r-xl); }
.about__badge { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-radius: var(--r-md); color: #fff; font-size: .93rem; font-weight: 600; line-height: 1.35; background: rgba(20, 20, 20, .5); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .2); }
.about__body h2 { margin-bottom: 26px; }
.about__body > p { font-size: 1.05rem; }

.tabs { position: relative; margin-top: 34px; padding: 10px; border-radius: var(--r-lg); background: var(--black); color: #fff; overflow: hidden; box-shadow: 0 30px 70px rgba(17, 17, 17, .22); isolation: isolate; }
.tabs::before { content: ""; position: absolute; z-index: -1; right: -140px; top: -180px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(252, 72, 5, .5), rgba(252, 72, 5, 0) 66%); pointer-events: none; }
.tabs__list { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.tabs__tab { min-height: 44px; padding: 0 28px; border: 0; border-radius: 999px; background: transparent; color: #e2e2e2; font-size: .92rem; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s; }
.tabs__tab:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.tabs__tab[aria-selected="true"] { background: var(--orange); color: var(--black); }
.tabs .tabs__tab:focus-visible, .tabs .tabs__panel:focus-visible { outline-color: #fff; }
.tabs__panel { padding: 22px 18px 18px; min-height: 9em; border-radius: 18px; }
.tabs__panel p { margin: 0; font-size: 1.06rem; line-height: 1.65; color: #f2f2f2; }
.js .tabs__panel:not([hidden]) { animation: fade-up .45s var(--ease); }

.norms { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.norms p { margin: 0; flex: 1 1 220px; font-size: .95rem; font-weight: 600; line-height: 1.5; color: #1b1b1b; }
.norms ul { display: flex; flex-wrap: wrap; gap: 8px; }
.norms li { padding: 9px 20px; border-radius: 999px; background: var(--black); font-family: var(--display); font-weight: 500; font-size: 1.1rem; letter-spacing: .1em; color: #fff; }

@media (min-width: 1000px) { .about { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; } }

/* ---------- Cómo funciona (diagrama animado) ---------- */
.blob--flow { right: -260px; top: 8%; width: 900px; height: 900px; opacity: .6; }
.flow__grid { position: relative; display: grid; gap: 32px; }
/* En móvil el diagrama va entre el título y los pasos, para verlo llenarse antes de leerlos. */
.flow__body { display: contents; }
.flow__diagram { order: 1; }
.flow__steps { order: 2; }
.flow__note { order: 3; }
.flow__body h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: 26px; }
.flow .lead { color: #d6d6d6; margin-bottom: 4px; }
.flow__steps { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.flow__steps li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .14); transition: opacity .5s; }
.flow__num { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .34); font-family: var(--display); font-weight: 500; font-size: 1rem; color: #fff; transition: background-color .5s, border-color .5s, color .5s, box-shadow .5s; }
.flow__steps h3 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.flow__steps p { margin: 0; color: #d6d6d6; max-width: 44ch; }
.js .flow__steps li { opacity: .45; }
.js .flow__steps li.is-on { opacity: 1; }
.flow__steps li.is-on .flow__num { background: var(--orange); border-color: var(--orange); color: var(--black); box-shadow: 0 0 0 7px rgba(252, 72, 5, .22); }
.flow__steps li:last-child.is-on .flow__num { background: #4AA8FF; border-color: #4AA8FF; box-shadow: 0 0 0 7px rgba(74, 168, 255, .22); }
.flow__note { margin: 26px 0 0; color: #d6d6d6; }
.flow__note a { color: var(--orange); font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; white-space: nowrap; transition: color .2s; }
.flow__note a::after { content: " →"; }
.flow__note a:hover { color: #ff7a45; }

.flow__diagram { padding: 18px 14px 20px; border-radius: var(--r-xl); }
.flow__diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.flow__dashes { stroke-dasharray: 3 26; animation: flow-down 1.1s linear infinite; }
.flow__air { stroke-dasharray: 16 20; animation: flow-air 1.5s linear infinite; }
.flow__legend { display: flex; align-items: center; gap: 14px; margin: 10px 10px 0; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d6d6d6; }
.flow__legend i { flex: 1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #FC4805, #FFB38F 45%, #4AA8FF); }
@keyframes flow-down { to { stroke-dashoffset: -29; } }
@keyframes flow-air { to { stroke-dashoffset: -36; } }
@media (min-width: 1000px) {
  .flow__grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
  .flow__body { display: block; }
  .flow .lead { margin-bottom: 36px; }
  .flow__diagram { padding: 30px 30px 28px; }
}

/* ---------- Servicios ---------- */
.services { display: grid; gap: 48px; }
.services__body h2 { margin-bottom: 20px; }
.services__body .lead { margin-bottom: 36px; }
.accordion { border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.accordion details { border-top: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; gap: 18px; padding: 24px 4px; cursor: pointer; list-style: none; border-radius: 10px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion__num { font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--orange-ink); min-width: 1.6em; }
.accordion__title { flex: 1; font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.1; text-transform: uppercase; color: var(--black); transition: color .25s; }
.accordion summary .icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--paper); color: var(--black); transition: transform .4s var(--ease), background-color .3s, color .3s; }
.accordion summary:hover .accordion__title { color: var(--orange-ink); }
.accordion details[open] summary .icon { transform: rotate(45deg); background: var(--orange); }
.checks { padding: 0 4px 22px; }
.checks li { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 1rem; font-weight: 500; line-height: 1.45; color: #1b1b1b; }
.checks li:first-child { border-top: 0; padding-top: 2px; }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.500l4 4 8-8.500'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.js .accordion details[open] .checks { animation: fade-up .45s var(--ease); }
@media (min-width: 700px) { .checks { padding-left: calc(1.6em + 22px); } }

.services__visual { position: relative; display: grid; place-items: center; min-height: 380px; padding: 40px 28px 84px; border-radius: var(--r-xl); background: var(--paper); overflow: hidden; }
.services__visual img { position: relative; width: 100%; max-width: 540px; }
.services__visual .pill { position: absolute; left: 20px; bottom: 20px; right: auto; max-width: calc(100% - 40px); }
@media (min-width: 1000px) {
  .services { grid-template-columns: 6fr 5fr; gap: 72px; align-items: start; }
  .services__visual { position: sticky; top: calc(var(--nav-h) + 24px); min-height: 580px; }
}

/* ---------- Galería ---------- */
.gallery { --slide-h: clamp(300px, 60vh, 560px); position: relative; outline-offset: -3px; }
.gallery__viewport { overflow: hidden; touch-action: pan-y; cursor: grab; }
.gallery__viewport.is-dragging { cursor: grabbing; }
.gallery__track { display: flex; align-items: center; gap: 20px; width: max-content; will-change: transform; transition: transform .7s var(--ease); }
.gallery__track.no-anim { transition: none; }
.gallery__slide { flex: none; opacity: .3; transform: scale(.88); filter: blur(2px); transition: opacity .6s, transform .7s var(--ease), filter .6s; }
.gallery__slide.is-active { opacity: 1; transform: none; filter: none; }
.gallery__btn { display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-lg); overflow: hidden; }
.gallery__slide.is-active .gallery__btn { cursor: zoom-in; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.gallery__btn img { height: var(--slide-h); width: auto; max-width: 86vw; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.gallery__slide--light .gallery__btn { background: #f4f4f4; }
.gallery__slide--light img { object-fit: contain; padding: 4%; }
.gallery__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; width: fit-content; max-width: calc(100% - 40px); margin: 32px auto 0; padding: 10px 10px 10px 24px; border-radius: 32px; color: #fff; }
.gallery__caption { margin: 0; font-size: .95rem; font-weight: 500; line-height: 1.4; flex: 1 1 200px; }
.gallery__count { font-family: var(--display); font-size: 1.1rem; letter-spacing: .08em; color: #cfcfcf; }
.gallery__controls { display: flex; gap: 8px; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 8, .82); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); color: #fff; }
.lightbox::backdrop { background: rgba(8, 8, 8, .6); }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s ease; }
.lightbox__fig { display: grid; justify-items: center; gap: 14px; padding: 64px 12px 20px; max-width: 100vw; }
.lightbox__fig img { max-width: min(100%, 1200px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: var(--r-md); background: #f4f4f4; transition: opacity .25s; }
.lightbox__fig img.is-swapping { opacity: 0; }
.lightbox__fig figcaption { text-align: center; font-size: .95rem; color: #e4e4e4; }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(17, 17, 17, .55); }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
@media (min-width: 768px) {
  .lightbox__fig { padding-inline: 84px; }
  .lightbox__prev { left: 20px; } .lightbox__next { right: 20px; } .lightbox__close { top: 20px; right: 20px; }
}

/* ---------- Valores ---------- */
.values { display: grid; gap: 16px; }
.value { padding: 32px 30px 36px; border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-soft); transition: transform .4s var(--ease), box-shadow .4s; }
.value:hover { transform: translateY(-6px); box-shadow: 0 34px 80px rgba(252, 72, 5, .14); }
.value__num {
  display: block; margin-bottom: 22px; font-family: var(--display); font-weight: 600; font-size: clamp(5.5rem, 10vw, 8rem); line-height: .9;
  background: linear-gradient(180deg, var(--orange) 15%, rgba(252, 72, 5, .06) 96%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.value h3 { margin-bottom: 10px; }
.value p { margin: 0; max-width: 32ch; }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); gap: 20px; } .value { padding: 38px 36px 42px; } }

/* ---------- Industrias ---------- */
.industries { display: grid; gap: 14px; }
.tile { position: relative; height: 230px; border-radius: var(--r-lg); overflow: hidden; background: var(--black); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 12, 13, 0) 38%, rgba(12, 12, 13, .72) 100%); transition: opacity .5s; }
.tile:hover img { transform: scale(1.07); }
.tile__label {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px; border-radius: 24px;
  font-family: var(--display); font-weight: 500; font-size: 1.25rem; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: rgba(20, 20, 20, .42); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border: 1px solid rgba(255, 255, 255, .24);
  transition: background-color .4s;
}
.tile:hover .tile__label { background: rgba(252, 72, 5, .5); }
@media (min-width: 600px) { .industries { grid-template-columns: 1fr 1fr; gap: 16px; } .tile { height: 280px; } }
@media (min-width: 1000px) {
  .industries { grid-template-columns: repeat(4, 1fr); }
  .tile { height: 330px; }
  .tile--wide { grid-column: span 2; }
  .tile__label { font-size: 1.4rem; left: 18px; bottom: 18px; }
}

/* ---------- Clientes ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; padding-block: 8px; }
.marquee.is-ready .marquee__track { animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; display: grid; place-items: center; width: 200px; height: 104px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.marquee__track img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .35s, opacity .35s; }
.marquee__track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Ubicación ---------- */
.map { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #18181a; color: #fff; isolation: isolate; }
.map__frame { position: relative; height: 380px; }
.map__frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.88) brightness(.95); }
.map__pin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--orange); border: 4px solid #fff; pointer-events: none; transition: opacity .3s; }
.map__pin::before, .map__pin::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; }
.map__pin::before { width: 300px; height: 300px; margin: -150px 0 0 -150px; z-index: -1; background: radial-gradient(circle, rgba(252, 72, 5, .45), rgba(252, 72, 5, 0) 66%); }
.map__pin::after { width: 74px; height: 74px; margin: -37px 0 0 -37px; border: 1px solid rgba(252, 72, 5, .8); background: rgba(252, 72, 5, .2); animation: ping 2.6s var(--ease) infinite; }
.map.is-touched .map__pin { opacity: 0; }
.map__card { padding: 30px 26px 28px; border-width: 0 0 1px; }
.map__card h2 { color: #fff; font-size: clamp(2.1rem, 3.6vw, 3rem); margin-bottom: 22px; }
.map__card address { font-size: 1.05rem; line-height: 1.6; color: #f0f0f0; }
.map__coords { margin: 8px 0 26px; font-size: .82rem; letter-spacing: .06em; color: #c9c9c9; }
.map__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map__actions .btn { min-height: 50px; padding: 0 24px; font-size: .95rem; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@media (min-width: 1000px) {
  .map { min-height: 640px; display: flex; align-items: center; padding: 32px; }
  .map__frame { position: absolute; inset: 0; height: auto; z-index: -1; }
  .map__card { width: 100%; max-width: 410px; padding: 36px; border-width: 1px; border-radius: var(--r-lg); background: rgba(24, 24, 26, .5); }
}

/* ---------- Contacto ---------- */
.contact { background: var(--ink); color: #e6e6e6; overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; filter: blur(8px); opacity: .26; transform: scale(1.06); }
.contact .blob { z-index: -1; }
.contact__grid { display: grid; gap: 48px; }
.contact h2 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1; margin-bottom: 24px; }
.contact .lead { color: #dcdcdc; }
.contact__list { margin-top: 36px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.contact__list > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.contact__list dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #bdbdbd; }
.contact__list dd { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; max-width: 30ch; text-align: right; }
.contact__list a { padding: 3px 0; color: #fff; font-size: 1.08rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.contact__list a:hover { color: var(--orange-soft); text-decoration: underline; }

.form { color-scheme: dark; padding: 28px 22px; border-radius: var(--r-xl); color: #fff; }
.form h3 { color: #fff; font-size: 2rem; margin-bottom: 22px; }
.form__row { display: grid; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: .84rem; font-weight: 600; color: #e6e6e6; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 18px;
  font: inherit; color: #fff;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .42); border-radius: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select { background-color: #1e1e20; }
.field textarea { resize: vertical; min-height: 124px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #fff; background-color: rgba(255, 255, 255, .12); box-shadow: 0 0 0 4px rgba(252, 72, 5, .55); }
.field select:focus { background-color: #1e1e20; }
.field [aria-invalid="true"] { border-color: #ff9d8f; background-color: rgba(255, 90, 60, .14); }
.form__error { margin: 0 0 16px; padding: 12px 16px; background: rgba(255, 90, 60, .18); border: 1px solid rgba(255, 157, 143, .6); color: #ffe1dc; border-radius: var(--r-sm); font-size: .9rem; font-weight: 500; }
.form__note { margin: 16px 0 0; font-size: .8rem; color: #c9c9c9; text-align: center; }
@media (min-width: 600px) { .form { padding: 40px; } .form__row { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c4c4c4; font-size: .95rem; }
.footer__grid { display: grid; gap: 36px; padding-block: 48px 40px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__logo { display: inline-block; padding: 14px 18px; background: #fff; border-radius: var(--r-md); }
.footer__logo img { width: 96px; }
.footer__brand p { margin: 16px 0 0; font-size: .85rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 26px; max-width: 360px; }
.footer__contact { display: grid; gap: 8px; max-width: 340px; }
.footer a { text-decoration: none; display: inline-block; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: var(--orange-soft); text-decoration: underline; }
.footer__bottom { padding-block: 0 96px; font-size: .82rem; color: #a8a8a8; }
.footer__bottom p { margin: 0; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: auto 1fr auto; gap: 64px; } .footer__links { margin-inline: auto; } .footer__bottom { padding-bottom: 40px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #0f7a4d; color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .18) inset;
  transition: transform .3s var(--ease), background-color .2s;
}
.wa-float .icon { width: 34px; height: 34px; }
.wa-float:hover { transform: scale(1.08); background: #0c6640; }
.wa-float:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--black); border-radius: 50%; }

/* ---------- Animaciones ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.js .values .reveal:nth-child(2), .js .industries .reveal:nth-child(2) { transition-delay: .08s; }
.js .values .reveal:nth-child(3), .js .industries .reveal:nth-child(3) { transition-delay: .16s; }
.js .industries .reveal:nth-child(4) { transition-delay: .24s; }
.js .industries .reveal:nth-child(5) { transition-delay: .32s; }
.js .industries .reveal:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .gallery__slide { transform: none; filter: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: 20px; max-width: 1248px; margin-inline: auto; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .btn:hover, .value:hover, .wa-float:hover, .tile:hover img { transform: none; }
}
