/* ============================================================
   TECNILUB · Kit de páginas interiores (líneas de negocio)
   Componentes reutilizables: subhero, brand-strip, brand-duo,
   tablas editoriales, grids de features, química, entrega,
   gases, diluciones, sub-familia destacada y CTA.
   ============================================================ */

/* ---------------- Subhero ---------------- */
.subhero {
  position: relative;
  background: var(--ink);
  padding-top: clamp(7rem, 12vh, 9.5rem);
  overflow: hidden;
}
/* Fondo del banner: cubre toda la sección, en escala de grises y con poca
   opacidad, detrás del contenido. */
.subhero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.subhero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.25; }
.subhero > .container { position: relative; z-index: 1; }
.subhero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
  min-height: clamp(360px, 56vh, 560px);
}
.subhero__content { align-self: center; padding-block: clamp(1rem, 2.5vw, 2rem); }
.subhero__media {
  position: relative;
  border-radius: 3px;
  margin-block: 0 clamp(2.5rem, 5vw, 4rem);
  min-height: 320px;
}
.subhero--plain .subhero__grid { grid-template-columns: 1fr; min-height: clamp(280px, 42vh, 440px); }
.subhero--plain .subhero__content { max-width: 60ch; }

.subhero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.4rem + 6vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 1.4rem;
}
.subhero__sub {
  margin-top: 1.6rem;
  max-width: 52ch;
  color: var(--text-on-dark-soft);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
.subhero__sub b { color: #fff; font-weight: 600; }

@media (max-width: 820px) {
  .subhero__grid { grid-template-columns: 1fr; }
  .subhero__media { order: -1; min-height: 220px; margin-bottom: 1.5rem; }
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted-on-dark); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb b { color: var(--accent); font-weight: 500; }

/* ---------------- Badge ---------------- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #120c04;
  background: var(--accent);
  padding: 0.45em 0.9em;
  border-radius: 2px;
  margin-top: 1.4rem;
}

/* ---------------- Brand strip ---------------- */
.brand-strip {
  background: var(--ink-1);
  border-block: 1px solid var(--line-on-dark);
}
.brand-strip__inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 1.4rem;
  flex-wrap: wrap;
}
.brand-strip__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  padding-right: clamp(1rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line-on-dark);
}
.brand-strip__list { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.8rem); align-items: center; }
/* En el banner de marcas el strip es un marquee (sin __inner): aire vertical
   para que los chips no queden al filo del borde. */
.brand-strip .marquee { padding-block: clamp(1rem, 2.2vw, 1.6rem); }
.brand-strip__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  opacity: 0.7;
  transition: opacity 0.35s, color 0.35s;
}
.brand-strip__item:first-child { color: #fff; opacity: 1; }
.brand-strip__item:hover { opacity: 1; color: #fff; }

/* Logos de marca (marquee y strip, sobre fondo oscuro): chip claro para que
   todo logo —wordmark o badge— se lea; en gris y a color al pasar el mouse. */
.brand-strip__item {
  opacity: 1;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f3f3f4;
  border-radius: 7px;
  padding: 0.55rem 0.95rem;
}
.brand-strip__item img {
  display: block;
  height: clamp(16px, 2vw, 24px);
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.4s var(--ease-out);
}
.brand-strip__item:hover img { filter: none; }
/* Marca sin logo propio: texto oscuro dentro del chip */
.brand-strip__item--text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  letter-spacing: 0.02em; color: var(--ink);
}
.brand-strip__item--text:hover { color: var(--ink); }
@media (max-width: 640px) { .brand-strip__label { border-right: none; } }

/* ---------------- Brand duo (dos marcas destacadas) ---------------- */
.brand-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
/* Cada columna = imagen de la marca + su texto (quedan juntos también en móvil) */
.brand-duo__col { display: flex; flex-direction: column; }
.brand-duo__col .media { aspect-ratio: 16/9; border-radius: 3px; margin-bottom: clamp(1.4rem, 2.5vw, 2rem); }
.brand-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1;
}
.brand-card__desc { margin-top: 1rem; color: var(--muted-on-light); max-width: 46ch; }
.section--dark .brand-card__desc { color: var(--text-on-dark-soft); }
.brand-card__desc b { color: inherit; font-weight: 600; }
.section--light .brand-card__desc b { color: var(--text-on-light); }

.deflist { margin-top: 1.6rem; display: grid; gap: 1.3rem; }
.deflist__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.deflist__value { color: var(--muted-on-light); line-height: 1.6; }
.section--dark .deflist__value { color: var(--text-on-dark-soft); }
@media (max-width: 780px) { .brand-duo { grid-template-columns: 1fr; } }

/* ============================================================
   Tabla editorial genérica (.dtable)
   ============================================================ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dtable { width: 100%; border-collapse: collapse; min-width: 640px; }
.dtable thead th {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  text-align: left;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line-on-light);
}
.section--dark .dtable thead th { color: var(--muted-on-dark); border-color: var(--line-on-dark); }
.dtable tbody td {
  padding: 1.4rem 1.5rem 1.4rem 0;
  border-bottom: 1px solid var(--line-on-light);
  vertical-align: top;
  color: var(--muted-on-light);
  font-size: 0.9rem;
  line-height: 1.55;
}
.section--dark .dtable tbody td { border-color: var(--line-on-dark); color: var(--text-on-dark-soft); }
.dtable tbody tr { transition: background 0.35s; }
.dtable tbody tr:hover { background: rgba(245, 130, 10, 0.05); }
.dtable__lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  text-transform: uppercase;
  color: var(--text-on-light);
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.section--dark .dtable__lead { color: #fff; }
.dtable__lead small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted-on-light);
  margin-top: 0.4rem;
}
.section--dark .dtable__lead small { color: var(--muted-on-dark); }
.dtable__mono { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-on-light); line-height: 1.7; }
.section--dark .dtable__mono { color: var(--text-on-dark-soft); }
.dtable__ref { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); white-space: nowrap; }

/* fila destacada (última en algunas tablas) */
.dtable tr.is-featured { background: var(--ink); }
.dtable tr.is-featured td { color: var(--text-on-dark-soft); border-color: var(--line-on-dark); }
.dtable tr.is-featured .dtable__lead { color: #fff; }

/* Chips dentro de celda (formatos, fluidos) */
.cell-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28em 0.6em;
  border: 1px solid var(--line-on-light);
  border-radius: 2px;
  color: var(--muted-on-light);
}
.section--dark .chip { border-color: var(--line-on-dark); color: var(--text-on-dark-soft); }
.chip--accent { border-color: var(--accent); color: var(--accent); }

/* ---------------- Tabla de equivalencias (con barra + descarga) ---------------- */
.equiv {
  border: 1px solid var(--line-on-light);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-1);
}
.equiv__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.4rem clamp(1.2rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--line-on-light);
  background: var(--paper-2);
}
.equiv__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.6rem); text-transform: uppercase; color: var(--text-on-light); }
.equiv__eyebrow { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 0.4rem; }
.equiv__body { padding: 0.5rem clamp(1.2rem, 2.5vw, 2rem) 0.5rem; }
.equiv .dtable { min-width: 560px; }

/* ---------------- Nota al pie con gota ---------------- */
.footnote {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted-on-light);
  max-width: 90ch;
}
.section--dark .footnote { color: var(--muted-on-dark); }
.footnote::before { content: '●'; color: var(--accent); font-size: 0.6rem; margin-top: 0.35rem; flex: none; }

/* ============================================================
   Grid de features (funciones / métodos)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.feature-grid--4 { --cols: 4; }
.feature-card { border-top: 2px solid var(--accent); padding-top: 1.3rem; }
.feature-card--boxed { border: 1px solid var(--line-on-light); border-top: 2px solid var(--accent); padding: 1.4rem; border-radius: 3px; }
.feature-card__eyebrow { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.feature-card__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); text-transform: uppercase; margin: 0.5rem 0 0.7rem; line-height: 1; }
.feature-card__text { color: var(--muted-on-light); font-size: 0.92rem; line-height: 1.6; }
.section--dark .feature-card__text { color: var(--text-on-dark-soft); }
@media (max-width: 900px) { .feature-grid, .feature-grid--4 { --cols: 2; } }
@media (max-width: 560px) { .feature-grid, .feature-grid--4 { --cols: 1; } }

/* ============================================================
   Química (NOx + NH3 -> N2 + H2O)
   ============================================================ */
.chem {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid var(--line-on-light);
}
.section--dark .chem { border-color: var(--line-on-dark); }
.chem__op { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--accent); align-self: center; }
.chem__formula { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.chem__formula sub { font-size: 0.5em; }
.chem--out .chem__formula { color: var(--accent); }
.chem__label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 1rem 0 0.5rem; }
.chem__text { font-size: 0.88rem; color: var(--muted-on-light); line-height: 1.6; }
.section--dark .chem__text { color: var(--text-on-dark-soft); }
@media (max-width: 760px) {
  .chem { grid-template-columns: 1fr; }
  .chem__op { justify-self: start; }
}

/* ============================================================
   Lista de entrega (IBC / Cisterna / Tanque)
   ============================================================ */
.delivery { display: grid; }
.delivery__row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.4rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line-on-light);
}
.section--dark .delivery__row { border-color: var(--line-on-dark); }
.delivery__row:last-child { border-bottom: 1px solid var(--line-on-light); }
.section--dark .delivery__row:last-child { border-bottom-color: var(--line-on-dark); }
/* Barra progresiva: cada modalidad "crece" un paso y se resalta en naranja.
   El relleno anima de 0 a su ancho cuando la fila entra en pantalla (.is-in). */
.delivery__icon {
  align-self: center;
  width: 100%;
  height: 12px;
  border-radius: 100px;
  background: transparent;
  border: none;
  position: relative;
  overflow: hidden;
}
.delivery__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  box-shadow: 0 0 16px -2px var(--accent-glow);
  transition: width 1s var(--ease-out);
}
.delivery__row:nth-child(1).is-in .delivery__icon::before { width: 34%; }
.delivery__row:nth-child(2).is-in .delivery__icon::before { width: 67%; }
.delivery__row:nth-child(3).is-in .delivery__icon::before { width: 100%; }
.delivery__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); text-transform: uppercase; line-height: 1; }
.delivery__tagline { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 0.5rem; }
.delivery__desc { color: var(--muted-on-light); font-size: 0.9rem; line-height: 1.55; }
.section--dark .delivery__desc { color: var(--text-on-dark-soft); }
@media (max-width: 760px) {
  .delivery__row { grid-template-columns: 60px 1fr; }
  .delivery__desc, .delivery__row > .tag { grid-column: 1 / -1; }
}

/* ============================================================
   Tabla de gases (dieléctricos): subíndice + severidad
   ============================================================ */
.gas-symbol { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text-on-light); line-height: 1; }
.section--dark .gas-symbol { color: #fff; }
.gas-symbol sub { font-size: 0.5em; }
.gas-symbol small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-light); margin-top: 0.4rem; font-weight: 400; }

/* Fondo oscuro ink1: mismos colores legibles que section--dark (evita
   texto negro sobre negro en la tabla de gases). */
.section--ink1 .dtable thead th { color: var(--muted-on-dark); border-color: var(--line-on-dark); }
.section--ink1 .dtable tbody td { border-color: var(--line-on-dark); color: var(--text-on-dark-soft); }
.section--ink1 .dtable__lead { color: #fff; }
.section--ink1 .dtable__lead small { color: var(--muted-on-dark); }
.section--ink1 .dtable__mono { color: var(--text-on-dark-soft); }
.section--ink1 .gas-symbol { color: #fff; }
.section--dark .gas-symbol small,
.section--ink1 .gas-symbol small { color: var(--muted-on-dark); }

/* Hover de fila en fondo oscuro: el simbolo del gas y el titular pasan a naranja. */
.section--dark .gas-symbol,
.section--ink1 .gas-symbol,
.section--dark .dtable__lead,
.section--ink1 .dtable__lead { transition: color 0.3s var(--ease-out); }
.section--dark .dtable tbody tr:hover .gas-symbol,
.section--ink1 .dtable tbody tr:hover .gas-symbol,
.section--dark .dtable tbody tr:hover .dtable__lead,
.section--ink1 .dtable tbody tr:hover .dtable__lead { color: var(--accent); }

.severity {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border-radius: 2px;
  color: #fff;
  background: var(--ink);
  display: inline-block;
}
.severity--alta { background: var(--accent); color: #120c04; }
.severity--media { background: var(--ink); color: #fff; }
.severity--baja { background: transparent; color: var(--muted-on-light); border: 1px solid var(--line-on-light); }

/* ============================================================
   Lista de razones (refrigerantes) / lista de fallas
   ============================================================ */
.reason-row {
  display: grid;
  grid-template-columns: 44px 1fr 1.3fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.4rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line-on-light);
}
.section--dark .reason-row { border-top-color: var(--line-on-dark); }
.reason-row:last-child { border-bottom: 1px solid var(--line-on-light); }
.section--dark .reason-row:last-child { border-bottom-color: var(--line-on-dark); }
.reason-row__drop { width: 30px; height: 30px; display: grid; place-items: center; background: var(--accent); border-radius: 50%; color: #120c04; font-size: 0.7rem; }
.reason-row__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.5rem); text-transform: uppercase; line-height: 1.05; color: var(--text-on-light); }
.section--dark .reason-row__title { color: var(--text-on-dark); }
.reason-row__tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-top: 0.5rem; }
.reason-row__text { color: var(--muted-on-light); font-size: 0.92rem; line-height: 1.6; }
.section--dark .reason-row__text { color: var(--text-on-dark-soft); }
@media (max-width: 760px) {
  .reason-row { grid-template-columns: 30px 1fr; }
  .reason-row__text { grid-column: 2 / -1; }
}

/* ============================================================
   Tabla de diluciones (desengrasantes)
   ============================================================ */
.dilution__ratio { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--text-on-light); line-height: 1; }
.dilution__ratio .accent { color: var(--accent); }
.dilution__ratio small { font-size: 0.5em; color: var(--muted-on-light); font-weight: 400; }

/* ============================================================
   Sub-familia destacada (grado alimenticio / FUCHS)
   ============================================================ */
.featured-sub { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.featured-sub__media { position: relative; aspect-ratio: 3/4; border-radius: 3px; }
.featured-sub__brand { position: absolute; top: 1.4rem; left: 1.4rem; z-index: 2; }
.featured-sub__brand span { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.featured-sub__brand b { font-family: var(--font-display); font-weight: 700; font-size: 2rem; text-transform: uppercase; color: #fff; }
.numbered { display: grid; gap: 1.5rem; margin-top: 2rem; }
.numbered__item { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; }
.numbered__num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); padding-top: 0.2rem; }
.numbered__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; margin-bottom: 0.35rem; }
.numbered__text { color: var(--muted-on-light); font-size: 0.9rem; line-height: 1.55; }
.section--dark .numbered__text { color: var(--text-on-dark-soft); }
@media (max-width: 820px) { .featured-sub { grid-template-columns: 1fr; } .featured-sub__media { max-width: 360px; } }

/* ============================================================
   CTA band (reutilizable en todas las páginas)
   ============================================================ */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--text-on-dark); }
.cta-band__media { position: absolute; inset: 0; z-index: 0; opacity: 0.4; }
.cta-band__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.cta-band__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.2rem + 3.5vw, 4rem); line-height: 0.95; text-transform: uppercase; margin: 1.2rem 0; }
.cta-band__text { color: var(--text-on-dark-soft); max-width: 50ch; }
.cta-band__action { justify-self: end; }
@media (max-width: 820px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__action { justify-self: start; } }

/* Utilidad: separador de sub-sección */
.subsection { margin-top: clamp(3rem, 6vw, 5rem); }
