/*
Theme Name: Tradestahl2
Theme URI: https://tradestahl.com/
Description: Bilingual (ES/EN) classic theme for Tradestahl — international steel trading. Hero sections are editable via Advanced Custom Fields; language switching is handled by TranslatePress (Spanish default, English translation). All styles live in this single stylesheet and are driven by CSS custom properties.
Author: Tradestahl
Version: 1.0.0
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tradestahl2
*/

/* =================================================================
   DESIGN TOKENS
   All colors, type, spacing and layout values are defined once here
   and referenced via var(--token) throughout the stylesheet.
   ================================================================= */
:root {
  /* Brand colors */
  --navy: #2d2868;
  --navy-dark: #1e1b50;
  --navy-deeper: #14113a;
  --steel-gray: #9099a8;
  --steel-light: #b8c2cc;
  --mid-gray: #444444;

  /* Surfaces */
  --white: #ffffff;
  --light-bg: #f3f4f6;
  --light-blue: #e8edf5;
  --cta-bg: #444444;
  --footer-bottom-bg: var(--navy);

  /* Lines / borders */
  --border: #e2e4e8;
  --grid-line: #d0d5e0;       /* hairline between grid cards */
  --grid-line-strong: #cdd1db;
  --grid-line-soft: #c8d0de;

  /* Text */
  --text: #111111;
  --text-soft: #222222;
  --text-mid: #333333;
  --text-muted: #777777;
  --text-on-navy: #b8c2d8;
  --hero-sub: #d0dae8;

  /* Typography */
  --font-body: 'Barlow', sans-serif;
  --font-head: 'Barlow Condensed', sans-serif;
  --fs-base: 18px;
  --fs-h1: 52px;
  --fs-section-title: 40px;
  --fs-eyebrow: 11px;
  --line-body: 1.8;   /* consistent line-height for body/descriptive copy */

  /* Layout */
  --max-w: 1380px;
  --pad: clamp(1.5rem, 5vw, 300px);
  --radius: 2px;
  --section-pad: 5rem;
  --hero-h: 600px;

  /* Effects */
  --shadow-menu: 0 4px 16px rgba(0, 0, 0, 0.08);
  --transition: 0.4s ease;
}

/* =================================================================
   RESET & BASE
   ================================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  font-size: var(--fs-base);
}

img { max-width: 100%; display: block; }

strong, b { font-weight: 700; }

.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* =================================================================
   UTILITIES (replace former inline styles)
   ================================================================= */
.u-maxw-text { max-width: 820px; }
.u-mt-lg { margin-top: 2.5rem; }
.u-rel-z1 { position: relative; z-index: 1; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* =================================================================
   NAVIGATION
   ================================================================= */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 64px; width: auto; }

.nav-center { display: flex; gap: 1.5rem; align-items: center; flex-wrap: nowrap; }
.nav-center a {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav-center a:hover,
.nav-center a.active,
.nav-center .current-menu-item > a,
.nav-center .current_page_item > a {
  color: var(--navy);
}
.nav-center a.active,
.nav-center .current-menu-item > a,
.nav-center .current_page_item > a {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
}

/* Dropdown (menu items with children) */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-has-sub {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.nav-has-sub:hover,
.nav-dropdown.current-menu-parent > .nav-has-sub,
.nav-dropdown.current-menu-ancestor > .nav-has-sub {
  color: var(--navy);
}
.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--navy);
  min-width: 200px;
  z-index: 200;
  box-shadow: var(--shadow-menu);
  list-style: none;
}
.nav-submenu a {
  display: block;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.nav-submenu a:last-child { border-bottom: none; }
.nav-submenu a:hover { background: #f5f6fa; color: var(--navy); }
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu { display: block; }
/* Invisible bridge across the 16px gap between the link and the submenu so the
   pointer keeps :hover while travelling down to the submenu — without it the
   menu collapses in the gap before any item can be clicked. Desktop only:
   on mobile the submenu is static, so the bridge would intercept taps. */
@media (min-width: 769px) {
  .nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 18px;
  }
}

.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Language switch (TranslatePress-driven, styled as the original pill) */
.lang-switch {
  display: flex;
  align-items: center;
  background: #f0f1f4;
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  padding: 7px 12px;
  line-height: 1;
  display: inline-block;
}
.lang-btn.active { background: var(--navy); color: var(--white); }
.lang-divider { width: 1px; height: 18px; background: #d0d3db; }

.nav-cta {
  background: var(--navy);
  color: var(--white);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero video,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  /* !important beats Elementor's `.elementor img { height:auto }` (same specificity, loads later) */
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
}
.hero video { transform: scaleX(-1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(40, 40, 40, 0.72) 0%,
    rgba(40, 40, 40, 0.45) 25%,
    rgba(40, 40, 40, 0.0) 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 4.5rem;
}
.hero-text { max-width: 680px; }
.hero-eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--steel-light);
}
h1, .hero h1 {
  font-family: var(--font-head);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1rem;
}
h1 em { color: var(--steel-light); font-style: normal; }
.hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: var(--line-body);
  color: var(--hero-sub);
  margin-bottom: 1.8rem;
}
.hero-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* =================================================================
   SECTION COMMONS
   ================================================================= */
.line-divider { height: 2px; background: var(--navy); }

.section-eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}
.section-title {
  font-family: var(--font-head);
  font-size: var(--fs-section-title);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}
.section-body {
  font-size: var(--fs-base);
  line-height: var(--line-body);
  color: var(--text);
  margin-bottom: 0.9rem;
}

.link-more {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}
.servicios-cta { margin-top: 2rem; text-align: center; }

/* =================================================================
   QUIÉNES SOMOS (+ stats)
   ================================================================= */
.quienes { padding: var(--section-pad) 0; }
.quienes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.quienes-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--grid-line);
}
.qstat { background: var(--white); padding: 2rem 1.5rem; text-align: center; }
.qstat-num {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1;
}
.qstat-num sup { font-size: 22px; }
.qstat-label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel-gray);
  margin-top: 6px;
  line-height: 1.5;
}

/* =================================================================
   SERVICIOS (home cards grid)
   ================================================================= */
.servicios { background: var(--light-bg); padding: var(--section-pad) 0; }
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--grid-line-strong);
  margin-top: 2.5rem;
}
.servicio-card { background: var(--white); padding: 2rem 1.5rem; text-align: center; }
.servicio-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.servicio-icon svg { width: 29px; height: 29px; stroke: var(--steel-light); fill: none; stroke-width: 1.5; }
.servicio-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.servicio-desc { font-size: 15px; line-height: var(--line-body); color: var(--text-soft); }

/* =================================================================
   PRODUCTOS (shared grid for home + Productos page)
   ================================================================= */
.productos { background: var(--white); padding: var(--section-pad) 0; }
.productos-sec { background: var(--light-bg); padding: var(--section-pad) 0; }
.productos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--grid-line-strong);
  margin-top: 2.5rem;
}
/* flex: 1 1 calc(25% - 2px) => up to 4 per row; fewer cards grow to fill the row */
.producto-card { background: var(--white); display: flex; flex-direction: column; flex: 1 1 calc(25% - 2px); }
/* Fixed height so every card image matches, regardless of how many cards
   share a row; image fills, centered, clipped to the box (never overflows). */
.producto-img { width: 100%; height: 240px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.producto-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform var(--transition); }
.producto-card:hover .producto-img img { transform: scale(1.04); }
.producto-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.producto-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.producto-desc { font-size: 16px; line-height: var(--line-body); color: var(--text-soft); flex: 1; margin-bottom: 1rem; }
.producto-link {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}

/* =================================================================
   CÓMO TRABAJAMOS (home flow + dedicated page table)
   ================================================================= */
.como { background: var(--white); padding: var(--section-pad) 0; }
body.home .como { background: var(--light-blue); }

.proceso-flow { display: flex; align-items: flex-start; margin-top: 3rem; position: relative; }
.proceso-flow::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(to right, var(--navy), var(--steel-gray));
  z-index: 0;
}
.paso { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; padding: 0 0.5rem; }
/* Mobile: center each process step in the stacked column (synced from production). */
@media (max-width: 768px) {
  .paso { align-self: center; }
}

.paso-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy);
  flex-shrink: 0;
}
.paso-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  text-transform: uppercase;
  line-height: 1.2;
}

/* Dedicated Cómo operamos page: process table */
.proceso-table { width: 100%; border-collapse: collapse; margin-top: 3.5rem; }
.proceso-table td {
  width: 33.33%;
  padding: 2rem 3rem 2rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--grid-line);
}
.proceso-table td:last-child { padding-right: 0; }
.proceso-table tr:last-child td { border-bottom: none; }
.paso-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; min-height: 52px; }
.proceso-table .paso-num { margin-bottom: 0; }
.proceso-table .paso-title { font-size: 22px; margin-bottom: 0.6rem; }
.paso-desc { font-size: 15px; line-height: var(--line-body); color: var(--text-soft); text-align: left; }

.elementor-kit-42 p {
    margin-block-end: 8px;
    line-height: var(--line-body);
}

/* =================================================================
   POR QUÉ TRADESTAHL
   ================================================================= */
.porque { background: var(--white); padding: var(--section-pad) 0; }
.porque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grid-line);
  margin-top: 2.5rem;
}
.porq-card { background: var(--white); padding: 2rem 1.8rem; }
.porq-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.porq-icon svg { width: 24px; height: 24px; stroke: var(--steel-light); fill: none; stroke-width: 1.5; }
.porq-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.porq-desc { font-size: 14px; line-height: var(--line-body); color: var(--text-soft); }

/* =================================================================
   ALIANZAS (world map + quote)
   ================================================================= */
.alianzas { background: var(--light-bg); padding: var(--section-pad) 0; position: relative; overflow: hidden; }
.alianzas-map-bg {
  position: absolute;
  right: 5%;
  top: -10%;
  width: 58%;
  height: 110%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.alianzas-map-bg img { width: 100%; height: 100%; object-fit: contain; }
.alianzas-body { font-size: var(--fs-base); line-height: var(--line-body); color: var(--text-soft); max-width: 820px; margin-bottom: 2.5rem; }
.alianzas-quote { border-left: 3px solid var(--navy); padding: 1.5rem 2rem; max-width: 820px; }
.alianzas-quote p { font-size: 16px; font-style: italic; line-height: 1.8; color: var(--mid-gray); }
.alianzas-quote cite {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 0.8rem;
  display: block;
  font-style: normal;
}

/* =================================================================
   MISIÓN Y VISIÓN (Nosotros)
   ================================================================= */
.mision-vision { background: var(--light-blue); padding: var(--section-pad) 0; }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--grid-line-soft);
  margin-top: 2.5rem;
}
.mv-card { background: var(--white); padding: 3rem 2.5rem; }
.mv-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mv-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--navy); }
.mv-title { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--navy-dark); margin-bottom: 1rem; }
.mv-body { font-size: 17px; line-height: var(--line-body); color: var(--text-soft); }

/* =================================================================
   VALORES (Nosotros)
   ================================================================= */
.valores { background: var(--white); padding: var(--section-pad) 0; }
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--grid-line-soft);
  margin-top: 2.5rem;
}
.valor-card { background: var(--light-bg); padding: 2.2rem 2rem; }
.valor-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.valor-icon svg { width: 24px; height: 24px; stroke: var(--steel-light); fill: none; stroke-width: 1.5; }
.valor-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.valor-desc { font-size: 15px; line-height: var(--line-body); color: var(--text-mid); }

/* =================================================================
   INTRO + SERVICIOS LIST (Servicios page)
   ================================================================= */
.intro { padding: var(--section-pad) 0; background: var(--white); }
.servicios-list { background: var(--light-bg); padding: var(--section-pad) 0; }
.servicio-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--grid-line);
}
.servicio-row:last-child { border-bottom: none; }
.servicio-left { display: flex; flex-direction: column; gap: 1rem; }
.servicio-photo { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.servicio-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.servicio-row:hover .servicio-photo img { transform: scale(1.03); }
.servicio-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--steel-gray);
  text-transform: uppercase;
  text-align: center;
}
.servicio-content { padding-top: 0.4rem; }
.servicio-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.1;
}

/* =================================================================
   INDUSTRIAS (Productos page)
   ================================================================= */
.industrias-sec { background: var(--white); padding: var(--section-pad) 0; }
.industrias-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--grid-line);
  margin-top: 2.5rem;
}
.industria-row { background: var(--white); display: flex; flex-direction: column; padding: 2rem; }
.industria-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1rem;
}
.industria-icon svg { width: 28px; height: 28px; stroke: var(--steel-light); fill: none; stroke-width: 1.5; }
.industria-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-dark);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.industria-desc { font-size: var(--fs-base); line-height: var(--line-body); color: var(--text-soft); max-width: 820px; }

/* =================================================================
   CONTACTO CTA (split default + full 3-column variant)
   ================================================================= */
.contacto-cta { background: var(--cta-bg); }
.contacto-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.cta-title { font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--white); }
.cta-sub { font-size: 15px; font-weight: 300; color: var(--steel-light); margin-top: 6px; }
.cta-body { font-size: 15px; line-height: var(--line-body); color: var(--steel-light); max-width: 560px; }
.contacto-btn {
  background: var(--white);
  color: var(--navy-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

/* Full 3-column variant (home) */
.contacto-cta--full .contacto-inner {
  padding: 4.5rem var(--pad);
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 3rem;
  align-items: center;
}
.contacto-cta--full .cta-title { font-size: 36px; margin-bottom: 0.5rem; }
.contacto-mid {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 2rem;
}
.contacto-trust { font-size: 14px; line-height: 1.8; color: var(--steel-light); font-style: italic; }
.contacto-right { text-align: center; }

/* =================================================================
   CONTACTO PAGE
   ================================================================= */
.contacto-page { padding: var(--section-pad) 0; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; margin-top: 2.5rem; }
.contacto-details h4 {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.contacto-details p { font-size: 16px; line-height: 2; color: var(--text-soft); margin-bottom: 1.5rem; }
.contacto-details a { color: var(--navy); text-decoration: none; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { background: var(--white); border-top: 1px solid var(--border); }
.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--pad);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--navy-dark); margin-bottom: 0.5rem; }
.footer-brand p { font-size: 15px; line-height: 1.7; color: var(--text-muted); max-width: 320px; }
.footer-nav h4,
.footer-contact h4 {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.footer-nav ul { list-style: none; }
.footer-nav a { display: block; font-size: 15px; color: var(--text-soft); text-decoration: none; margin-bottom: 0.5rem; }
.footer-nav a:hover { color: var(--navy); }
.footer-contact p { font-size: 15px; line-height: 2; color: var(--text-soft); }
.footer-bottom { background: var(--footer-bottom-bg); }
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.2rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 15px; color: var(--text-on-navy); line-height: 1.6; }
.footer-bottom a { color: var(--text-on-navy); text-decoration: none; }
.footer-bottom a:hover { color: var(--steel-light); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1100px) {
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
  .productos-grid { grid-template-columns: repeat(2, 1fr); }
  .quienes-grid { grid-template-columns: 1fr; gap: 3rem; }
  .porque-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root { --pad: 3rem; }
}

@media (max-width: 768px) {
  :root { --pad: 1.5rem; --hero-h: 480px; --fs-h1: 38px; }

  .nav-toggle { display: block; }
  .nav-center {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-menu);
    padding: 0.5rem var(--pad) 1rem;
  }
  .nav-center.is-open { display: flex; }
  .nav-center > a,
  .nav-dropdown { width: 100%; padding: 0.75rem 0; }
  .nav-submenu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-top: none;
    min-width: 0;
    padding-left: 1rem;
  }

  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .producto-card { flex-basis: 100%; }
  .industrias-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
  .porque-grid { grid-template-columns: 1fr; }

  .proceso-flow { flex-direction: column; gap: 1.5rem; }
  .proceso-flow::before { display: none; }
  .proceso-table td { display: block; width: 100%; padding: 1.5rem 0; }

  .servicio-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }

  .contacto-inner,
  .contacto-cta--full .contacto-inner {
    flex-direction: column;
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contacto-mid { border: none; padding: 0; }
  .contacto-right { text-align: left; }

  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --fs-h1: 32px; }
  .nav-cta { display: none; }
  .valores-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   RICH TEXT (WYSIWYG bodies render <p> inside .section-body)
   ================================================================= */
.section-body p { margin-bottom: 0.9rem; }
.section-body p:last-child { margin-bottom: 0; }

/* =================================================================
   ELEMENTOR INTEGRATION
   Each Tradestahl widget prints a full-width <section>; strip the
   default Elementor wrappers so sections sit flush and full-bleed.
   For manual builds, also set the Section/Container to Full Width
   with zero padding (the seeder does this automatically).
   ================================================================= */
[class*="elementor-widget-tradestahl_"] > .elementor-widget-container { padding: 0; margin: 0; }
[class*="elementor-widget-tradestahl_"] { margin: 0 !important; }
.elementor-element:has(> .elementor-widget-container > .hero),
.elementor-element:has(> .elementor-widget-container > section) { width: 100%; }

/* Product cards: remaining cards fill the space of any removed card */
.productos-grid { display: flex; flex-wrap: wrap; }
/*.producto-card { flex: 1 1 calc(25% - 2px); }*/
/* 3 per row */ .producto-card { flex: 1 1 calc(100% / 3 - 2px); }
/* Tablet stays 3-up (matches production). */
/*@media (max-width: 1100px) { .producto-card { flex-basis: calc(50% - 2px); } }*/
@media (max-width: 768px)  { .producto-card { flex-basis: 100%; } }

/* =================================================================
   PRODUCTOS (COMBINADO) — new page components
   Spec product cards, category sections, tag chips, ficha técnica.
   ================================================================= */
/* shared body copy for the new intro/category sections */
.ts-copy p { font-size: 18px; line-height: var(--line-body); color: #222222; max-width: 860px; margin-bottom: 0.9rem; }

/* tag chips ("garantías") */
.garantias { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.garantia-tag { background: var(--light-bg); border-left: 3px solid var(--navy); padding: 0.5rem 1rem; font-size: 14px; font-weight: 600; color: var(--navy-dark); }

/* category sections + anchors */
.product-section { background: var(--light-bg); padding: 5rem 0; }
.product-section.alt { background: var(--white); }
.category-anchor { scroll-margin-top: 95px; }
.category-intro { margin-bottom: 2.5rem; }

/* spec product cards */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--grid-line-strong); margin-top: 2.5rem; }
.prod-grid.largos-grid { grid-template-columns: repeat(2, 1fr); }
.prod-card { background: var(--white); display: flex; flex-direction: column; }
.prod-photo { width: 100%; aspect-ratio: 4 / 3; background: #cccccc; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-photo span { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #888; }
.prod-photo img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.prod-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.prod-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--navy-dark); text-transform: uppercase; margin-bottom: 0.8rem; }
.prod-specs { list-style: none; margin-bottom: 1rem; flex: 1; }
.prod-specs li { font-size: 14px; line-height: 1.8; color: #222222; padding: 0.2rem 0; border-bottom: 1px solid #f0f0f0; display: flex; gap: 0.5rem; }
.prod-specs li::before { content: '—'; color: var(--navy); flex-shrink: 0; }
.prod-app { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--steel-gray); margin-top: 0.5rem; }

/* ficha técnica feature block */
.tech-feature-section { padding-top: 0; }
.tech-feature-section .steel-plate-feature { margin-top: 0; }
.steel-plate-feature { background: var(--white); margin-top: 3rem; display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr); gap: 2px; border: 1px solid var(--grid-line-strong); }
.steel-plate-photo { min-height: 420px; background: #d7dbe2; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.steel-plate-photo span { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #777; }
.steel-plate-photo img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.steel-plate-body { padding: 2.4rem; }
.steel-plate-kicker { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--steel-gray); margin-bottom: 0.5rem; }
.steel-plate-title { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--navy-dark); text-transform: uppercase; margin-bottom: 0.9rem; line-height: 1.1; }
.steel-plate-desc { font-size: 16px; line-height: var(--line-body); color: #222222; margin-bottom: 1.5rem; max-width: 820px; }
.tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; }
.tech-block h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--navy-dark); text-transform: uppercase; margin-bottom: 0.5rem; }
.tech-list { list-style: none; }
.tech-list li { font-size: 14px; line-height: 1.7; color: #222222; padding: 0.25rem 0; border-bottom: 1px solid #f0f0f0; display: flex; gap: 0.5rem; }
.tech-list li::before { content: '—'; color: var(--navy); flex-shrink: 0; }

@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .steel-plate-feature { grid-template-columns: 1fr; }
  .steel-plate-photo { min-height: 280px; }
}
@media (max-width: 768px) {
  .prod-grid, .prod-grid.largos-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .steel-plate-body { padding: 1.8rem; }
}

/* =================================================================
   FICHA — spec-sheet block (Tubulares)
   Wide photo + two columns of heading / list / chip sections.
   ================================================================= */
.ficha-section { background: var(--light-bg); padding: 5rem 0; }
.ficha-section.is-blue { background: var(--light-blue); }
.ficha-section.is-white { background: var(--white); }
.ficha-section.is-tight { padding-top: 0; }
.ficha-titulo { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--navy-dark); text-transform: uppercase; line-height: 1.1; margin-bottom: 0.35rem; margin-top: 2.5rem; }
.ficha-subtitulo { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--steel-gray); margin-bottom: 1rem; }
.ficha-octg-wrap { background: var(--white); margin-top: 2.5rem; }
.ficha-octg-photo { width: 100%; aspect-ratio: 16 / 5; background: #cccccc; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ficha-octg-photo span { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #888; }
.ficha-octg-photo img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.ficha-octg-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.ficha-col { padding: 2rem; border-right: 1px solid var(--border); }
.ficha-col:last-child { border-right: none; }
.ficha-seccion { margin-bottom: 1.5rem; }
.ficha-seccion:last-child { margin-bottom: 0; }
.ficha-seccion h4 { font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); margin-bottom: 0.5rem; }
.ficha-seccion p { font-size: 17px; line-height: 1.8; color: #222222; }
.ficha-seccion ul { list-style: none; padding: 0; }
.ficha-seccion ul li { font-size: 17px; line-height: 1.8; color: #222222; padding: 0.2rem 0 0.2rem 1.2rem; border-bottom: 1px solid #f0f0f0; position: relative; }
.ficha-seccion ul li::before { content: "\2014"; color: var(--navy); position: absolute; left: 0; }
.ficha-seccion ul li:last-child { border-bottom: none; }
.ficha-grados { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.ficha-grado-tag { background: var(--light-bg); border: 1px solid var(--grid-line); padding: 0.3rem 0.85rem; font-size: 15px; font-weight: 600; color: var(--navy-dark); border-radius: var(--radius); }
.ficha-grado-tag.sour { background: var(--light-blue); border-color: #b8c8dc; }
@media (max-width: 768px) {
  .ficha-octg-cols { grid-template-columns: 1fr; }
  .ficha-col { border-right: none; border-bottom: 1px solid var(--border); }
  .ficha-col:last-child { border-bottom: none; }
  .ficha-titulo { font-size: 23px; }
}

/* =================================================================
   BODY COPY LINE-HEIGHT — apply var(--line-body) (1.8) to paragraph
   text in the requested sections.
   ================================================================= */
/* Home (Inicio) */
body.home .productos p,
body.home .como p,
body.home .alianzas p { line-height: var(--line-body); }

/* Servicios */
.servicios-list p { line-height: var(--line-body); }

/* Productos — "Industrias que atendemos" intro paragraph */
.industrias-sec p { line-height: var(--line-body); }

/* Como Operamos — "Por qué Tradestahl" intro paragraph */
body.page-como-operamos .porque p { line-height: var(--line-body); }


