/* ============================================================
   GEA — Grupo Eléctrico Aconcagua · Design mockup 2026
   System: "Cumbre" — navy ink · electric blue accent · warm paper
   References: T1 Energy (restraint, vellum, labels) ·
               Aurora (navy/blue, Inter, circular arrows) ·
               ON.energy (full-bleed statements, contrast)
   ============================================================ */

:root {
  /* Color */
  --paper:      #F6F5F0;   /* warm vellum canvas */
  --white:      #FFFFFF;   /* elevated surfaces */
  --ink:        #0A1C2E;   /* primary ink — deep navy */
  --ink-deep:   #06121F;   /* darkest surfaces */
  --ink-soft:   #0E2740;   /* elevated dark surfaces */
  --slate:      #5C6B7A;   /* secondary text */
  --slate-light:#8FA6BC;   /* muted text on dark */
  --mist-warm:  #E5E2D8;   /* hairlines on paper */
  --mist-cool:  #DFE4EB;   /* hairlines on white */
  --accent:     #0A6BF0;   /* signal blue — action accent */
  --accent-deep:#0857C9;
  --cyan:       #19D9DC;   /* gradient endpoint only */
  --brand-yellow:#FFDE00;  /* logo line — brand moments only */
  --grad: linear-gradient(90deg, #0A6BF0, #19D9DC);

  /* Glass (nav + hero, T1-style floating pills — borderless) */
  --glass-bg: rgba(10, 16, 24, 0.5);
  --glass-bg-strong: rgba(10, 16, 24, 0.68);
  --glass-blur: blur(16px) saturate(1.3);

  /* Type */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
  --section: clamp(88px, 12vw, 136px);

  /* Radius */
  --r-card: 16px;
  --r-img: 22px;
  --r-pill: 999px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* gana a cualquier display de autor */
.no-quote [data-quote-ui] { display: none !important; }   /* cotizador apagado: site-config.js */

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'ss01' on, 'cv11' on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--accent); color: #fff; }

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

section, #ubicaciones { scroll-margin-top: 84px; }

/* ============================================================
   TYPE SYSTEM
   ============================================================ */

.display {
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: #fff;
}
.display em { font-style: normal; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heading {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.heading--sm { font-size: clamp(28px, 3.4vw, 40px); }
#productos .heading { font-size: clamp(30px, 3.2vw, 46px); }   /* mismo tamaño que el titular de servicios */
.heading--light { color: #fff; }

.statement {
  font-size: clamp(27px, 3.4vw, 42px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 22px 0 30px;
}
.statement .w {
  color: var(--mist-warm);
  transition: color 0.35s ease;
}
.statement .w.is-lit { color: var(--ink); }

/* Section label — T1-style square marker */
.label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}
.label::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: 0.42em;
  background: var(--accent);
  flex-shrink: 0;
}
.label--light { color: rgba(255, 255, 255, 0.92); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--full { width: 100%; justify-content: center; }

.btn__arrow { transition: transform 0.25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); }

.btn--ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--ghost-light:hover { border-color: #fff; }

/* Glass buttons — hero over video (borderless) */
.btn--glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
}
.btn--glass:hover { background: var(--glass-bg-strong); }

.btn--glass-soft {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
}
.btn--glass-soft:hover { background: rgba(255, 255, 255, 0.24); }

/* Circular arrow — Aurora's single round affordance */
.circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mist-cool);
  border-radius: 50%;
  font-size: 17px;
  color: var(--ink);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.link-arrow span { transition: transform 0.25s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 24px 0;
  color: #fff;
  pointer-events: none;
  transition: padding 0.35s ease;
}
.nav.is-scrolled { padding: 12px 0; }
/* Páginas de tienda (catálogo, producto, cotización): al hacer scroll el logo
   se compacta para no tapar los filtros fijos de la columna lateral */
.nav__logo, .nav__logoimg, .nav__brand { transition: height 0.3s ease, width 0.3s ease, padding 0.3s ease; }
.woocommerce-page .nav.is-scrolled .nav__logo { padding: 6px 14px; }
.woocommerce-page .nav.is-scrolled .nav__logoimg { height: 52px; }
.woocommerce-page .nav.is-scrolled .nav__brand { width: clamp(84px, 7vw, 130px); height: clamp(36px, 3.4vw, 60px); }
.nav a, .nav button { pointer-events: auto; }

/* Full-bleed: nav spans the viewport with a small side margin */
.nav__inner {
  width: calc(100% - 48px);
  margin-inline: auto;
  display: flex;
  align-items: flex-start;   /* logo y menú alineados por arriba; alturas libres */
  justify-content: space-between;
  gap: 24px;
}

/* Floating glass chip — real logo, top-left (the logo art carries a
   white wordmark: it needs a dark surface) */
.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;             /* nunca cede ancho al menú: así el logo no se aplasta */
  padding: 8px 16px;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  pointer-events: auto;
}
/* Escala fluida y siempre proporcional: el alto manda, el ancho se deriva */
.nav__logoimg {
  display: block;
  height: clamp(64px, 6.1vw, 88px);
  width: auto;
  max-width: none;
  flex-shrink: 0;
}
.footer__brand .nav__logo { padding: 10px 18px; }
/* Inicio: los logotipos de las 4 empresas del grupo, cada uno en una caja del
   mismo tamaño (contain), para que pesen igual aunque sus proporciones cambien */
.nav__logo--group { gap: clamp(12px, 1.3vw, 22px); padding: 10px clamp(14px, 1.4vw, 20px); }
.nav__brand {
  display: block;
  flex-shrink: 0;
  width: clamp(118px, 9.6vw, 180px);
  height: clamp(52px, 4.7vw, 84px);
  object-fit: contain;
}
.footer__brand .nav__logoimg { height: clamp(80px, 6.8vw, 96px); }

/* Floating glass pill — menu, top-right (T1-style) */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.nav__links a {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 16px;
  border-radius: 10px;
  opacity: 0.92;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.nav__links a:hover { opacity: 1; background: rgba(255, 255, 255, 0.1); }

.nav__links a.nav__cta {
  margin-left: 6px;
  background: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
}
.nav__links a.nav__cta:hover { background: var(--accent-deep); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 56px;
  height: 56px;
  align-items: center;
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.nav__burger.is-open span:first-child { transform: translateY(3.8px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.mobile-menu__links a {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #fff;
}
.mobile-menu__links .btn { font-size: 16px; font-weight: 500; margin-top: 12px; }
.mobile-menu__foot {
  position: absolute;
  bottom: 32px;
  left: 24px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--ink-deep);
  color: #fff;
  overflow: hidden;
}

/* Background video (real plant footage) — no overlay, T1-style */
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full-bleed hero content — edge-anchored like the nav */
.hero__bottom {
  position: relative;
  z-index: 2;
  width: calc(100% - 48px);
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-top: 140px;
  padding-bottom: 42px;
}

/* Línea de apoyo bajo el titular: mismo tono display, menor escala */
.hero__tagline {
  margin-top: 18px;
  font-size: clamp(17px, 1.9vw, 26px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}


.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ============================================================
   STATS STRIP (below hero)
   ============================================================ */

.statsbar {
  background: var(--paper);
  border-bottom: 1px solid var(--mist-warm);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 26px 24px 28px;
  border-left: 1px solid var(--mist-warm);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  display: block;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */

.section { padding: var(--section) 0; }
.section--tint { background: var(--white); border-block: 1px solid var(--mist-warm); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 64px;
}
.section__head .label { margin-bottom: 18px; }
.section__intro {
  max-width: 380px;
  font-size: 16px;
  color: var(--slate);
  padding-bottom: 6px;
}
.section__intro--left { max-width: 420px; margin-top: 24px; }

.section__foot {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* ============================================================
   NOSOTROS — split
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.split--top { align-items: flex-start; }

.split__body { max-width: 480px; display: grid; gap: 18px; color: var(--slate); }
.split__body .link-arrow { margin-top: 8px; }

.split__visual { position: relative; }

.visual-card {
  position: relative;
  border-radius: var(--r-img);
  overflow: hidden;
}
.visual-card > svg { width: 100%; height: auto; }

.visual-card__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 20px;
}
.visual-card__badge-label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.visual-card__badge-value {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ============================================================
   PRODUCTOS — slider (T1-style: hover anima el radio)
   ============================================================ */

.slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-left: max(24px, calc((100vw - var(--container)) / 2));
  padding-right: 24px;
  scroll-padding-left: max(24px, calc((100vw - var(--container)) / 2));
  scrollbar-width: none;
  cursor: grab;
}
.slider::-webkit-scrollbar { display: none; height: 0; }
.slider.is-grabbing {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}

.slide {
  flex: 0 0 clamp(260px, 27vw, 360px);
  scroll-snap-align: start;
}

.slide__media {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  transform: translateZ(0);
  transition: border-radius 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide__media img,
.slide__media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-drag: none;
  user-select: none;
}
/* Foto de producto (recorte sobre blanco o transparente): mosaico cálido,
   el blanco se funde con el fondo y el producto queda centrado */
/* Catálogo del inicio: botón bajo el título y las 2 bases (materiales
   eléctricos / prefabricados de concreto), compacto para que la sección quepa
   en una pantalla (la portada también depende del alto de la ventana) */
.section__cta { margin-top: 24px; white-space: nowrap; }
.section__aside { display: grid; gap: 22px; }
#productos { padding: clamp(56px, 7vw, 96px) 0; }
#productos .section__head { margin-bottom: clamp(24px, 3vw, 36px); }
.bases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.base {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--mist-warm);
  border-radius: var(--r-card);
  color: inherit;
  transition: border-color 0.25s ease;
}
.base__media { position: relative; display: block; height: clamp(170px, 32vh, 400px); overflow: hidden; }
/* título y número de productos sobre la portada, con un degradado para leerlos */
.base__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 28, 46, 0) 40%, rgba(10, 28, 46, 0.78) 100%);
  pointer-events: none;
}
.base__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-drag: none;
  user-select: none;
}
.base__body { display: grid; gap: 14px; padding: clamp(18px, 1.8vw, 26px) clamp(20px, 2vw, 28px) clamp(20px, 2vw, 26px); }
.base__head {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 0 clamp(20px, 2vw, 28px) clamp(16px, 1.6vw, 22px);
}
.base__title { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.015em; color: #fff; }
.base__count { font-size: 13.5px; color: rgba(255, 255, 255, 0.82); }
/* nombres de categorías que se alternan con un fade (assets/js/bases.js);
   el fade es solo de los nombres, la línea de arriba se queda */
.base__ticker { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--mist-warm); }
.base__ticker span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--slate);
  transition: opacity 0.38s ease, transform 0.38s ease;
}
.base__ticker.is-out span { opacity: 0; transform: translateY(6px); }
.base__go { font-size: 14.5px; font-weight: 500; color: var(--accent); }
.base__go span { display: inline-block; transition: transform 0.25s ease; }
.base:hover { border-color: var(--ink); }
.base:hover .base__media img { transform: scale(1.05); }
.base:hover .base__go span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .base__media img, .base__ticker span { transition: none; }
}
.slide__media--product { background: var(--paper); }
.slide__media--product img { object-fit: contain; padding: 14%; mix-blend-mode: multiply; }
.slide:hover .slide__media { border-radius: 80px; }
.slide:hover .slide__media img,
.slide:hover .slide__media svg { transform: scale(1.06); }

.slide__num {
  display: block;
  margin: 20px 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--slate);
}
.slide h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  transition: color 0.25s ease;
}
.slide:hover h3 { color: var(--accent); }
.slide p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate);
}

.slider__nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}
.slider__nav .circle-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ============================================================
   SUMMIT — full-bleed statement
   ============================================================ */

.summit {
  position: relative;
  padding: clamp(120px, 16vw, 200px) 0;
  background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.summit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.8;
}

.summit__ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(150px, 26vw, 380px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.045);
  user-select: none;
  white-space: nowrap;
}

.summit__content { position: relative; z-index: 2; display: grid; justify-items: center; }
.summit__title {
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 20px 0 22px;
}
.summit__body {
  max-width: 520px;
  color: var(--slate-light);
  margin-bottom: 36px;
}

/* ============================================================
   SERVICIOS — numbered rows
   ============================================================ */

.services { border-top: 1px solid var(--mist-warm); }

.service {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: 40px 0;
  border-bottom: 1px solid var(--mist-warm);
  transition: padding 0.3s ease;
}

.service__num {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.service__text h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 300;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.service__text p {
  max-width: 640px;
  font-size: 15.5px;
  color: var(--slate);
}

.service:hover .circle-btn {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: rotate(-45deg);
}

/* ============================================================
   VALORES — accordion
   ============================================================ */

.accordion { border-top: 1px solid var(--mist-cool); }

.accordion__item { border-bottom: 1px solid var(--mist-cool); }

.accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
}
.accordion__head span {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.accordion__toggle {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--mist-cool);
  border-radius: 50%;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s ease;
}
.accordion__toggle::before,
.accordion__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: background 0.25s ease;
}
.accordion__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.accordion__item.is-open .accordion__toggle {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}
.accordion__item.is-open .accordion__toggle::before,
.accordion__item.is-open .accordion__toggle::after { background: #fff; }

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion__body p {
  padding: 0 56px 26px 0;
  font-size: 15.5px;
  color: var(--slate);
  max-width: 560px;
}

/* ============================================================
   CERTIFICACIONES
   ============================================================ */

.cert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  background: var(--white);
  border: 1px solid var(--mist-warm);
  border-radius: var(--r-img);
  padding: clamp(32px, 5vw, 64px);
}

.cert__text .label { margin-bottom: 14px; }
.cert__text .heading { margin-bottom: 18px; }
.cert__text p { max-width: 460px; color: var(--slate); font-size: 16px; }
.cert__text strong { color: var(--ink); font-weight: 500; }
.cert__text .link-arrow { margin-top: 18px; }


/* ============================================================
   SERVICIOS — bloque fotográfico redondeado, sin overlay;
   titular sobre el cielo y tarjetas de vidrio al pie
   ============================================================ */

.services { padding: 24px; background: var(--white); }
/* banda blanca continua: sin hairlines entre catálogo, servicios y calidad */
#productos { border-bottom: 0; }
#calidad { border-top: 0; }
#servicios { border-top: 0; }

.services__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: min(92vh, 940px);
  padding: clamp(32px, 4vw, 56px);
  border-radius: 40px;
  overflow: hidden;
  background: url('../img/services-bg.jpg') center / cover no-repeat;
  color: #fff;
}

/* El titular va dentro de un panel de vidrio (mismo glass que las tarjetas):
   legible sobre cualquier zona de la foto sin oscurecer toda la imagen */
.services__head {
  align-self: flex-start;
  max-width: 920px;
  padding: clamp(26px, 3vw, 40px) clamp(28px, 3vw, 44px) clamp(28px, 3vw, 40px);
  border-radius: 28px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.services__title {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 18px 0 18px;
}
.services__lead {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 26px;
}

.services__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Tarjeta de vidrio — el mismo glass del menú principal */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 24px;
  padding: 26px 28px 28px;
  transition: background 0.3s ease;
}
.glass-card:hover { background: var(--glass-bg-strong); }
.glass-card .label { margin-bottom: 16px; font-size: clamp(14px, 1.05vw, 16px); }
.glass-card h3 {
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.glass-card p:not(.label) { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.glass-card__cta { margin-top: 22px; padding: 12px 22px; font-size: 14px; white-space: nowrap; }
.services__head .services__lead:last-child { margin-bottom: 0; }   /* el botón ahora vive en la tarjeta de ingeniería */

/* ============================================================
   CALIDAD Y GARANTÍA — valores · experiencia · certificación
   ============================================================ */

.quality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.quality__values .label { margin-bottom: 18px; }

.facts {
  list-style: none;
  border-top: 1px solid var(--mist-cool);
  margin-bottom: 20px;
}
.facts li {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--mist-cool);
}
.facts strong { font-size: 22px; font-weight: 300; letter-spacing: -0.01em; }
.facts span { font-size: 14.5px; line-height: 1.5; color: var(--slate); }

/* Variante en columna (dentro de .quality__proof). Especificidad alta a
   propósito: las reglas responsive de .cert más abajo no deben reabrirla
   en dos columnas. */
.quality__proof .cert--column {
  grid-template-columns: 1fr;
  gap: 22px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper);
}
.quality__proof .cert--column .heading { font-size: clamp(24px, 2.4vw, 30px); }
.quality__proof .cert--column .cert__text p { max-width: none; }

/* Sellos de certificación: la evidencia va debajo del mensaje.
   Sellos oficiales a la misma altura. */
.cert__seals {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--mist-cool);
}
.cert__seals li { display: grid; justify-items: start; gap: 12px; }
.seal-logo {
  display: block;
  height: 88px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.seal__caption { font-size: 13.5px; line-height: 1.45; color: var(--slate); }
.seal__caption strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   TESTIMONIOS — slider de citas (misma mecánica que el catálogo)
   ============================================================ */

.quote-card {
  flex: 0 0 clamp(300px, 36vw, 520px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--mist-warm);
  border-radius: var(--r-card);
  padding: 34px 32px 30px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.quote-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.quote-card__mark {
  font-size: 52px;
  line-height: 0.6;
  font-weight: 300;
  color: var(--accent);
}
.quote-card blockquote {
  flex: 1;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.quote-card footer {
  display: grid;
  gap: 3px;
  padding-top: 20px;
  border-top: 1px solid var(--mist-cool);
}
.quote-card footer strong { font-size: 14.5px; font-weight: 500; }
.quote-card footer span {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate);
}

/* ============================================================
   CONTACTO
   ============================================================ */

.section--contact {
  position: relative;
  color: #fff;
  overflow: hidden;
  /* el Aconcagua detrás: navy sólido bajo el texto (izquierda), la cumbre
     se deja ver hacia la derecha, detrás del formulario */
  background:
    linear-gradient(to top right, rgba(10, 28, 46, 0.97) 0%, rgba(10, 28, 46, 0.88) 32%, rgba(10, 28, 46, 0.4) 62%, rgba(10, 28, 46, 0.1) 100%),
    linear-gradient(90deg, rgba(10, 28, 46, 0.5) 0%, rgba(10, 28, 46, 0.3) 34%, rgba(10, 28, 46, 0) 58%),
    url('../img/mountain.jpg') center 38% / cover no-repeat;
}

.split--contact { align-items: center; position: relative; z-index: 2; }  /* formulario centrado verticalmente */

.contact__info .heading { margin: 20px 0 18px; }
.contact__lead { max-width: 420px; color: rgba(255, 255, 255, 0.84); margin-bottom: 44px; }

.contact__rows { list-style: none; display: grid; gap: 28px; }
.contact__rows li { border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 20px; }
.contact__label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 6px;
}
.contact__rows a { font-size: 17px; font-weight: 400; }
.contact__rows a:hover { color: var(--cyan); }
.contact__rows address { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }

/* Formulario: panel de vidrio (mismo glass del menú) sobre la montaña, compacto */
.contact__form {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  border-radius: 20px;
  padding: clamp(22px, 2.6vw, 32px);
  display: grid;
  gap: 12px;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field { display: grid; gap: 6px; }
.field span {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
  resize: vertical;
}
.field select {
  font: inherit;
  font-size: 14px;
  color: #fff;
  width: 100%;
  padding: 10px 38px 10px 13px;
  background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23fff' stroke-opacity='.7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field select:has(option[value=""]:checked) { color: rgba(255, 255, 255, 0.45); }
.field select option { color: var(--ink); background: var(--white); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.field select:focus { outline: none; border-color: var(--accent); background-color: rgba(255, 255, 255, 0.12); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.contact__form .btn { padding: 12px 22px; font-size: 14px; margin-top: 4px; }

/* Sucursales: cuadrícula de vidrio bajo el formulario, sobre la montaña */
.contact__branches { position: relative; z-index: 2; margin-top: clamp(36px, 4vw, 56px); }
.contact__branches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.contact__branches-head .slider__nav { margin-top: 0; }
/* Flechas sobre fondo oscuro */
.slider__nav--light .circle-btn { background: #fff; border-color: #fff; color: var(--ink); }
.slider__nav--light .circle-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Desvanecido en los extremos del carrusel. main.js escribe --sl / --sr
   (px recorridos y por recorrer): el borde izquierdo aparece al empezar a
   avanzar y el derecho se retira al llegar al final, sin cortar tarjetas. */
.slider--fade {
  --fade: clamp(48px, 9vw, 150px);
  --fade-l: min(var(--fade), calc(var(--sl, 0) * 1px));
  --fade-r: min(var(--fade), calc(var(--sr, 9999) * 1px));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}

/* Carrusel: .slider aporta scroll-snap, arrastre e inercia (main.js) */
.branches { list-style: none; gap: 12px; }
.branch {
  flex: 0 0 clamp(260px, 23vw, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
/* Logotipo de cada empresa del grupo, siempre sobre fondo oscuro. GEA BCN y
   Sistelec vienen pensados para fondo claro: se aclaran sin perder su color. */
.brand-logo { display: block; align-self: flex-start; height: 34px; width: auto; max-width: 170px; object-fit: contain; object-position: left center; }
.brand-logo--stacked { height: 46px; }   /* GEA: texto en tres líneas, necesita más alto para pesar igual */
.brand-logo--sistelec { filter: brightness(1.9); }
.brand-logo--bcn { filter: brightness(2.2); }
.branch .brand-logo { margin-bottom: 8px; }
.branch h3 { font-size: 20px; font-weight: 400; letter-spacing: -0.01em; }
.branch address { font-style: normal; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.74); }
.branch__mail { font-size: 14px; color: rgba(255, 255, 255, 0.9); overflow-wrap: anywhere; }
.branch__mail:hover { color: var(--cyan); }
/* Teléfonos completos con lada, uno por línea, en dos columnas */
.branch__phones {
  margin-top: auto;
  padding-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 2px 16px;
  font-size: 14px;
  line-height: 1.6;
}
.branch__phones a { color: #fff; white-space: nowrap; }
.branch__phones a:hover { color: var(--cyan); }

/* Mapa de ubicaciones (Leaflet) — mismo radio y ritmo que las tarjetas */
.locations-map {
  height: clamp(360px, 52vh, 560px);
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--mist-warm);
  font-family: inherit;
}
.locations-map .leaflet-control-attribution { font-size: 10.5px; }
.map-pin {
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(10, 107, 240, 0.22);
}
.locations-map .leaflet-popup-content-wrapper { border-radius: 14px; }
.locations-map .leaflet-popup-content { margin: 14px 16px; font: inherit; }
.map-popup { display: grid; gap: 4px; color: var(--ink); }
.map-popup__logo { margin-bottom: 8px; padding: 12px 14px; border-radius: 10px; background: var(--ink); }
.map-popup__logo .brand-logo { height: 30px; }
.map-popup__logo .brand-logo--stacked { height: 40px; }
.map-popup strong { font-size: 15px; font-weight: 600; }
.map-popup__city { font-size: 12.5px; color: var(--slate); }
.map-popup address { font-style: normal; font-size: 13px; line-height: 1.45; color: var(--slate); margin-top: 6px; }
.map-popup p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--slate); }
.map-popup p { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 14px; }
.map-popup a { color: var(--accent); white-space: nowrap; }
.map-popup .branch__mail { margin-top: 4px; font-size: 13px; color: var(--accent); white-space: normal; }

.contact__note {
  font-size: 11.5px;
  color: var(--slate-light);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--ink-deep);
  color: #fff;
  padding-bottom: 36px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding: 56px 0 64px;
}

.footer__brand p {
  margin-top: 22px;
  max-width: 300px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate-light);
}
.footer__brand p.footer__tagline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--brand-yellow);
  opacity: 0.85;
}
.footer__brand .footer__tagline + p { margin-top: 14px; }

.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 8px;
}
.footer__col a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
  width: fit-content;
}
.footer__col a:hover { color: var(--cyan); }
.footer__col a.footer__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; color: #fff; font-weight: 500; }
.footer__more span { transition: transform 0.25s ease; }
.footer__more:hover span { transform: translateX(4px); }
.footer__col p { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }

/* Empresas del grupo: fila discreta en todas las páginas */
.footer__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 44px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__group h4 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate-light);
}
.footer__group ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.footer__group .brand-logo { height: 28px; opacity: 0.8; transition: opacity 0.2s ease; }
.footer__group .brand-logo--stacked { height: 40px; }
.footer__group li:hover .brand-logo { opacity: 1; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  font-size: 13px;
  color: var(--slate-light);
}
.footer__legal { display: flex; align-items: center; gap: 28px; }
.footer__legal a:hover { color: var(--cyan); }

/* ============================================================
   EMPRESAS DEL GRUPO — GEA al frente; Multipren y Sistelec respaldan
   ============================================================ */

.section--group { background: var(--ink-deep); color: #fff; }
.group {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.group__intro .heading { margin: 20px 0 18px; }
.group__lead { max-width: 460px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.8); }

.group__brands { list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.group__brand {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.group__brand .brand-logo { height: 40px; max-width: 190px; }
.group__brand .brand-logo--stacked { height: 56px; }
.group__brand--main .brand-logo--stacked { height: 74px; }   /* la marca principal pesa más */
.group__brand p { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.group__brand p span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--slate-light); }

/* ============================================================
   GROWTH — historia de crecimiento en 3D (blueprint + scroll)
   ============================================================ */

.growth { padding: 0; }

.growth__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.growth__hint.is-visible { opacity: 1; }
.growth__hint span { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

.growth__scroller { position: relative; height: 500vh; }

.growth__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.growth__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Mapa: etiqueta con el logotipo de cada empresa sobre su punto (growth.js
   las reubica en cada cuadro). Los logotipos son claros: fondo de tinta. */
.growth__pins { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.2s linear; }
.growth__pin { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.growth__pin-tag {
  position: absolute;
  left: 0;
  display: grid;
  place-items: center;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--ink);
  box-shadow: 0 6px 16px rgba(10, 28, 46, 0.18);
  white-space: nowrap;
}
.growth__pin-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.growth__pin--top .growth__pin-tag { bottom: 14px; transform: translateX(-50%); }
.growth__pin--top .growth__pin-tag::after { bottom: -4px; }
.growth__pin--bottom .growth__pin-tag { top: 14px; transform: translateX(-50%); }
.growth__pin--bottom .growth__pin-tag::after { top: -4px; }
.growth__pin--right .growth__pin-tag { left: 14px; top: 0; transform: translateY(-50%); }
.growth__pin--right .growth__pin-tag::after { left: -4px; top: 50%; transform: translateY(-50%) rotate(45deg); }
.growth__pin-tag img { display: block; height: 30px; width: auto; max-width: 112px; object-fit: contain; }
@media (max-width: 640px) {
  .growth__pin-tag { padding: 4px 6px; border-radius: 7px; }
  .growth__pin-tag img { height: 18px; max-width: 66px; }
  .growth__pin--top .growth__pin-tag { bottom: 10px; }
  .growth__pin--bottom .growth__pin-tag { top: 10px; }
  .growth__pin--right .growth__pin-tag { left: 10px; }
}

/* Texto de cada etapa — abajo a la izquierda, alineado al contenedor */
.growth__slides {
  position: absolute;
  left: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 11vh;
  width: min(460px, 38vw);
  display: grid;
  grid-template-rows: auto auto;
  align-items: start;   /* todas las etapas arrancan justo bajo el indicador */
}
/* Las etapas comparten la misma celda; solo la activa es visible */
.growth__slide {
  grid-area: 2 / 1;
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.growth__slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.growth__slide .label { margin-bottom: 14px; }
.growth__slide h3 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.growth__slide p:not(.label) { font-size: 15.5px; line-height: 1.6; color: var(--slate); }
.growth__links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }

/* Slide 0 — la frase que abre la sección (fuera del grid, anclada abajo) */
.growth__slide--intro { position: absolute; left: 0; bottom: 16vh; width: min(720px, 56vw); }
.growth__slide--intro .statement { margin: 14px 0 20px; }
.growth__lede {
  max-width: 560px;
  margin-bottom: 26px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--slate);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.growth__lede.is-visible { opacity: 1; }
.growth__slide--intro .growth__kicker {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.growth__slide--intro .growth__kicker::before { width: 7px; height: 7px; margin-top: 13px; }

/* Indicador de etapas — justo encima del título de cada etapa;
   aparece al entrar a la primera etapa */
.growth__nav {
  grid-area: 1 / 1;
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.growth__nav.is-visible { opacity: 1; transform: none; }
.growth__nav li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.55;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.growth__nav li::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--slate);
  transition: width 0.3s ease, background 0.3s ease;
}
/* Etapa activa: mismo degradado que «Seguimos rumbo a la cima» */
.growth__nav li.is-active {
  opacity: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.growth__nav li.is-active::before { width: 44px; background: var(--accent); }

/* Sin WebGL (o sin CDN): las etapas se apilan como texto normal */
.growth--static .growth__scroller { height: auto; }
.growth--static .growth__stage { position: static; height: auto; overflow: visible; }
.growth--static .growth__canvas,
.growth--static .growth__pins,
.growth--static .growth__nav { display: none; }
.growth--static .growth__slides { position: static; width: auto; padding: 0 24px 64px; display: grid; gap: 48px; }
.growth--static .growth__slide { position: static; opacity: 1; transform: none; pointer-events: auto; max-width: 520px; }
.growth--static .statement .w { color: var(--ink); }
.growth--static .growth__hint { display: none; }
.growth--static .growth__lede { opacity: 1; }

@media (max-width: 900px) {
  .growth__nav { display: none; }
  .growth__slides { bottom: 6vh; width: calc(100vw - 48px); }
  .growth__slide {
    padding: 20px 0 0;
    background: linear-gradient(to top, var(--paper) 78%, transparent);
  }
  .growth__slide h3 { font-size: clamp(24px, 6vw, 30px); }
  .growth__slide--intro { width: 100%; bottom: 0; }
  .growth__slide--intro .statement { font-size: clamp(24px, 6.5vw, 32px); }
}

/* ============================================================
   CATÁLOGO — listado y detalle con estructura WooCommerce
   ============================================================ */

.btn--ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.nav__links a.is-current { background: rgba(255, 255, 255, 0.1); opacity: 1; }
.slide__link { display: block; color: inherit; }

.shop { padding: 0 0 var(--section); }

/* Banner de página: bloque redondeado con la montaña (catálogo, ficha, cotización) */
.page-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin: 12px 12px clamp(36px, 4vw, 56px);   /* margen corto: el menú y el logo quedan dentro */
  min-height: min(34vh, 320px);
  padding: clamp(132px, calc(6.1vw + 60px), 150px) clamp(28px, 4vw, 48px) clamp(24px, 3vw, 36px);   /* sigue al alto del logo */
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(to top right, rgba(10, 28, 46, 0.95) 0%, rgba(10, 28, 46, 0.8) 45%, rgba(10, 28, 46, 0.35) 100%),
    url('../img/mountain.jpg') center 35% / cover no-repeat;
}
.page-banner__inner { max-width: 820px; }
.page-banner__title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
}
.page-banner__lead { max-width: 560px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.page-banner .woocommerce-breadcrumb { margin-bottom: 14px; color: rgba(255, 255, 255, 0.7); }
.page-banner .woocommerce-breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.page-banner .woocommerce-breadcrumb a:hover { color: #fff; }

.shop__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

/* Filtros (widgets) */
.widget-area { position: sticky; top: 110px; display: grid; gap: 30px; }
.widget h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
}
.woocommerce-product-search { position: relative; }
.woocommerce-product-search .search-field {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 42px 12px 14px;
  border: 1px solid var(--mist-warm);
  border-radius: 12px;
  background: var(--white);
}
.woocommerce-product-search .search-field:focus { outline: none; border-color: var(--accent); }
.woocommerce-product-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--slate);
}
.product-categories { list-style: none; display: grid; gap: 2px; }
.product-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  transition: background 0.2s ease, color 0.2s ease;
}
.product-categories a:hover { background: var(--white); }
.product-categories a.is-active { background: var(--ink); color: #fff; }
.product-categories .count { font-size: 12px; color: var(--slate); }
.product-categories a.is-active .count { color: rgba(255, 255, 255, 0.7); }
.shop__clear { font-size: 13px; font-weight: 500; color: var(--accent); }

/* Barra de resultados + orden */
.shop__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--mist-warm);
}
.woocommerce-result-count { font-size: 14px; color: var(--slate); }
.woocommerce-ordering select {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 9px 36px 9px 12px;
  border: 1px solid var(--mist-warm);
  border-radius: 10px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235C6B7A' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
}

/* Retícula de productos (ul.products / li.product) */
ul.products {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 18px;
}
ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
li.product { display: flex; flex-direction: column; }
li.product .woocommerce-LoopProduct-link { display: block; color: inherit; flex: 1; }
.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  transform: translateZ(0);
  transition: border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
li.product:hover .product__media { border-radius: 32px; }
li.product:hover .product__media img { transform: scale(1.05); }
.product__cat {
  display: block;
  margin: 16px 0 6px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate);
}
.woocommerce-loop-product__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color 0.2s ease;
}
li.product:hover .woocommerce-loop-product__title { color: var(--accent); }
.product__excerpt { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--slate); }
li.product .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
li.product .button span { transition: transform 0.25s ease; }
li.product:hover .button span { transform: translateX(4px); }
.shop__empty { padding: 48px 0; color: var(--slate); }
.shop__empty a { color: var(--accent); font-weight: 500; }
.shop__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--mist-warm);
  border-radius: var(--r-card);
}
.shop__cta p { max-width: 520px; color: var(--slate); font-size: 15.5px; }

/* Detalle (single-product) */
.woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 32px;
}
.woocommerce-breadcrumb a { color: var(--slate); }
.woocommerce-breadcrumb a:hover { color: var(--accent); }
.single-product .product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.woocommerce-product-gallery { display: grid; gap: 12px; }
.woocommerce-product-gallery__image { aspect-ratio: 4 / 3; border-radius: var(--r-img); overflow: hidden; background: var(--mist-warm); }
.woocommerce-product-gallery__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flex-control-thumbs { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flex-control-thumbs li {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.flex-control-thumbs li.is-active,
.flex-control-thumbs li:hover { opacity: 1; border-color: var(--ink); }
.flex-control-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

.summary .label { margin-bottom: 16px; }
.product_title {
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.woocommerce-product-details__short-description { font-size: 16.5px; color: var(--slate); }
.product__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.product__tags li {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--mist-warm);
  background: var(--white);
}
.gea-quote {
  display: grid;
  gap: 12px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--mist-warm);
  border-radius: var(--r-card);
}
.gea-quote__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gea-quote__note { font-size: 13px; line-height: 1.5; color: var(--slate); }
.gea-quote__models { justify-self: start; }
.product_meta { margin-top: 22px; display: grid; gap: 6px; font-size: 13px; color: var(--slate); }
.product_meta a, .product_meta > span > span { color: var(--ink); font-weight: 500; }

.woocommerce-tabs { margin-top: clamp(56px, 7vw, 88px); }
.wc-tabs { list-style: none; display: flex; gap: 6px; border-bottom: 1px solid var(--mist-warm); overflow-x: auto; }
.wc-tabs a {
  display: block;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.wc-tabs li.active a { color: var(--ink); border-color: var(--ink); }
.woocommerce-Tabs-panel { padding: 32px 0 8px; max-width: 760px; color: var(--slate); font-size: 16px; display: grid; gap: 14px; }
.woocommerce-Tabs-panel h2 { font-size: 22px; font-weight: 400; color: var(--ink); }
.shop_attributes { width: 100%; border-collapse: collapse; font-size: 15px; }
.shop_attributes th,
.shop_attributes td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--mist-warm); vertical-align: top; }
.shop_attributes th { width: 220px; font-weight: 500; color: var(--ink); padding-right: 16px; }
/* Modelos de la línea (variaciones) con su ficha técnica */
.gea-models { margin-top: clamp(56px, 7vw, 88px); scroll-margin-top: 110px; }
.gea-models__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--mist-warm);
}
.gea-models__head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 300; letter-spacing: -0.02em; }
.gea-models__head p { font-size: 14px; color: var(--slate); }
.gea-models__group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 34px 0 6px;
  font-size: 18px;
  font-weight: 500;
}
.gea-models__group span { font-size: 13px; font-weight: 400; color: var(--slate); }
.gea-models__table { width: 100%; border-collapse: collapse; }
.gea-models__table th {
  text-align: left;
  padding: 14px 16px 10px 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid var(--mist-warm);
}
.gea-models__table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--mist-warm); vertical-align: middle; font-size: 14.5px; }
.gea-models__row { transition: background 0.2s ease; }
.gea-models__row:hover { background: rgba(10, 107, 240, 0.03); }
.gea-models__row.is-target { background: rgba(10, 107, 240, 0.08); }
.gea-models__model { display: flex; align-items: center; gap: 14px; min-width: 240px; }
.gea-models__model img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--mist-warm);
}
.gea-models__model span { font-weight: 500; color: var(--ink); line-height: 1.35; }
.gea-models__specs dl { display: grid; gap: 3px; }
.gea-models__specs dl div { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 13.5px; line-height: 1.45; }
.gea-models__specs dt { color: var(--slate); }
.gea-models__specs dt::after { content: ':'; }
.gea-models__specs dd { color: var(--ink); }
.gea-models__none { color: var(--slate); font-size: 13.5px; }
.gea-models__ficha { white-space: nowrap; }
.gea-models__ficha a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--mist-cool);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.gea-models__ficha a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.gea-models__action { width: 1%; text-align: right; padding-right: 0 !important; }
.gea-models__add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease;
}
.gea-models__add:hover { background: var(--accent-deep); }
.gea-models__add.is-added { background: var(--ink); }

/* Categorías del Excel y, dentro de la elegida, sus subcategorías.
   En escritorio el panel está siempre abierto; en móvil se pliega. */
.widget_product_categories summary { list-style: none; cursor: default; }
.widget_product_categories summary::-webkit-details-marker { display: none; }
.widget__current { display: none; }
@media (max-width: 900px) {
  .widget_product_categories { border: 1px solid var(--mist-warm); border-radius: 14px; background: var(--white); }
  .widget_product_categories summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
  }
  .widget_product_categories summary h3 { margin: 0; }
  .widget__current { display: block; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: right; }
  .widget_product_categories summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--slate);
    border-bottom: 1.5px solid var(--slate);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
  }
  .widget_product_categories[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .widget_product_categories .product-categories { padding: 0 8px 10px; }
}

/* Base (materiales eléctricos / prefabricados) › categorías › subcategorías */
.product-categories .cat-parent { margin-top: 6px; }
.product-categories .cat-parent__link { font-weight: 600; color: var(--ink); }
.product-categories .children .children a { font-size: 13.5px; color: var(--slate); }
.product-categories .children .children a.is-active { color: #fff; }
.product-categories .children { list-style: none; display: grid; gap: 2px; margin: 2px 0 8px 12px; padding-left: 10px; border-left: 1px solid var(--mist-warm); }
.product-categories .children a { font-size: 14px; padding: 7px 10px; }
.product-categories a.is-open:not(.is-active) { color: var(--ink); font-weight: 500; }
/* al llegar desde una tarjeta del inicio: categorías que abarca */
.product-categories a.is-in { background: var(--white); }

/* Miniaturas tomadas de la ficha: recorte del producto o la página completa */
.product__media { background: var(--white); border: 1px solid var(--mist-warm); }
.product__media--imagen img,
.product__media--recorte img,
.product__media--foto img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
.product__media--pagina { background: var(--mist-warm); }
.product__empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  font-size: 13.5px;
  color: var(--slate);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(10, 28, 46, 0.035) 10px 11px);
}
.product__media--pagina img { object-fit: contain; padding: 8% 12%; }
li.product:hover .product__media--pagina img { transform: scale(1.03); }

/* Paginación */
.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul.page-numbers { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.woocommerce-pagination .page-numbers:not(ul) {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--mist-warm);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.woocommerce-pagination a.page-numbers:hover { border-color: var(--ink); }
.woocommerce-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.woocommerce-pagination .page-numbers.dots { border: 0; background: none; min-width: 24px; padding: 0; color: var(--slate); }

/* Detalle: la ficha técnica ocupa el lugar de la galería de fotos */
.woocommerce-product-gallery__image { display: block; background: var(--white); border: 1px solid var(--mist-warm); }
.woocommerce-product-gallery__image img { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.woocommerce-product-gallery.is-ficha .woocommerce-product-gallery__image { aspect-ratio: auto; background: var(--mist-warm); cursor: zoom-in; }
.woocommerce-product-gallery.is-ficha .woocommerce-product-gallery__image img {
  height: auto;
  max-height: min(78vh, 980px);
  padding: clamp(16px, 3vw, 32px);
  mix-blend-mode: normal;
}
.woocommerce-product-gallery.is-ficha .flex-control-thumbs li { aspect-ratio: 3 / 4; background: var(--mist-warm); }
.woocommerce-product-gallery.is-ficha .flex-control-thumbs img { object-fit: contain; padding: 8px; }
.flex-control-thumbs button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.product__features {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 24px 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--mist-warm);
}
.product__features li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.product__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
/* Constancias LAPEM (certificaciones.html): una tarjeta por planta, sin enlace */
.lapem-page { padding-bottom: clamp(64px, 8vw, 104px); }
.lapem-page__intro { max-width: 680px; margin-bottom: 32px; font-size: 16.5px; color: var(--slate); }
.lapem-list { list-style: none; display: grid; gap: 14px; }
.lapem {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 24px 14px 14px;
  background: var(--white);
  border: 1px solid var(--mist-warm);
  border-radius: var(--r-card);
  color: inherit;
}
.lapem__brand {
  display: grid;
  place-items: center;
  height: 96px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--ink);
}
.lapem__brand .brand-logo { height: 40px; max-width: 150px; align-self: center; }
.lapem__brand .brand-logo--stacked { height: 58px; }
.lapem__body { display: grid; gap: 2px; }
.lapem__plant { font-size: 19px; font-weight: 500; color: var(--ink); }
.lapem__city { font-size: 15px; color: var(--ink); }
.lapem__company { margin-top: 6px; font-size: 14px; color: var(--slate); }
.lapem-page__back { margin-top: 32px; }
@media (max-width: 760px) {
  .lapem { grid-template-columns: 1fr; gap: 14px; padding: 14px 14px 18px; }
  .lapem__brand { height: 80px; justify-items: start; }
}
/* sellos del inicio: cada uno lleva a su certificado */
.seal-link { display: inline-block; border-radius: 12px; transition: transform 0.2s ease; }
.seal-link:hover { transform: translateY(-2px); }
.seal__more { display: block; margin-top: 6px; font-weight: 500; color: var(--accent); }

.related.products { margin-top: clamp(64px, 8vw, 104px); }
.related.products > h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 28px; }

@media (max-width: 1080px) {
  ul.products, ul.products.columns-4 { grid-template-columns: repeat(2, 1fr); }
  .shop__layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 900px) {
  .page-banner { margin: 10px 10px 32px; min-height: 240px; border-radius: 20px; padding-top: 124px; }
  .shop__layout { grid-template-columns: 1fr; }
  .widget-area { position: static; }
  .single-product .product { grid-template-columns: 1fr; }
  /* la ficha ocupa una página completa: primero el nombre y la descripción */
  .single-product .product .summary { order: -1; }
  .shop__cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  ul.products, ul.products.columns-4 { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .woocommerce-loop-product__title { font-size: 15px; }
  .product__excerpt { display: none; }
  .shop__toolbar { flex-direction: column; align-items: flex-start; }
  .flex-control-thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   ORDEN DE COTIZACIÓN — contador, botones, aviso y página
   ============================================================ */

.nav__links a.nav__quote { gap: 10px; }
.nav__badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
}

/* botón de la retícula */
li.product .add_to_quote_button { background: none; border: 0; padding: 0; cursor: pointer; }
li.product .add_to_quote_button .product__cta-icon { transition: transform 0.25s ease; }
li.product:hover .add_to_quote_button .product__cta-icon { transform: scale(1.2); }
li.product .add_to_quote_button.is-added { color: var(--ink); }
li.product .add_to_quote_button.is-added .product__cta-icon { color: var(--accent); }
.btn.add_to_quote_button.is-added { background: var(--ink); }

/* control de cantidad (input.qty como en Woo) */
.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mist-warm);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}
.quantity button {
  width: 40px;
  height: 44px;
  font-size: 18px;
  color: var(--slate);
  transition: background 0.2s ease, color 0.2s ease;
}
.quantity button:hover { background: var(--paper); color: var(--ink); }
.quantity input.qty {
  width: 48px;
  height: 44px;
  text-align: center;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border: 0;
  background: transparent;
  -moz-appearance: textfield;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity input.qty:focus { outline: none; }

/* aviso al agregar */
.quote-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 20px;
  border-radius: 16px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  font-size: 14px;
  max-width: min(560px, calc(100vw - 48px));
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.quote-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.quote-toast__text::before { content: '✓'; margin-right: 10px; color: var(--cyan); font-weight: 600; }
.quote-toast__link { white-space: nowrap; font-weight: 500; color: #fff; padding: 8px 12px; border-radius: 10px; background: var(--accent); }

/* página */
.quote-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.shop_table.cart { width: 100%; border-collapse: collapse; }
.shop_table.cart th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate);
  padding: 0 0 14px;
  border-bottom: 1px solid var(--mist-warm);
}
.shop_table.cart td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--mist-warm); vertical-align: middle; }
.shop_table.cart .product-thumbnail { width: 96px; }
.shop_table.cart .product-thumbnail img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; display: block; }
.shop_table.cart .product-name > a { display: block; font-size: 17px; font-weight: 500; color: var(--ink); }
.quote-row__meta a { font-weight: 500; color: var(--accent); }
.shop_table.cart .product-name .product__cat { margin: 0 0 4px; }
.quote-row__meta { display: block; margin-top: 4px; font-size: 12.5px; color: var(--slate); }
.shop_table.cart .product-quantity { width: 150px; }
.shop_table.cart .product-remove { width: 44px; text-align: right; }
.shop_table.cart .remove {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--mist-warm);
  color: var(--slate);
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.shop_table.cart .remove:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.quote-list__actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; }
.quote-list__clear { font-size: 13.5px; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.quote-list__clear:hover { color: var(--ink); }

.quote-summary__card {
  position: sticky;
  top: 110px;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--white);
  border: 1px solid var(--mist-warm);
  border-radius: var(--r-card);
  display: grid;
  gap: 14px;
}
.quote-summary__card h2 { font-size: 22px; font-weight: 400; }
.quote-summary__count { font-size: 14.5px; color: var(--slate); padding-bottom: 14px; border-bottom: 1px solid var(--mist-warm); }
.quote-summary__count strong { color: var(--ink); font-weight: 500; }
.quote-form { display: grid; gap: 12px; }
.quote-form .field span { color: var(--slate); }
.quote-form .field input,
.quote-form .field textarea { background: var(--paper); border-color: var(--mist-warm); color: var(--ink); }
.quote-form .field input::placeholder,
.quote-form .field textarea::placeholder { color: #A9B2BC; }
.quote-form .field input:focus,
.quote-form .field textarea:focus { background: var(--white); }
.quote-form .contact__note { color: var(--slate); }

.quote-empty,
.quote-sent {
  max-width: 640px;
  padding: clamp(32px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--mist-warm);
  border-radius: var(--r-card);
  display: grid;
  gap: 14px;
  color: var(--slate);
}
.quote-empty__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; color: var(--ink); letter-spacing: -0.01em; }
.quote-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

@media (max-width: 900px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-summary__card { position: static; }
  .gea-models__table thead { display: none; }
  .gea-models__table tr { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--mist-warm); }
  .gea-models__table td { padding: 0 !important; border: 0; }
  .gea-models__model { grid-column: 1 / -1; min-width: 0; }
  .gea-models__specs { grid-column: 1 / -1; padding-left: 70px !important; }
  .gea-models__ficha { grid-column: 1; padding-left: 70px !important; align-self: center; }
  .gea-models__action { grid-column: 2; width: auto; align-self: center; }
  .shop_table.cart thead { display: none; }
  .shop_table.cart tr { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px 14px; padding: 16px 0; border-bottom: 1px solid var(--mist-warm); }
  .shop_table.cart td { padding: 0; border: 0; }
  .shop_table.cart .product-thumbnail { grid-row: 1 / 3; width: auto; }
  .shop_table.cart .product-quantity { grid-column: 2; width: auto; }
  .shop_table.cart .product-remove { grid-column: 3; grid-row: 1; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .statement .w { color: var(--ink); transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* tablets y menos: menú de hamburguesa (el menú completo solo cabe junto a
   los 4 logotipos del inicio a partir de 1280 px) */
@media (max-width: 1279px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; width: 64px; height: 64px; }
  .nav__brand { width: clamp(100px, 11vw, 140px); height: clamp(44px, 5vw, 62px); }
}

@media (max-width: 1080px) {
  .cert { grid-template-columns: auto 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__logoimg { height: 64px; }
  .woocommerce-page .nav.is-scrolled .nav__logoimg { height: 46px; }
  .woocommerce-page .nav.is-scrolled .nav__brand { width: 84px; height: 38px; }
  .footer__brand .nav__logoimg { height: 80px; }

  .split { grid-template-columns: 1fr; }
  .group { grid-template-columns: 1fr; }
  .split__visual { order: -1; }
  .split--contact .contact__info { order: 0; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 44px; }
  /* título, texto y luego el botón */
  #productos .section__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "title" "intro" "cta";
    align-items: center;
    gap: 14px 16px;
  }
  #productos .section__head > div,
  #productos .section__aside { display: contents; }
  #productos .section__head .label { grid-area: label; margin-bottom: 0; }
  #productos .section__head .heading { grid-area: title; }
  #productos .section__intro { grid-area: intro; max-width: 560px; padding-bottom: 0; }
  #productos .section__cta { grid-area: cta; justify-self: start; margin-top: 4px; }
  .section__intro { padding-bottom: 0; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px 16px 20px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }

  .hero__bottom { flex-direction: column; align-items: flex-start; padding-bottom: 44px; }

  .service { grid-template-columns: 48px 1fr; }
  .service .circle-btn { display: none; }
}

@media (max-width: 900px) {
  .quality,
  .services__cards { grid-template-columns: 1fr; }
  .services { padding: 16px; }
  .services__inner { min-height: auto; border-radius: 28px; padding: 28px 22px; gap: 40px; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 640px) {
  .services__head { padding: 24px 20px 26px; border-radius: 22px; }
  .services__title { font-size: 28px; line-height: 1.1; }
  .services__title br { display: none; }
  .nav__logoimg { height: 54px; }
  .nav__logo { padding: 7px 12px; }
  .nav__burger { width: 60px; height: 60px; }
  .footer__brand .nav__logoimg { height: 72px; }
  /* los 4 logotipos en 2 × 2 para dejar sitio al botón del menú */
  .nav__logo--group { display: inline-grid; grid-template-columns: repeat(2, auto); gap: 8px 14px; padding: 9px 14px; }
  .nav__brand { width: min(100px, calc((100vw - 174px) / 2)); height: 40px; }
  .slide { flex-basis: min(78vw, 320px); }
  #productos .section__intro { font-size: 14.5px; }
  #productos .section__cta { padding-inline: 18px; font-size: 14px; }
  .bases { grid-template-columns: 1fr; }
  .base__media { height: clamp(130px, 20vh, 220px); }
  .base__body { gap: 10px; }
  .base__ticker { padding-top: 10px; }
  .base__ticker span { font-size: 14.5px; }

  .quote-card { flex-basis: min(82vw, 420px); }
  .branch { flex-basis: min(80vw, 320px); }
  .group__brand { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .field-row { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 1fr; }
  .cert__seals { grid-template-columns: 1fr; gap: 14px; }
  .cert__seals li { grid-template-columns: 80px 1fr; align-items: center; gap: 16px; }
  .seal-logo { height: 80px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}
/* teléfonos de pantalla corta (p. ej. 375×667): portadas más bajas */
@media (max-width: 640px) and (max-height: 720px) {
  #productos .section__head .heading { font-size: 28px; }
  #productos .section__head { gap: 10px 16px; }
  .base__media { height: 110px; }
}

/* ============================================================
   PANTALLAS GRANDES (≥1800 px: monitores QHD, 4K y ultra anchos)
   El contenido crece hasta 1920 px y la tipografía escala con el
   ancho; debajo de 1800 px no cambia nada.
   ============================================================ */
@media (min-width: 1800px) {
  :root {
    --container: min(76vw, 1920px);
    --section: clamp(136px, 7vw, 200px);
  }
  body { font-size: 18px; }

  /* Menú */
  .nav__links a { font-size: 15.5px; padding: 11px 18px; }

  /* Tipografía de titulares y etiquetas */
  .display { font-size: clamp(64px, 3.9vw, 100px); }
  .hero__tagline { font-size: clamp(26px, 1.3vw, 34px); }
  .hero__bottom { padding-bottom: 56px; }
  .heading { font-size: clamp(54px, 2.9vw, 76px); }
  #productos .heading,
  .services__title { font-size: clamp(46px, 2.5vw, 64px); }
  .page-banner__title { font-size: clamp(46px, 2.4vw, 62px); }
  .page-banner__inner { max-width: 1200px; }
  .page-banner__lead { max-width: 680px; font-size: 17px; }
  .label { font-size: clamp(19px, 0.95vw, 24px); }
  .statement { font-size: clamp(42px, 2.3vw, 60px); }
  .section__intro { max-width: 460px; font-size: 18px; }
  .section__intro--left { max-width: 540px; }

  /* Crecimiento 3D */
  .growth__slides { width: min(620px, 30vw); }
  .growth__slide--intro { width: min(980px, 50vw); }
  .growth__slide--intro .growth__kicker { font-size: clamp(22px, 1.15vw, 28px); }
  .growth__slide h3 { font-size: clamp(38px, 2vw, 52px); }
  .growth__slide p:not(.label),
  .growth__lede { font-size: 18px; max-width: 640px; }
  .growth__nav li { font-size: 22px; }

  /* Empresas del grupo */
  .group__lead { max-width: 560px; font-size: 18px; }
  .group__brand { grid-template-columns: 260px minmax(0, 1fr); padding: 32px 0; }
  .group__brand p { font-size: 17px; }
  .group__brand .brand-logo { height: 48px; max-width: 230px; }
  .group__brand .brand-logo--stacked { height: 68px; }
  .group__brand--main .brand-logo--stacked { height: 88px; }

  /* Slider de categorías */
  .slide { flex-basis: clamp(360px, 19vw, 480px); }
  .base__title { font-size: clamp(30px, 1.6vw, 40px); }
  .base__count, .base__go { font-size: 16px; }
  .base__ticker span { font-size: 17.5px; }
  .slide h3 { font-size: 24px; }
  .slide p { font-size: 16px; }

  /* Servicios: el bloque fotográfico deja de estirarse sin límite */
  .services__inner { max-width: calc(var(--container) + 280px); margin-inline: auto; min-height: min(92vh, 1100px); }
  .services__lead { max-width: 620px; font-size: 18px; }
  .glass-card { padding: 32px 34px 34px; }
  .glass-card .label { font-size: clamp(16px, 0.8vw, 19px); }
  .glass-card h3 { font-size: clamp(24px, 1.25vw, 32px); }
  .glass-card p:not(.label) { font-size: 16px; }

  /* Calidad y respaldo */
  .accordion__head span { font-size: 23px; }
  .accordion__body p { font-size: 17px; max-width: 640px; }
  .facts li { grid-template-columns: 300px 1fr; padding: 20px 0; }
  .facts strong { font-size: 27px; }
  .facts span { font-size: 16px; }
  .cert__text p { font-size: 17px; }

  /* Testimonios */
  .quote-card { flex-basis: clamp(520px, 27vw, 640px); }
  .quote-card blockquote { font-size: clamp(24px, 1.3vw, 30px); }

  /* Contacto y ubicaciones */
  .contact__lead { max-width: 520px; font-size: 18px; }
  .field span { font-size: 14px; }
  .field input,
  .field textarea { font-size: 15.5px; padding: 12px 15px; }
  .field select { font-size: 15.5px; padding: 12px 40px 12px 15px; }
  .branch { flex-basis: 380px; padding: 24px 26px 26px; }
  .branch h3 { font-size: 23px; }
  .branch address { font-size: 15px; }
  .branch__mail,
  .branch__phones { font-size: 15.5px; }
  .locations-map { height: clamp(560px, 50vh, 720px); }

  /* Footer */
  .footer__col a,
  .footer__col p { font-size: 16px; }

  /* Catálogo y ficha de producto */
  .shop__layout { grid-template-columns: 300px 1fr; }
  ul.products.columns-3 { grid-template-columns: repeat(4, 1fr); }
  .woocommerce-loop-product__title { font-size: 20px; }
  .product__excerpt { font-size: 15.5px; }
  .product_title { font-size: clamp(46px, 2.4vw, 60px); }
  .gea-models__table td { font-size: 16px; }
}
