﻿@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;800;900&display=swap');
@import '_variables.css';
@import '_reset.css';
@import '_typography.css';
@import '_animations.css';
@import '_components.css';


/* ============================================================
   TECNOMETALES CNC â€” site.css (shell v2 sobre sistema v1)
   Lock v2 aprobado 2026-07-22. PÃ¡ginas internas.
   = sistema v1 (bodies intactos) + header/footer v2 sobrepuestos.
   El scroll-swap del header lo dispara main.js (#site-header â†’ .is-scrolled).
   ============================================================ */

/* â”€â”€ Tokens v2 (nombres nuevos; valores = marca) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --bg:          #FFFFFF;
  --bg-dark:     #1C1D1E;
  --text:        #1C1D1E;
  --text-muted:  #6D6D6D;
  --text-invert: #FFFFFF;
  --accent:      #AF1925;
  --accent-dark: #791019;
  --tierra:      #60584D;
  --border:      #D5CFC6;
  --border-dark: #33342F;
  --font: 'Heebo', sans-serif;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro:  150ms;
  --dur-comp:   280ms;
  --container:  1240px;
}

/* â”€â”€ HEADER v2 (transparente sobre hero â†’ sÃ³lido al scroll) â”€â”€â”€â”€ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 250;
  --hairline: rgba(255,255,255,0.24);
  --nav-ink: #FFFFFF;
  --nav-dim: rgba(255,255,255,0.75);
  background: transparent;
  border-bottom: 1px solid var(--hairline);
  transition: background-color var(--dur-comp) var(--ease-out),
              border-color var(--dur-comp) var(--ease-out);
}
.header.is-scrolled {
  --hairline: var(--border);
  --nav-ink: var(--text);
  --nav-dim: var(--text-muted);
  background: var(--bg);
}
.header .header-in {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-px);
  display: flex; align-items: stretch;
  min-width: 0;
}
.header .logo-block {
  background: var(--accent);
  display: flex; align-items: center;
  padding: 0 2.25rem; flex-shrink: 0;
}
.header .logo-block img { filter: brightness(0) invert(1); width: 170px; height: auto; }
.header .header-right { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.header .topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; padding: 0 0 0 1.5rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--nav-dim);
  transition: color var(--dur-comp) var(--ease-out);
}
.header .topbar a { color: inherit; text-decoration: none; transition: color var(--dur-micro) var(--ease-out); }
.header .topbar a:hover { color: var(--accent); }
.header .topbar .sep { color: var(--accent); margin: 0 0.75rem; }
.header.at-hero .topbar,
.header.at-hero .topbar a,
.header.at-hero .topbar > span:last-child {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.32);
}
.header.at-hero .topbar .sep { color: rgba(255,255,255,0.58); }
.header .nav-row {
  display: flex; align-items: stretch; justify-content: space-between; height: 66px;
}
.header .nav { display: flex; align-items: stretch; height: 100%; }
.header .nav a {
  font: 700 0.78rem/1 var(--font);
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  color: var(--nav-ink);
  display: inline-flex; align-items: center;
  padding: 0 1.25rem;
  border-left: 1px solid var(--hairline);
  position: relative;
  transition: color var(--dur-micro) var(--ease-out);
}
.header .nav a:last-of-type:not(.nav-cta) { border-right: 1px solid var(--hairline); }
.header .nav a::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-micro) var(--ease-out);
}
.header .nav a:hover { color: var(--accent); }
.header .nav a:hover::after, .header .nav a[aria-current]::after { transform: scaleX(1); }
.header .nav .nav-cta {
  border-left: 0; border-right: 0; margin-left: 1.25rem;
  background: var(--accent); color: var(--text-invert);
  padding: 0 1.75rem;
}
.header .nav .nav-cta::after { display: none; }
.header .nav .nav-cta:hover { background: var(--accent-dark); color: var(--text-invert); }
.header .nav .nav-cta:active { transform: translateY(1px); }
.header .nav .nav-cta:focus-visible, .header .nav a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -3px;
}

/* â”€â”€ FOOTER v2 (bloque rojo sobre foto + watermark) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-invert);
  overflow: hidden;
  padding: 5rem 0 0;
}
.footer .footer-photo {
  position: absolute; inset: 0; z-index: 0;
  background: url("/assets/images/NEW/tm-footer-bg.webp") center/cover;
}
.footer .footer-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,29,30,0.82) 0%, rgba(28,29,30,0.94) 100%);
}
.footer .container { position: relative; z-index: 2; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-px); }
.footer .footer-block {
  background: var(--accent); color: #fff;
  padding: 3.5rem 3.75rem 2.5rem;
  --line: rgba(255,255,255,0.28);
}
.footer .footer-contact {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: end;
  padding-bottom: 3rem; border-bottom: 1px solid var(--line);
}
.footer .kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
}
.footer a.footer-mail {
  display: inline-block; margin-top: 1rem;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em;
  color: #fff; text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.55); padding-bottom: 0.3rem;
  transition: border-color var(--dur-micro) var(--ease-out);
}
.footer a.footer-mail:hover { border-color: #fff; }
.footer a.footer-mail { max-width: 100%; overflow-wrap: anywhere; }
.footer .footer-tels { display: flex; gap: 2.5rem; justify-content: flex-end; flex-wrap: wrap; }
.footer .footer-tel { text-decoration: none; color: #fff; }
.footer .footer-tel .k {
  display: block; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); margin-bottom: 0.4rem;
}
.footer .footer-tel .v { font-size: 1.05rem; font-weight: 700; }
.footer .footer-tel:hover .v { text-decoration: underline; }
.footer .footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; padding-top: 3rem;
}
.footer .footer-col { border-left: 1px solid var(--line); padding: 0 2rem; }
.footer .footer-col:first-child { border-left: 0; padding-left: 0; }
.footer .footer-col:last-child { padding-right: 0; }
.footer .brandline { font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.05rem; }
.footer .tagline { color: rgba(255,255,255,0.85); font-size: 0.9rem; max-width: 26ch; margin-top: 0.75rem; }
.footer .iso {
  display: inline-block; margin-top: 1.5rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff;
  border: 1px solid var(--line); padding: 0.55rem 0.9rem;
}
.footer .col-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 1.35rem;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.7rem; }
.footer a { color: #fff; text-decoration: none; font-size: 0.9rem; opacity: 0.9; transition: opacity var(--dur-micro) var(--ease-out); }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer .sede-line { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.footer .sede-line .p { font-size: 0.9rem; font-weight: 700; color: #fff; }
.footer .sede-line .e { font-size: 0.78rem; color: rgba(255,255,255,0.8); text-align: right; }
.footer .footer-legal {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: rgba(255,255,255,0.85);
}
.footer .footer-legal a { font-size: 0.78rem; }
.footer .footer-mark {
  position: relative; z-index: 1;
  font-size: clamp(3.5rem, 15vw, 14rem); font-weight: 900; line-height: 0.8;
  text-transform: uppercase; letter-spacing: -0.03em;
  color: rgba(255,255,255,0.06); text-align: center;
  user-select: none; margin-top: -2%; transform: translateY(22%); pointer-events: none;
}

/* â”€â”€ Holgura para pÃ¡ginas sin hero (primera secciÃ³n bajo header fijo) â”€â”€ */
main > .section:first-child,
main > .section-sm:first-child { padding-top: calc(104px + 3rem); }
/* â”€â”€ scroll-margin-top global: evita que el header cubra secciones ancladas â”€â”€ */
section[id], .section, .section-alt, .section-dark, .ph-overview, .ph-desc, .cat-listing { scroll-margin-top: 80px; }

/* â”€â”€ Hamburger base (oculto en desktop) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0;
  flex-shrink: 0;
  color: var(--nav-ink);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 0;
  transition: transform var(--dur-comp) var(--ease-out), opacity var(--dur-micro) linear;
}
.header.is-scrolled .nav-toggle,
.header:not(.at-hero) .nav-toggle { color: var(--text); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle:active { opacity: 0.7; }

/* â”€â”€ Responsive shell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 980px) {
  html, body { overflow-x: clip; }
  .header .nav-row .nav:first-child { display: none; }
  .header .nav-row nav:not(#site-nav) { height: auto; align-self: center; }
  .header .nav-row > .nav:last-of-type { display: none; }
  .header .nav-row { display: flex; align-items: center; justify-content: flex-end; height: 58px; gap: 0.75rem; padding-right: 0.75rem; }
  .header .topbar > span:first-child { display: none; }
  .header .topbar {
    height: 36px;
    justify-content: flex-end;
    padding: 0 0.85rem 0 0;
    font-size: 0.7rem;
    gap: 0.65rem;
  }
  .header .topbar > span:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
  }
  .header .topbar a { display: inline-flex; align-items: center; min-height: 36px; }
  .header.at-hero .topbar a { color: #fff; }
  .header .logo-block { padding: 0 1rem; }
  .header .logo-block img { width: 138px; }
  .footer .footer-block { padding: 2.5rem 1.75rem 2rem; }
  .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .footer .footer-col { border-left: 0; padding: 0; }
  .footer .footer-col:first-child { grid-column: 1 / -1; }
  .footer .footer-contact { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
  .footer .footer-tels { justify-content: flex-start; }

  .nav-toggle { display: flex; margin-left: 0; }
  .header .nav-toggle span { background: currentColor; }

  #site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    max-width: calc(100vw - 1rem);
    height: 100dvh;
    background: var(--bg-dark);
    display: flex !important;
    flex-direction: column;
    padding: 5.25rem 1.4rem 1.5rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--dur-comp) var(--ease-out),
                visibility 0s var(--dur-comp);
    z-index: 200;
    overflow-y: auto;
    visibility: hidden;
  }
  #site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--dur-comp) var(--ease-out), visibility 0s 0s;
  }
  #site-nav .nav-item {
    display: block;
    width: 100%;
  }
  #site-nav .nav-item + .nav-item { margin-top: 0; }
  #site-nav a,
  #site-nav .nav-dropdown-trigger {
    width: 100%;
    min-height: 48px;
    border-left: 0;
    border-right: 0;
    font-size: 0.94rem;
    letter-spacing: 0.08em;
  }
  #site-nav a {
    display: flex;
    align-items: center;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--dur-micro) linear;
  }
  #site-nav a:hover { color: var(--accent); }
  #site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  #site-nav .nav-cta-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0 0 1rem;
    padding: 0.95rem 1rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
  }

  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-comp) var(--ease-out);
  }
  body:has(#site-nav.is-open)::after {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 640px) {
  .hero-actions .btn,
  .cta-form .btn,
  .btn {
    max-width: 100%;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }
  .topbar a[href^="tel"], .header .topbar a[href^="tel"] { display: none; }
  .topbar .sep, .header .topbar .sep { display: none; }
  .topbar { font-size: 0.68rem; }
  .header .topbar { font-size: 0.68rem; }
  .footer .footer-grid { grid-template-columns: 1fr; }
  .footer .footer-legal { flex-direction: column; gap: 0.5rem; }
}

/* ============================================================
   CAPA BODY v2 â€” rediseÃ±o de cuerpos sobre componentes v1
   Aplica a producto, categorÃ­a, servicio, nosotros, contacto.
   Misma paleta/fuente; elimina anti-patrones v1 (radius, sombra,
   CTA centrada) y aplica el lenguaje industrial del Lock v2.
   ============================================================ */

/* â€” TipografÃ­a: display industrial (headings largos quedan legibles) â€” */
.text-display { text-transform: uppercase; font-weight: 900; letter-spacing: -0.03em; line-height: 0.98; }
.text-heading { font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.section-header .text-heading { margin-top: 0; }
.section-header .text-lead { margin: 1rem 0 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tierra);
  margin: 0 0 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.heading-accent-line {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.heading-accent-line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  background: var(--accent);
}

/* â€” Radius 0 + sin sombras (industrial) â€” */
.product-card, .img-cover, .img-cover-tall, .spec-icon,
.materials-table, .material-row, .btn { border-radius: 0 !important; }

/* â€” Hero interno v2 â€” */
.hero-sm { min-height: 66vh; }
.hero .hero-overlay,
.hero-sm .hero-overlay {
  background: linear-gradient(200deg, rgba(28,29,30,0.30) 0%, rgba(28,29,30,0.85) 76%);
}
.hero-content .text-display { font-size: clamp(2.6rem, 6vw, 5rem); }

/* â€” Specs strip v2: acento rojo superior + nÃºmeros grandes â€” */
.specs-strip { border-top: 3px solid var(--accent); }
.spec-item { padding: 1.9rem 1.4rem; }
.spec-value { font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--text); }

/* â€” Product cards v2: hairline, sin sombra, hover acento + zoom â€” */
.product-card { box-shadow: none; }
.product-card:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.product-card-img { transition: transform var(--dur-comp) var(--ease-out); }
.product-card:hover .product-card-img { transform: scale(1.045); }
.product-card-title { text-transform: uppercase; font-weight: 800; letter-spacing: -0.01em; }

/* â€” Feature list v2: separadores hairline â€” */
.feature-item { padding-bottom: 0.8rem; border-bottom: 1px solid var(--border); }
.feature-item:last-child { border-bottom: 0; }
.feature-dash { color: var(--accent); font-weight: 800; }

/* â€” CTA v2: bloque rojo asimÃ©trico (solo CTAs sin formulario) â€” */
.cta-section:not(:has(.cta-form)) {
  background: var(--accent); text-align: left; padding-block: 4.5rem;
}
.cta-section:not(:has(.cta-form)) .container {
  display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap;
}
.cta-section:not(:has(.cta-form)) .section-label {
  color: rgba(255,255,255,0.9); justify-content: flex-start; margin: 0 0 0.4rem;
}
.cta-section:not(:has(.cta-form)) .section-label::before { display: none; }
.cta-section:not(:has(.cta-form)) .text-lead,
.cta-section:not(:has(.cta-form)) .text-invert {
  color: #fff; margin: 0; max-width: 26ch;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.08;
}
.cta-section:not(:has(.cta-form)) .btn-outline-invert { border-color: #fff; color: #fff; flex-shrink: 0; }
.cta-section:not(:has(.cta-form)) .btn-outline-invert:hover { background: #fff; color: var(--accent); }

/* â€” Form CTA (contacto/servicios): quitar radius, mantener dark â€” */
.cta-form input { border-radius: 0 !important; }

@media (max-width: 640px) {
  .cta-section:not(:has(.cta-form)) .container { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

/* ============================================================
   BUGFIX capa body v2
   ============================================================ */
/* Specs: el valor hereda color (blanco en secciones dark, oscuro en claras) */
.spec-value { color: inherit; }
.section-dark .spec-value, .hero .spec-value, .cta-section .spec-value { color: #fff; }
/* Hero interno: despeje del header fijo + display acotado para no cortarse */
.hero-sm { min-height: 56vh; padding-top: 132px; align-items: flex-start; padding-bottom: 4rem; }
.hero-sm .hero-content { gap: 1.25rem; }
.hero-content .text-display { font-size: clamp(2.2rem, 5.2vw, 4rem); }

/* ============================================================
   PLANTILLA DE PRODUCTO v2 â€” rediseÃ±o estructural
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color var(--dur-micro) var(--ease-out); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: var(--accent); }
.breadcrumb > span:not([aria-current]) { color: rgba(255,255,255,0.35); }

/* Hero de producto */
.ph-hero {
  position: relative; min-height: 74vh; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 132px 0 4rem; color: #fff; background: var(--bg-dark);
}
.ph-hero-media { position: absolute; inset: 0; z-index: 0; }
.ph-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ph-hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(28,29,30,0.35) 0%, rgba(28,29,30,0.9) 80%); }
.ph-hero .container { position: relative; z-index: 2; }
.ph-kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.ph-kicker::before { content: ""; width: 1.6rem; height: 2px; background: var(--accent); }
.ph-title {
  margin-top: 1.1rem; max-width: 16ch;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem); font-weight: 900; line-height: 0.95;
  letter-spacing: -0.03em; text-transform: uppercase;
}

/* Overview: figura grande + intro */
.ph-overview { padding: 6rem 0; }
.ph-overview-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4.5rem; align-items: center; }
.ph-figure { position: relative; margin: 0; }
.ph-figure img { width: 100%; height: 520px; object-fit: cover; }
.ph-figure::before {
  content: ""; position: absolute; left: -14px; top: -14px; bottom: 14px; width: 14px;
  background: var(--accent);
}
.ph-intro .section-label { color: var(--tierra); }
.ph-h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.02em; margin: 0.4rem 0 1.2rem;
}
.ph-lead { font-size: 1.1rem; line-height: 1.65; color: var(--text-muted); margin-bottom: 2rem; }

/* Banda de specs â€” nÃºmeros grandes visibles, hairlines, acento superior */
.spec-band {
  margin-top: 4rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
}
.spec-cell { padding: 2.25rem 1.5rem; border-left: 1px solid var(--border); }
.spec-cell:first-child { border-left: 0; }
.spec-v {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 900; letter-spacing: -0.02em;
  line-height: 1; color: var(--text);
}
.spec-k { margin-top: 0.7rem; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* DescripciÃ³n â€” encabezado sticky + cuerpo */
.ph-desc { padding: 6rem 0; }
.ph-desc-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
.ph-desc-head { position: sticky; top: 130px; }
.ph-desc-body > p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.25rem; color: var(--text); }
.ph-desc-body h3 {
  font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em;
  margin: 2rem 0 0.9rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.ph-desc-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* CaracterÃ­sticas como filas numeradas (Avelon) */
.ph-features { padding: 6rem 0; }
.ph-features .ph-h2 { margin-bottom: 2.5rem; }
.feature-rows { border-top: 1px solid var(--border); }
.feature-row {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.5rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid var(--border);
  transition: background-color var(--dur-micro) var(--ease-out);
}
.feature-row:hover { background: var(--bg-alt); }
.fr-num { font-size: 1rem; font-weight: 800; color: var(--accent); letter-spacing: 0.06em; }
.fr-text { font-size: 1.05rem; line-height: 1.5; margin: 0; }

/* Relacionados â€” cards v2 hairline */
.ph-related { padding: 6rem 0; }
.ph-related .section-label { margin-bottom: 2.5rem; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rel-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--border); background: var(--bg);
  transition: border-color var(--dur-micro) var(--ease-out);
}
.rel-card:hover { border-color: var(--accent); }
.rel-img { overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.rel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-comp) var(--ease-out); }
.rel-card:hover .rel-img img { transform: scale(1.05); }
.rel-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.rel-title { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.rel-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.rel-link { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* CTA producto â€” bloque rojo asimÃ©trico */
.ph-cta { padding: 4rem 0 6rem; scroll-margin-top: 80px; }
.ph-cta-inner {
  position: relative; overflow: hidden;
  background: var(--accent); color: #fff;
  padding: 3.5rem 3.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2.5rem;
}
/* Textura de rejilla (Avelon) */
.ph-cta-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
}
.ph-cta-inner > * { position: relative; z-index: 1; }
/* BUGFIX: el reveal scroll-driven atrapa elementos al final de pÃ¡gina â†’ CTA siempre visible */
.ph-cta-inner[data-anim] { animation: none !important; opacity: 1 !important; transform: none !important; }
.ph-cta-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.ph-cta-q {
  margin: 0.5rem 0 0; max-width: 20ch;
  font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.05;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.ph-cta .btn-invert { background: #fff; color: var(--accent); flex-shrink: 0; }
.ph-cta .btn-invert:hover { background: #EDECE8; }

@media (max-width: 900px) {
  .ph-overview-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ph-figure img { height: 360px; }
  .spec-band { grid-template-columns: repeat(2, 1fr); }
  .spec-cell:nth-child(3) { border-left: 0; }
  .spec-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
  .ph-desc-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ph-desc-head { position: static; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
  /* CTA en columna desde 900px: evita que flex-wrap recorte el botÃ³n con overflow:hidden */
  .ph-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2.5rem;
    overflow: visible;
  }
  .ph-cta .btn-invert { margin-top: 2rem; }
}
@media (max-width: 600px) {
  .rel-grid { grid-template-columns: 1fr; }
  .spec-band { grid-template-columns: 1fr; }
  .spec-cell { border-left: 0; border-top: 1px solid var(--border); }
  .spec-cell:first-child { border-top: 0; }
  .ph-cta-inner { padding: 2.5rem 1.75rem; }
  .feature-row { grid-template-columns: 3rem 1fr; gap: 1rem; }
}

/* Hero sÃ³lido (sin foto) para pÃ¡ginas sin imagen de fondo adecuada */
.hero.hero-solid { background: var(--bg-dark); }

/* GalerÃ­a de equipos (fotos de producto sobre blanco) */
.equip-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem;
}
.equip-item {
  border: 1px solid var(--border); background: #fff; aspect-ratio: 1; overflow: hidden;
}
.equip-item img {
  width: 100%; height: 100%; object-fit: contain; padding: 0.6rem;
  transition: transform var(--dur-comp) var(--ease-out);
}
.equip-item:hover img { transform: scale(1.05); }

/* ============================================================
   PLANTILLA DE CATEGORÃA v2 â€” listado en filas numeradas
   ============================================================ */
.cat-lead { margin-top: 1.5rem; max-width: 54ch; font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,0.82); }
.cat-listing { padding: 6rem 0; }
.cat-listing-head { margin-bottom: 3rem; }
.cat-listing-head .ph-h2 { margin-top: 0.4rem; }
.prod-rows { border-top: 1px solid var(--border); }
.prod-row {
  display: grid; grid-template-columns: 4.5rem 200px 1fr 3rem; gap: 2.5rem; align-items: center;
  padding: 1.8rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background-color var(--dur-comp) var(--ease-out);
}
.prod-row:hover { background: var(--bg-alt); }
.pr-num { font-size: 1rem; font-weight: 800; color: var(--accent); letter-spacing: 0.06em; }
.pr-thumb { overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-comp) var(--ease-out); }
.prod-row:hover .pr-thumb img { transform: scale(1.05); }
.pr-name {
  font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.1; transition: color var(--dur-micro) var(--ease-out);
}
.prod-row:hover .pr-name { color: var(--accent); }
.pr-desc { margin-top: 0.5rem; font-size: 0.95rem; color: var(--text-muted); max-width: 62ch; }
.pr-arrow { font-size: 1.3rem; font-weight: 800; color: var(--text-muted); justify-self: end;
  transition: transform var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.prod-row:hover .pr-arrow { transform: translateX(6px); color: var(--accent); }
@media (max-width: 780px) {
  .prod-row { grid-template-columns: 2.5rem 1fr 2rem; gap: 1.25rem; }
  .pr-thumb { display: none; }
}

/* BUGFIX reveal scroll-driven: CTA con formulario (dark) tambiÃ©n se atrapaba al final */
.cta-section[data-anim], .cta-section [data-anim],
.section:last-of-type[data-anim] { animation: none !important; opacity: 1 !important; transform: none !important; }

/* ============================================================
   MAPA (contacto) â€” Google Maps embed con acento industrial
   ============================================================ */
.map-section { position: relative; }
.map-embed {
  position: relative; width: 100%; height: 460px;
  border-top: 3px solid var(--accent);
  background: var(--bg-alt);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.15); }
.map-tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--accent); color: #fff;
  padding: 1.25rem 1.75rem; max-width: 340px;
}
.map-tag .k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.map-tag .v { margin-top: 0.4rem; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
@media (max-width: 600px) {
  .map-embed { height: 360px; }
  .map-tag { position: static; max-width: none; }
}

/* ============================================================
   VALUE ROWS (nosotros: misiÃ³n/visiÃ³n/polÃ­tica) â€” nÃºmeros outline
   ============================================================ */
.value-rows { border-top: 1px solid var(--border); }
.value-row {
  display: grid; grid-template-columns: 6rem 1fr; gap: 2.5rem; align-items: start;
  padding: 2.75rem 0; border-bottom: 1px solid var(--border);
}
.vr-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
}
.vr-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--tierra); margin-bottom: 0.55rem;
}
.vr-title {
  font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 0.8rem;
}
.vr-desc { color: var(--text-muted); line-height: 1.65; max-width: 72ch; }
@media (max-width: 640px) {
  .value-row { grid-template-columns: 3.5rem 1fr; gap: 1.25rem; padding: 2rem 0; }
}

/* ============================================================
   CTA con FORMULARIO v2 â€” bloque oscuro alineado a la izquierda
   (des-genera el "EnvÃ­anos tus planos" centrado)
   ============================================================ */
.cta-section:has(.cta-form) {
  position: relative; overflow: hidden;
  background: var(--bg-dark); color: #fff;
  text-align: left; padding-block: 5rem;
  border-top: 3px solid var(--accent);
}
.cta-section:has(.cta-form)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(120deg, transparent 45%, #000 100%);
}
.cta-section:has(.cta-form) .container { position: relative; z-index: 1; }
.cta-section:has(.cta-form) .section-label { color: var(--accent); }
.cta-section:has(.cta-form) h2 {
  text-transform: uppercase; font-weight: 900; letter-spacing: -0.02em;
  margin-inline: 0 !important; max-width: 20ch;
}
.cta-section:has(.cta-form) .text-lead { margin-inline: 0 !important; max-width: 48ch; }
.cta-section:has(.cta-form) .cta-form {
  margin-inline: 0 !important; max-width: 560px; margin-top: 2rem;
}

.wj-proof-section .section-header {
  max-width: 72ch;
}
.wj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.wj-gallery-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
}
.wj-gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.wj-gallery-card figcaption {
  padding: 1rem 1rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.wj-gallery-card-wide {
  grid-column: span 6;
}
.wj-gallery-card-wide img {
  aspect-ratio: 16 / 10;
}
.wj-gallery-card-tall {
  grid-row: span 2;
}
.wj-gallery-card-tall img {
  aspect-ratio: 4 / 5;
  min-height: 100%;
}
.wj-quote-section {
  background: linear-gradient(180deg, #1c1d1e 0%, #161718 100%);
}
.wj-quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: 2rem;
  align-items: start;
}
.wj-quote-copy {
  color: #fff;
  padding: clamp(1rem, 2vw, 2rem) 0;
}
.wj-quote-copy .text-heading {
  max-width: 14ch;
  margin-bottom: 1rem;
}
.wj-quote-copy .text-lead {
  max-width: 52ch;
}
.wj-quote-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.wj-meta-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}
.wj-meta-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}
.wj-meta-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
}
.wj-quote-points .feature-item {
  color: rgba(255,255,255,0.84);
}
.wj-quote-form-wrap {
  padding: clamp(1.5rem, 2vw, 2rem);
  background: #f5f2ec;
  border-top: 3px solid var(--accent);
}
.wj-quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0 !important;
  max-width: none !important;
}
.wj-quote-form .form-field {
  margin: 0;
}
.wj-quote-form .form-field-full,
.wj-quote-form .form-actions {
  grid-column: 1 / -1;
}
.wj-quote-form textarea {
  min-height: 170px;
  resize: vertical;
}
.wj-quote-form .btn {
  width: 100%;
  justify-content: center;
}
.wj-quote-note {
  margin-top: 1rem;
  color: var(--text-muted);
}
@media (max-width: 1080px) {
  .wj-gallery-card,
  .wj-gallery-card-wide {
    grid-column: span 6;
  }
  .wj-quote-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .wj-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .wj-gallery-card,
  .wj-gallery-card-wide {
    grid-column: auto;
  }
  .wj-gallery-card img,
  .wj-gallery-card-wide img,
  .wj-gallery-card-tall img {
    aspect-ratio: 1 / 1;
  }
  .wj-quote-meta,
  .wj-quote-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOG â€” Ã­ndice (cards con tag de categorÃ­a, estilo Avelon)
   ============================================================ */
.blog-listing { padding: 6rem 0; }
.blog-listing-head { margin-bottom: 3.5rem; max-width: 60ch; }
.blog-listing-head .ph-h2 { margin-top: 0.4rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--border); background: var(--bg);
  transition: border-color var(--dur-micro) var(--ease-out), transform var(--dur-comp) var(--ease-out);
}
.blog-card:hover { border-color: var(--accent); }
.blog-media { position: relative; overflow: hidden; aspect-ratio: 3/2; background: var(--bg-alt); }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-comp) var(--ease-out); }
.blog-card:hover .blog-media img { transform: scale(1.05); }
.blog-tag {
  position: absolute; left: 0; top: 0; z-index: 2;
  background: var(--accent); color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.5rem 0.9rem;
}
.blog-body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.blog-title {
  font-size: 1.15rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em;
  transition: color var(--dur-micro) var(--ease-out);
}
.blog-card:hover .blog-title { color: var(--accent); }
.blog-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.blog-more {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem;
}
.blog-more .arr { transition: transform var(--dur-micro) var(--ease-out); }
.blog-card:hover .blog-more .arr { transform: translateX(4px); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ARTÃCULO DE BLOG (post individual)
   ============================================================ */
.article-hero {
  position: relative; overflow: hidden;
  background: var(--bg-dark); color: #fff;
  padding: 140px 0 3.5rem;
}
.article-hero-media { position: absolute; inset: 0; z-index: 0; }
.article-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.article-hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,29,30,0.75) 0%, rgba(28,29,30,0.94) 100%); }
.article-hero .container { position: relative; z-index: 2; }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.article-cat {
  background: var(--accent); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.4rem 0.85rem;
}
.article-date { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.article-title {
  max-width: 24ch;
  font-size: clamp(1.9rem, 4vw, 3.25rem); font-weight: 900; line-height: 1.05;
  letter-spacing: -0.02em;
}
.article-wrap { padding: 4.5rem 0; }
.article-wrap .container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-px); }
/* Layout de 2 columnas: contenido alineado al contenedor + sidebar sticky */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; align-items: start; }
.article-main { min-width: 0; }
.article-body { max-width: 68ch; margin: 0; overflow-wrap: break-word; }
.article-body a { overflow-wrap: anywhere; }
.article-body table { display: block; overflow-x: auto; }
.article-body > figure { margin: 2.5rem 0; }
.article-body img { width: 100%; height: auto; display: block; }
.article-body figcaption { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.6rem; text-align: center; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em;
  margin: 2.75rem 0 1rem; padding-top: 1.75rem; border-top: 1px solid var(--border);
}
.article-body h3 { font-size: 1.2rem; font-weight: 800; margin: 2rem 0 0.75rem; }
.article-body p { font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.35rem; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.25rem; }
.article-body li { font-size: 1.05rem; line-height: 1.7; margin-bottom: 0.6rem; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { font-weight: 700; }
.article-body blockquote {
  margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.5rem; border-left: 3px solid var(--accent);
  font-size: 1.15rem; font-style: italic; color: var(--text);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 0.8rem 1rem; text-align: left; }
.article-body thead th { background: var(--bg-alt); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; }
.article-back {
  max-width: 68ch; margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--border);
}
.article-back a { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); text-decoration: none; }

/* FAQ del artÃ­culo (answer-first, para snippets / AI Overviews) */
.article-faq { max-width: 68ch; margin: 3rem 0 0; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.article-faq > h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}
.faq-item { padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q {
  display: flex; gap: 0.6rem; align-items: baseline;
  font-size: 1.08rem; font-weight: 800; line-height: 1.3; margin-bottom: 0.6rem; color: var(--text);
}
.faq-q::before { content: "P."; color: var(--accent); font-weight: 800; flex-shrink: 0; }
.faq-a { font-size: 1rem; line-height: 1.7; color: var(--text-muted); margin: 0; padding-left: 1.5rem; }

/* E-E-A-T byline + TOC + enlaces relacionados (reoptimizaciÃ³n on-page) */
.article-byline {
  margin: 0 0 2.5rem; max-width: 68ch;
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted);
}
.article-byline .who strong { color: var(--text); font-weight: 700; }
.article-byline .badge {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border); padding: 0.3rem 0.6rem;
}
/* Sidebar sticky */
.article-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 1.5rem; }
.article-toc {
  margin: 0;
  background: var(--bg-alt); padding: 1.5rem 1.5rem; border-left: 3px solid var(--accent);
}
.article-toc .t { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tierra); margin-bottom: 0.85rem; }
.article-toc ul { list-style: none; display: grid; gap: 0.55rem; margin: 0; }
.article-toc li { margin: 0; }
.article-toc a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; display: inline-flex; gap: 0.5rem; }
.article-toc a::before { content: "â€”"; color: var(--accent); }
.article-toc a:hover { color: var(--accent); }
.article-body h2[id] { scroll-margin-top: 120px; }
/* Tarjeta CTA en sidebar */
.article-cta-card { background: var(--bg-dark); color: #fff; padding: 1.75rem 1.5rem; }
.article-cta-card .cta-card-q { font-size: 1.1rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.6rem; }
.article-cta-card .cta-card-t { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 1.25rem; }
.article-cta-card .btn { width: 100%; justify-content: center; }

/* SecciÃ³n de artÃ­culos relacionados (tarjetas, ancho completo) */
.article-related-products { padding: 5rem 0; }
.article-related-products .section-label { margin-bottom: 2.5rem; }
.rel-img { position: relative; }
.rel-tag {
  position: absolute; left: 0; top: 0; z-index: 2;
  background: var(--accent); color: #fff;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45rem 0.8rem;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .article-aside { position: static; }
  .article-body, .article-byline, .article-back { max-width: none; }
}

/* â€” Componentes Ãºnicos v2 (servicio de corte, nosotros, contacto) â€” */
.gallery-item, .contact-form input, .contact-form textarea { border-radius: 0 !important; }
.accordion-title { text-transform: uppercase; letter-spacing: -0.005em; }
.accordion-trigger[aria-expanded="true"] { color: var(--accent); }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}



/* About ISO + brand strip refresh */
.about-iso-section {
  padding-inline: 0;
  overflow: clip;
}
.about-iso-section .container {
  max-width: none;
  width: 100%;
  padding-inline: 0;
}
.about-iso-panel {
  --about-iso-gutter: max(var(--container-px), calc((100vw - var(--container-max)) / 2 + var(--container-px)));
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  min-height: clamp(640px, 58vw, 780px);
  padding-block: clamp(3rem, 5vw, 4.5rem);
  padding-inline: var(--about-iso-gutter);
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(180px, 220px);
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  background:
    linear-gradient(90deg, rgba(245, 242, 236, 0.97) 0%, rgba(245, 242, 236, 0.93) 21%, rgba(245, 242, 236, 0.68) 38%, rgba(245, 242, 236, 0.18) 60%, rgba(245, 242, 236, 0.02) 82%),
    url('/assets/images/NEW/About/TM-ISO-IMG-2.jpg') center center/cover no-repeat;
  border-block: 1px solid var(--border);
  border-inline: 0;
}
.about-iso-copy {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  padding-right: clamp(1rem, 2vw, 2rem);
  align-self: start;
}
.about-iso-copy .section-label {
  margin-bottom: 1.1rem;
}
.about-iso-copy .text-heading {
  margin: 0 0 1.1rem;
  max-width: 7ch;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.about-iso-copy .text-lead {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}
.about-iso-copy .feature-list {
  max-width: 25rem;
}
.about-iso-badge-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: start;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 0.75rem;
}
.about-iso-badge {
  width: clamp(170px, 17vw, 220px);
  height: auto;
  object-fit: contain;
}
.about-clients-section {
  background: #fff;
}
.about-clients-section .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 6rem) var(--container-px);
}
.about-clients-header {
  max-width: 50rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.about-clients-header .section-label {
  justify-content: center;
}
.about-clients-header .text-heading {
  margin-bottom: 1rem;
}
.about-clients-track-wrap {
  position: relative;
}
.about-clients-carousel {
  --clients-visible: 4;
  --clients-gap: clamp(1rem, 2.2vw, 1.35rem);
  position: relative;
}
.about-clients-viewport {
  overflow: hidden;
}
.about-clients-track {
  display: flex;
  gap: var(--clients-gap);
  align-items: stretch;
  will-change: transform;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y pinch-zoom;
}
.about-client-slide {
  flex: 0 0 calc((100% - (var(--clients-gap) * (var(--clients-visible) - 1))) / var(--clients-visible));
  min-width: 0;
}
.about-client-card {
  min-height: clamp(160px, 18vw, 220px);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
}
.about-client-logo {
  width: min(100%, 150px);
  max-height: clamp(72px, 8vw, 110px);
  object-fit: contain;
  display: block;
}
.about-clients-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.about-clients-dot {
  width: 0.45rem;
  height: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(28, 29, 30, 0.18);
  transition: background-color 180ms ease, transform 180ms ease;
}
.about-clients-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}
@media (max-width: 960px) {
  .about-clients-carousel {
    --clients-visible: 2;
  }
  .about-iso-panel {
    min-height: 700px;
    grid-template-columns: minmax(0, 28rem) 200px;
    background:
      linear-gradient(180deg, rgba(245, 242, 236, 0.97) 0%, rgba(245, 242, 236, 0.93) 24%, rgba(245, 242, 236, 0.78) 46%, rgba(245, 242, 236, 0.3) 72%, rgba(245, 242, 236, 0.08) 100%),
      url('/assets/images/NEW/About/TM-ISO-IMG-2.jpg') center center/cover no-repeat;
  }
}
@media (max-width: 720px) {
  .about-iso-panel {
    --about-iso-gutter: var(--container-px);
    min-height: auto;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    grid-template-columns: 1fr;
    padding-block: 2rem;
    padding-inline: var(--about-iso-gutter);
    gap: 1.5rem;
    background:
      linear-gradient(180deg, rgba(245, 242, 236, 0.97) 0%, rgba(245, 242, 236, 0.93) 38%, rgba(245, 242, 236, 0.8) 60%, rgba(245, 242, 236, 0.48) 100%),
      url('/assets/images/NEW/About/TM-ISO-IMG-2.jpg') 64% center/cover no-repeat;
  }
  .about-iso-copy {
    max-width: 100%;
    padding-right: 0;
  }
  .about-iso-copy .text-heading {
    max-width: 7.5ch;
    font-size: clamp(2rem, 9vw, 3rem);
  }
  .about-iso-copy .text-lead,
  .about-iso-copy .feature-list {
    max-width: 100%;
  }
  .about-iso-badge-wrap {
    justify-content: flex-start;
    padding-top: 0;
  }
  .about-clients-carousel {
    --clients-visible: 1;
  }
}

.contact-aside {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.contact-aside .img-cover {
  margin-top: auto;
  display: block;
}
@media (max-width: 720px) {
  .contact-aside .img-cover {
    margin-top: 2rem;
  }
}


/* Hero contrast safeguard: light-background heroes on small screens */
.hero-content .section-label.text-invert,
.hero-content .section-label.text-dim-2,
.hero-content .section-label.section-label-compact.text-dim-2,
.hero-content .section-label.section-label-compact.text-invert {
  color: rgba(255,255,255,0.96);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}
.hero-content .section-label.text-invert::before,
.hero-content .section-label.text-dim-2::before,
.hero-content .section-label.section-label-compact.text-dim-2::before,
.hero-content .section-label.section-label-compact.text-invert::before {
  background: var(--accent);
}
.hero-content .section-label.section-label-strong,
.hero-content .text-lead.text-lead-strong {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}
.hero-content .section-label.section-label-strong::before {
  background: var(--accent);
}
@media (max-width: 768px) {
  .hero-sm .hero-overlay {
    background: linear-gradient(180deg, rgba(28,29,30,0.28) 0%, rgba(28,29,30,0.62) 42%, rgba(28,29,30,0.82) 100%);
  }
  .hero-content .section-label.text-invert,
  .hero-content .section-label.text-dim-2,
  .hero-content .section-label.section-label-compact.text-dim-2,
  .hero-content .section-label.section-label-compact.text-invert,
  .hero-content .section-label.section-label-strong,
  .hero-content .text-lead.text-lead-strong {
    color: #fff;
  }
}



