/* ==========================================================================
   QUINDAGRO SpA — "Precisión Industrial" · familia Grupo Serchem
   Navy + gradiente cian/azul (Quindagro) · rojo Serchem como acento de grupo
   Manrope (texto y titulares) + Fraunces itálica (acentos) — mismas que Serchem
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --navy-950: #060D1F;
  --navy-900: #0B1B33;
  --navy-800: #10254A;
  --navy-700: #16305E;
  --blue: #0E7FD9;
  --blue-ink: #0A63AE;
  --cyan: #2BD9C7;
  --teal: #17ACD3;
  --grad: linear-gradient(100deg, var(--blue), var(--teal) 55%, var(--cyan));

  /* Grupo Serchem */
  --serchem: #E3262B;
  --serchem-ink: #B51C21;
  --serchem-soft: #FCEBEA;

  --paper: #F6F5F2;          /* fondo cálido, el mismo tono base de Serchem */
  --surface: #FFFFFF;
  --ink: #0B1B33;
  --ink-soft: #4A5870;
  --muted-dark: #A9BCD3;     /* texto secundario sobre navy (AA sobre #0B1B33) */
  --line: #E3E1DB;
  --line-dark: rgba(150, 190, 235, .16);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .06), 0 10px 24px -14px rgba(11, 27, 51, .3);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Fraunces", ui-serif, Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 16.5px; line-height: 1.65;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.1; letter-spacing: -.028em; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-family: var(--font-accent); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
h1 em, h2 em { color: var(--blue-ink); }
.section--dark h2 em, .banner h2 em { color: var(--cyan); }

.skip {
  position: fixed; left: 1rem; top: -60px; z-index: 200;
  background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

/* ---------- Reveal (solo si hay JS: sin JS el contenido se ve igual) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font); font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
  padding: .9rem 1.6rem; min-height: 50px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -14px rgba(6, 13, 31, .55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(6, 13, 31, .6); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { transform: translateY(-2px); background: #EAF4FB; }
.btn--red { background: var(--serchem); color: #fff; box-shadow: 0 12px 26px -14px rgba(6, 13, 31, .4); }
.btn--red:hover { transform: translateY(-2px); background: var(--serchem-ink); }
.btn--red:hover svg { transform: translate(2px, -2px); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid rgba(11, 27, 51, .22); }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; min-height: 56px; }
.btn--full { width: 100%; }

/* ==========================================================================
   NAV — pastillas flotantes (mismo lenguaje que la tienda Serchem)
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 12px 16px; pointer-events: none; }
.nav__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.pill {
  pointer-events: auto;
  background: rgba(8, 18, 38, .62);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
  transition: background .3s;
}
.nav.is-scrolled .pill { background: rgba(6, 13, 31, .86); }
.nav__brand { display: flex; align-items: center; gap: .6rem; padding: .45rem 1.1rem .45rem .55rem; }
.nav__mark { width: 38px; height: 38px; }
.nav__name {
  font-weight: 800; color: #fff; font-size: 1.02rem; letter-spacing: .1em;
  display: flex; flex-direction: column; line-height: 1.05;
}
.nav__name small { font-weight: 700; font-size: .54rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: .15rem; padding: .35rem; }
.nav__links a {
  color: #D7E3F1; font-weight: 600; font-size: .9rem;
  padding: .5rem .9rem; border-radius: 999px; transition: background .2s, color .2s;
  display: inline-flex; align-items: center; gap: .45rem;
}
.nav__links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav__serchem img { width: 16px; height: 16px; }
.nav__cta--menu { display: none !important; }
.nav__end { display: flex; align-items: center; gap: .3rem; padding: .35rem; }
.nav__wa { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #6BE39A; transition: background .2s; }
.nav__wa:hover { background: rgba(255, 255, 255, .1); }
.nav__wa svg { width: 21px; height: 21px; }
.nav__cta {
  background: var(--grad); color: #fff !important; font-weight: 700; font-size: .9rem;
  padding: .55rem 1.15rem; border-radius: 999px; transition: transform .2s var(--ease), box-shadow .2s;
}
.nav__cta:hover { transform: translateY(-1px); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; place-items: center; }
.nav__burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; margin: 4px auto; transition: transform .3s var(--ease), opacity .3s; }

/* ==========================================================================
   HERO — foto a pantalla completa (escritorio) / banda que se funde (celular)
   ========================================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 1.5rem) 1.5rem clamp(1.8rem, 4svh, 3rem);
  background: var(--navy-950);
}
.hero__grid { max-width: 1280px; width: 100%; margin: 0 auto; }
.hero__copy { position: relative; z-index: 2; max-width: 44rem; }

/* --- fondo: fotos en crossfade + video (escritorio) --- */
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__frame { position: absolute; inset: 0; overflow: hidden; background: var(--navy-900); }
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__slide {
  object-fit: cover; object-position: 50% 50%; opacity: 0; transform: scale(1.03);
  transition: opacity 1.4s ease, transform 8s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
/* velo: oscuro solo donde va el texto (izquierda y abajo); la foto respira a la derecha */
.hero__shade {
  pointer-events: none;
  /* degradado progresivo (muchas paradas) para que la foto se funda con el azul, sin cortes */
  background:
    linear-gradient(90deg,
      rgba(6, 13, 31, .82) 0%, rgba(6, 13, 31, .74) 12%, rgba(6, 13, 31, .6) 24%,
      rgba(6, 13, 31, .44) 36%, rgba(6, 13, 31, .28) 47%, rgba(6, 13, 31, .15) 57%,
      rgba(6, 13, 31, .06) 67%, rgba(6, 13, 31, 0) 78%),
    linear-gradient(0deg,
      rgba(6, 13, 31, .7) 0%, rgba(6, 13, 31, .42) 12%, rgba(6, 13, 31, .16) 26%, rgba(6, 13, 31, 0) 40%),
    linear-gradient(180deg, rgba(6, 13, 31, .5) 0%, rgba(6, 13, 31, .18) 10%, rgba(6, 13, 31, 0) 20%);
}
.hero__slideinfo {
  position: absolute; right: 1.5rem; bottom: 6.2rem; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: .7rem;
  transition: opacity .4s;
}
.hero__caption {
  font-weight: 700; font-size: .92rem; color: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .95rem; border-radius: 999px;
  background: rgba(6, 13, 31, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.hero__caption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.hero__caption.is-fading { opacity: 0; transform: translateY(6px); }
.hero__dots { display: flex; gap: .45rem; }
.hero__dots button { position: relative; width: 30px; height: 4px; border: 0; border-radius: 4px; cursor: pointer; padding: 0; background: rgba(255, 255, 255, .32); overflow: hidden; }
.hero__dots button::before { content: ""; position: absolute; inset: -10px -3px; }
.hero__dots button::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dots button.is-active::after { animation: dotFill var(--slide-dur, 5.5s) linear forwards; }
.hero__dots button.is-done::after { transform: scaleX(1); }
@keyframes dotFill { to { transform: scaleX(1); } }

/* --- texto --- */
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #E6EEF7;
  background: rgba(6, 13, 31, .45); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: .45rem .95rem .45rem .5rem; border-radius: 999px; margin-bottom: 1.5rem;
  transition: border-color .25s;
}
.hero__eyebrow:hover { border-color: rgba(227, 38, 43, .7); }
.hero__eyebrow img { width: 22px; height: 22px; background: #fff; border-radius: 50%; padding: 3px; }
.hero__eyebrow-long { margin-right: -.3rem; }
.hero__eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: var(--serchem); }
.hero__title {
  font-size: clamp(2.4rem, min(4.4vw, 7.4svh), 4.4rem); line-height: 1.04; letter-spacing: -.035em;
  margin-bottom: clamp(.9rem, 2svh, 1.3rem); text-shadow: 0 2px 30px rgba(6, 13, 31, .35);
}
.hero__title em {
  font-weight: 400; letter-spacing: -.02em; color: var(--cyan); white-space: nowrap;
  padding-bottom: .06em;
}
.hero__lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: #D3DEEB; max-width: 36rem; margin-bottom: clamp(1.2rem, 3svh, 2rem); }
.hero__lead strong { color: #fff; font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: clamp(1.4rem, 4svh, 2.6rem); }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.6rem;
  padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .2);
}
.hero__stats dt { font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.hero__stats dd { color: #C2D0E0; font-size: .85rem; font-weight: 500; margin-top: .35rem; }

/* entrada */
.js .hero__copy > * { opacity: 0; transform: translateY(18px); animation: heroIn .9s var(--ease) forwards; }
.js .hero__copy > :nth-child(1) { animation-delay: .1s; }
.js .hero__copy > :nth-child(2) { animation-delay: .18s; }
.js .hero__copy > :nth-child(3) { animation-delay: .28s; }
.js .hero__copy > :nth-child(4) { animation-delay: .36s; }
.js .hero__copy > :nth-child(5) { animation-delay: .44s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ==========================================================================
   MARQUESINA — franja oscura con cuadros rojos, igual que Serchem
   ========================================================================== */
.marquee { background: #0E0F12; color: #fff; overflow: hidden; padding: .95rem 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-weight: 600; font-size: .9rem; white-space: nowrap; display: inline-flex; align-items: center; }
.marquee__track span::after { content: ""; width: 6px; height: 6px; background: var(--serchem); border-radius: 1px; margin: 0 2.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section { padding: clamp(4.5rem, 9vw, 7rem) 1.5rem; }
.section__inner { max-width: 1240px; margin: 0 auto; }
.section__head {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem 4rem; align-items: end;
  margin-bottom: 3rem;
}
.section__head h2 { margin-bottom: 0; }
.section__head .section__lead { margin-bottom: .3rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-ink); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker img { width: 16px; height: 16px; }
.kicker--red { color: var(--serchem-ink); }
.kicker--red::before { display: none; }
.section--dark .kicker { color: var(--cyan); }
.section h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 1.2rem; }
.section__lead { color: var(--ink-soft); max-width: 36rem; font-size: 1.08rem; margin-bottom: 3rem; }
.section--dark { background: var(--navy-950); color: #fff; position: relative; }
.section--dark .section__lead { color: var(--muted-dark); }
.section--tint { background: var(--surface); }

/* ---------- Empresa ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.split__text h2 { max-width: 34rem; }
.split__text > p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 36rem; }
.split__text > p strong { color: var(--ink); }
.checklist { list-style: none; margin-top: 1.8rem; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 600; }
.checklist li::before {
  content: ""; flex: 0 0 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9'/%3E%3C/svg%3E") center / 18px no-repeat, var(--grad);
}
.panel-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.panel-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.panel-card__year {
  font-weight: 800; font-size: 3.6rem; letter-spacing: -.05em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.panel-card__tag { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.panel-card > p { color: var(--ink-soft); margin: .9rem 0 1.4rem; }
.panel-card__group {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
  background: var(--serchem-soft); border: 1px solid rgba(227, 38, 43, .18);
  transition: border-color .2s, transform .25s var(--ease);
}
.panel-card__group:hover { border-color: var(--serchem); transform: translateY(-2px); }
.panel-card__group img { width: 150px; height: auto; }
.panel-card__group span { font-size: .8rem; font-weight: 700; color: var(--serchem-ink); }
.panel-card__row { display: flex; gap: .9rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.panel-card__row svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }
.panel-card__row strong { display: block; font-size: .98rem; }
.panel-card__row span { color: var(--ink-soft); font-size: .85rem; }

/* ---------- Servicios: tarjetas con foto ---------- */
.servicios::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 100% 0%, rgba(14, 127, 217, .2), transparent 70%);
}
.servicios .section__inner { position: relative; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (min-width: 980px) {
  .cards--5 { grid-template-columns: repeat(6, 1fr); }
  .cards--5 > .card { grid-column: span 2; }
  .cards--5 > .card:nth-child(n+4) { grid-column: span 3; }
  .cards--5 > .card:nth-child(n+4) .card__media { aspect-ratio: 16 / 8; }
}
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); border-radius: var(--radius);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(43, 217, 199, .45); background: rgba(255, 255, 255, .06); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 13, 31, .55)); }
.card__num {
  position: absolute; top: .9rem; left: .9rem; z-index: 1;
  font-weight: 800; font-size: .8rem; letter-spacing: .05em; color: #fff;
  padding: .3rem .65rem; border-radius: 999px;
  background: rgba(6, 13, 31, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
}
.card__body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.card p { color: var(--muted-dark); font-size: .95rem; margin-bottom: 1.3rem; }
.card__cap {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-dark);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.card__cap span { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.card__cap strong { font-size: 1.05rem; color: var(--cyan); letter-spacing: -.01em; }

.subhead { margin: 4rem 0 1.5rem; }
.subhead h3 { font-size: 1.5rem; }
.subhead p { color: var(--muted-dark); margin-top: .3rem; }
.mini-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mini-card {
  border: 1px solid var(--line-dark); border-radius: var(--radius-sm); padding: 1.4rem;
  background: rgba(255, 255, 255, .03); transition: transform .3s var(--ease), border-color .3s;
}
.mini-card:hover { transform: translateY(-4px); border-color: rgba(43, 217, 199, .4); }
.mini-card svg { width: 30px; height: 30px; color: var(--cyan); margin-bottom: .9rem; }
.mini-card h4 { font-size: 1.04rem; margin-bottom: .35rem; letter-spacing: -.015em; }
.mini-card p { color: var(--muted-dark); font-size: .9rem; }
.formats { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line-dark); }
.formats__label { font-weight: 800; color: #fff; }
.formats ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.formats li { font-size: .84rem; font-weight: 600; color: #D5E8F2; padding: .4rem .9rem; border-radius: 999px; background: rgba(23, 172, 211, .12); border: 1px solid rgba(43, 217, 199, .26); }

/* ---------- Instalaciones: mismas tarjetas que Servicios, en versión clara ---------- */
.card--light { background: var(--surface); border-color: var(--line); }
.card--light:hover { background: var(--surface); border-color: rgba(14, 127, 217, .4); }
.card--light .card__media { background: #E9EEF4; }
.card--light .card__media::after { background: none; }
.card--light p { color: var(--ink-soft); }
.card--light .card__cap { border-top-color: var(--line); }
.card--light .card__cap span { color: var(--ink-soft); }
.card--light .card__cap strong { color: var(--blue-ink); font-size: .98rem; text-align: right; }

/* ---------- Video ---------- */
.video-promo { background: var(--surface); }
.video-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-900); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Proceso ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; margin-top: 3rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 25px; left: 26px; right: 10%; height: 2px; background: rgba(14, 127, 217, .22); }
.steps li { position: relative; padding-top: 4.3rem; }
.steps li > span {
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: var(--blue-ink);
  background: var(--surface); border: 2px solid rgba(14, 127, 217, .35);
  transition: background .3s, color .3s, border-color .3s;
}
.steps li:hover > span { background: var(--grad); color: #fff; border-color: transparent; }
.steps h3 { font-size: 1.12rem; margin-bottom: .35rem; letter-spacing: -.015em; }
.steps p { color: var(--ink-soft); font-size: .92rem; }

/* ==========================================================================
   GRUPO SERCHEM — mención breve con enlace a su tienda
   ========================================================================== */
.serchem-band { padding: 0 1.5rem clamp(4rem, 8vw, 6rem); background: var(--paper); }
.serchem-band__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem 3rem;
  background: var(--surface); border-radius: var(--radius); padding: 2rem 2.4rem;
}
.serchem-band__logo { width: 200px; height: auto; }
.serchem-band h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: .35rem; letter-spacing: -.025em; }
.serchem-band h2 em { color: var(--serchem); }
.serchem-band p { color: var(--ink-soft); font-size: .98rem; max-width: 40rem; }

/* ---------- Industrias ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.6rem; }
.ind { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.8rem 1.6rem; background: rgba(255, 255, 255, .03); transition: transform .3s var(--ease), border-color .3s; }
.ind:hover { transform: translateY(-4px); border-color: rgba(43, 217, 199, .45); }
.ind svg { width: 36px; height: 36px; color: var(--cyan); margin-bottom: 1rem; }
.ind h3 { font-size: 1.12rem; margin-bottom: .4rem; letter-spacing: -.015em; }
.ind p { color: var(--muted-dark); font-size: .93rem; }

/* ---------- Calidad ---------- */
.photo-card { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.3; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1.3rem 1rem; color: #fff; font-weight: 700; background: linear-gradient(to top, rgba(6, 13, 31, .85), transparent); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; margin-top: 1.8rem; }
.feat { display: flex; gap: .85rem; align-items: flex-start; }
.feat svg { width: 40px; height: 40px; flex-shrink: 0; color: #fff; padding: 9px; background: var(--grad); border-radius: 12px; }
.feat strong { display: block; font-size: 1rem; margin-bottom: .1rem; }
.feat span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Banner ---------- */
.banner { padding: 1.5rem; background: var(--paper); }
.banner__inner {
  max-width: 1240px; margin: 0 auto; text-align: center; color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem; border-radius: 32px; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(43, 217, 199, .22), transparent 60%),
    linear-gradient(120deg, var(--navy-950), var(--navy-700));
}
.banner h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
.banner p { color: #C4D4E6; margin: 0 auto 2.2rem; font-size: 1.08rem; max-width: 34rem; }
.banner__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Contacto ---------- */
.split--contact { grid-template-columns: 1fr 1fr; }
.contact-list { display: grid; gap: .75rem; margin: 1.8rem 0 2rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; transition: transform .25s var(--ease), border-color .25s;
}
.contact-item:hover { transform: translateX(4px); border-color: rgba(14, 127, 217, .4); }
.contact-item svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; }
.contact-item--wa svg { color: #1FA855; }
.contact-item strong { display: block; font-size: 1rem; }
.contact-item span { color: var(--ink-soft); font-size: .85rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #e8e6e0; }
.map iframe { width: 100%; height: 100%; border: 0; }
.form {
  background: var(--navy-950); color: #fff; border-radius: var(--radius); padding: 2.2rem;
  background-image: radial-gradient(80% 60% at 100% 0%, rgba(14, 127, 217, .28), transparent 60%);
  box-shadow: 0 30px 70px -30px rgba(11, 27, 51, .6); position: sticky; top: 96px;
}
.form h3 { font-size: 1.45rem; margin-bottom: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.form__field label { font-weight: 700; font-size: .84rem; color: #C9D8E8; }
.form__field input, .form__field select, .form__field textarea {
  font-family: var(--font); font-size: 1rem; color: #fff; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(150, 200, 240, .24); border-radius: 12px; padding: .8rem .95rem; min-height: 48px;
  transition: border-color .2s, background .2s;
}
.form__field textarea { resize: vertical; min-height: 116px; }
.form__field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232BD9C7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px; padding-right: 2.5rem; }
.form__field select option { color: var(--ink); }
.form__field input::placeholder, .form__field textarea::placeholder { color: rgba(201, 216, 232, .6); }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { outline: none; border-color: var(--cyan); background: rgba(255, 255, 255, .11); }
.form__field .invalid { border-color: #FF8A8A; }
.form__error { color: #FFB0B0; font-size: .9rem; font-weight: 700; margin-bottom: .9rem; }
.form__hint { margin-top: 1rem; font-size: .82rem; color: #A9BCD3; text-align: center; }
.form__hint strong { color: #fff; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__ok { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; border-radius: 14px; background: rgba(43, 217, 199, .12); border: 1px solid rgba(43, 217, 199, .4); outline: none; }
.form__ok[hidden] { display: none; }
.form__ok strong { font-size: 1.2rem; color: #fff; }
.form__ok span { color: #D3DEEB; }
.form__ok a { color: var(--cyan); text-decoration: underline; }
.form { position: relative; }
.form [hidden] { display: none !important; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--muted-dark); padding: 4.5rem 1.5rem 0; }
.footer__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer__logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer__mark { width: 46px; height: 46px; }
.footer__logo strong { color: #fff; letter-spacing: .08em; font-size: 1.05rem; }
.footer__brand p { font-size: .9rem; max-width: 22rem; }
.footer__col { display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; }
.footer__col h2 { color: #fff; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .4rem; font-weight: 700; }
.footer__col a { width: fit-content; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__serchem { background: #fff; padding: .5rem .8rem; border-radius: 999px; margin-bottom: .2rem; }
.footer__serchem img { width: 130px; height: auto; }
.footer__bottom { max-width: 1240px; margin: 0 auto; padding: 1.4rem 0 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.footer__family { display: inline-flex; align-items: center; gap: .5rem; }
.footer__family img { width: 14px; height: 14px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: .55rem;
  background: #147A3C; color: #fff; font-weight: 800; font-size: .95rem;
  padding: .8rem 1.15rem; border-radius: 999px;
  box-shadow: 0 14px 34px -10px rgba(6, 13, 31, .45);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-3px); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links a { padding: .5rem .65rem; font-size: .86rem; }
}

@media (max-width: 1060px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: .1rem; padding: .6rem;
    border-radius: 22px; background: rgba(6, 13, 31, .96);
  }
  .nav__links.open a { padding: .85rem 1rem; font-size: 1rem; border-radius: 14px; }
  .nav__links.open .nav__cta--menu { display: flex !important; justify-content: center; margin-top: .4rem; }
  .nav { pointer-events: auto; }
  .nav__inner { position: relative; }
  .nav__burger { display: grid; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---- Hero en tablet y celular: la foto va como banda arriba, el texto debajo
        (mismo patrón que Avasier, Serchem y Núcleo: la foto se ve completa) ---- */
@media (max-width: 979px) {
  /* celular: la foto con su proporción real (16:9) bajo el menú, se ve completa */
  .hero { min-height: 0; justify-content: flex-start; padding: calc(var(--nav-h) - 6px) 0 3rem; }
  .hero__media { position: relative; inset: auto; aspect-ratio: 16 / 9; height: auto; }
  .hero__slide { transform: none !important; }
  .hero__shade { background: linear-gradient(180deg, rgba(6, 13, 31, 0) 60%, rgba(6, 13, 31, .7) 100%); }
  .hero__slideinfo { right: 1rem; left: 1rem; bottom: .7rem; flex-direction: row; justify-content: space-between; align-items: center; gap: .8rem; }
  .hero__caption { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; font-size: .8rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
  .hero__dots button { width: 18px; }
  .hero__copy { margin-top: 1.7rem; padding: 0 1.25rem; }
  .hero__eyebrow { margin-bottom: 1.1rem; font-size: .72rem; }
  .hero__title { font-size: clamp(2.1rem, 8.4vw, 3.3rem); }
  .hero__title em { white-space: normal; }
  .hero__actions { margin-bottom: 2rem; }
  .hero__stats { gap: 1.6rem; }
  .split, .split--contact { grid-template-columns: 1fr; }
  .serchem-band__inner { grid-template-columns: 1fr; padding: 1.7rem 1.5rem; }
  .serchem-band__logo { width: 170px; }
  .section__head { grid-template-columns: 1fr; margin-bottom: 2.4rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .mini-cards { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.4rem; }
  .steps::before { display: none; }
  .form { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { padding: 10px 12px; }
  .nav__name { font-size: .92rem; }
  .nav__name small { font-size: .5rem; letter-spacing: .14em; }
  .nav__mark { width: 34px; height: 34px; }
  .nav__wa { display: none; }
  .hero__eyebrow-long { display: none; }
  .hero__eyebrow { flex-wrap: nowrap; }
  .nav__cta { padding: .5rem .95rem; font-size: .86rem; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero__stats dd { font-size: .78rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .section { padding: 4.2rem 1.25rem; }
  .cards, .mini-cards, .ind-grid, .feat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .form { padding: 1.7rem 1.3rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .banner { padding: 0 .75rem 1rem; }
  .banner__inner { border-radius: 24px; }
  .banner__actions .btn { width: 100%; }
  .wa-float span { display: none; }
  .wa-float { padding: .85rem; right: 16px; bottom: 16px; }
  .wa-float svg { width: 28px; height: 28px; }
}

@media (max-width: 420px) {
  .nav__name small { display: none; }
  .hero__caption { font-size: .84rem; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero__copy > * { opacity: 1; transform: none; animation: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__slide { transition: opacity .01ms; transform: none !important; }
  .hero__dots button.is-active::after { animation: none; transform: scaleX(1); }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
