/* Fuentes autoalojadas (subset latino, variable woff2) */
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(../assets/fonts/big-shoulders-display-v24-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../assets/fonts/inter-v20-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   Domissi Hermanos — Sistema de diseño
   Acero para la construcción y la industria. Sur de Santa Fe y Córdoba.
   ========================================================= */

:root {
  /* Tinta / superficies */
  --ink: #10151c;
  --steel-900: #171f29;
  --steel-800: #1c2531;
  --steel-700: #2c3745;
  --steel-600: #445064;
  --steel-400: #7c8798;
  --steel-300: #a6aebb;
  --steel-200: #d2d6dd;
  --paper: #f4f2ed;
  --paper-dim: #ece9e1;
  --white: #ffffff;
  --line: #ddd9cf;
  --line-dark: #2c3745;

  /* Marca */
  --brand: #0957d0;
  --brand-deep: #073e96;
  --brand-tint: #e8f0fd;
  --safety: #d98c1f;
  --safety-deep: #b6740f;

  /* Texto */
  --text: #171f29;
  --text-soft: #4b5563;
  --text-on-dark: #f4f2ed;
  --text-on-dark-soft: #b9c0cb;
  --focus-ring: #0957d0;
  --focus-ring-on-dark: #7fb0ff;

  /* Tipografía */
  --font-title: "Big Shoulders Display", "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-display: "Big Shoulders Display", "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Ritmo */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Sombra */
  --shadow-card: 0 1px 2px rgba(16, 21, 28, 0.06), 0 10px 24px -12px rgba(16, 21, 28, 0.22);
  --shadow-lift: 0 4px 10px rgba(16, 21, 28, 0.08), 0 24px 48px -16px rgba(16, 21, 28, 0.28);
  --shadow-pill: 0 2px 8px rgba(8, 10, 14, 0.18), 0 16px 32px -12px rgba(8, 10, 14, 0.35);
  --text-shadow-on-photo: 0 1px 2px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.22);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--brand); color: var(--white); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--steel-300); border: 3px solid var(--paper); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--steel-400); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark :focus-visible,
.page-hero :focus-visible,
.site-footer :focus-visible,
.mobile-nav :focus-visible,
.search-overlay :focus-visible,
.cta-band :focus-visible,
.offer-panel :focus-visible,
.wholesale :focus-visible {
  outline-color: var(--focus-ring-on-dark);
}

/* ---------- Tipografía ----------
   Los títulos usan una familia "display" condensada y de carácter (Big Shoulders
   Display) distinta del cuerpo de texto (Inter) — el resto del sistema tipográfico
   (párrafos, botones, formularios) no se toca. */
.display-1 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.94;
  font-size: clamp(2.9rem, 6.6vw, 5.8rem);
}
.display-2 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 0.98;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
}
.display-3 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.08;
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 62ch;
}
.body-lg { font-size: 1.125rem; line-height: 1.65; max-width: 68ch; }
.eyebrow-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ---------- Utilidades de layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out);
  z-index: 200;
}
.skip-link:focus { top: 1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease-out), background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost-dark { background: transparent; color: var(--white); border-color: rgba(244,242,237,0.35); }
.btn-ghost-dark:hover { border-color: var(--white); background: rgba(244,242,237,0.08); }
/* "Ver productos" del hero: fondo oscuro translúcido, borde más marcado e íconos para que no quede opacado por el CTA azul */
.btn-catalog { background: rgba(16,21,28,0.55); border-color: rgba(244,242,237,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-catalog:hover { background: rgba(16,21,28,0.75); border-color: var(--white); }
.btn-catalog .btn__arrow { transition: transform 0.18s var(--ease-out); }
.btn-catalog:hover .btn__arrow { transform: translateX(3px); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--steel-200);
}
.btn-ghost:hover { border-color: var(--steel-600); background: var(--white); }
.btn-whatsapp {
  background: #1f8f4c; color: var(--white);
}
.btn-whatsapp:hover { background: #176d3a; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* =========================================================
   Header institucional — barra de ancho completo
   Franja superior de contacto + barra principal blanca + menú de productos
   desplegable (mega menú). Siempre visible; al bajar solo se compacta.
   ========================================================= */
:root { --topbar-h: 0px; --mainbar-h: 76px; --header-h: calc(var(--topbar-h) + var(--mainbar-h)); }

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.site-header.is-condensed { background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line), 0 8px 24px -14px rgba(16, 21, 28, 0.25); }

.mainbar__in { display: flex; align-items: stretch; gap: 2rem; height: var(--mainbar-h); }

.brand-mark { height: 36px; width: auto; flex: none; }
.brand-mark path { fill: var(--white); }
.site-header .brand-mark path { fill: var(--brand); }
.brand-link { display: flex; align-items: center; margin-right: 0.5rem; }

.nav-primary { display: flex; align-items: stretch; gap: 0.25rem; margin-right: auto; }
.nav-primary > a,
.nav-item > a {
  display: flex;
  align-items: center;
  position: relative;
  padding-inline: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s var(--ease-out);
}
.nav-item { display: flex; align-items: stretch; }
.nav-primary a::after {
  content: "";
  position: absolute; left: 1rem; right: 1rem; bottom: 0;
  height: 3px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-primary a:hover,
.nav-item.is-open > a,
.nav-primary a.is-active { color: var(--brand); }
.nav-primary a:hover::after,
.nav-item.is-open > a::after,
.nav-primary a.is-active::after { transform: scaleX(1); }

.mega-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 30px; margin-left: -0.9rem; margin-right: 0.2rem;
  background: none; border: none; color: var(--ink);
}
.mega-toggle svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease-out); }
.nav-item.is-open .mega-toggle { color: var(--brand); }
.nav-item.is-open .mega-toggle svg { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Buscador rectangular (sin forma de pastilla) */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  align-self: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding-left: 1rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.nav-search:focus-within { background: var(--white); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(9, 87, 208, 0.14); }
.nav-search__input {
  border: none; background: transparent; outline: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  width: clamp(120px, 12vw, 210px);
  padding-block: 0.6rem;
}
.nav-search__input::placeholder { color: var(--steel-400); }
.nav-search__input::-webkit-search-cancel-button { display: none; }
.nav-search-trigger {
  width: 40px; height: 40px;
  border: none; background: transparent;
  color: var(--steel-600);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  transition: color 0.2s var(--ease-out);
}
.nav-search-trigger:hover { color: var(--brand); }
.nav-search-trigger svg { width: 18px; height: 18px; }
.nav-suggest {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: max(100%, 340px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -12px rgba(16,21,28,0.28);
  padding: 0.4rem;
  z-index: 60;
  max-height: min(70vh, 460px); overflow-y: auto;
}
.nav-suggest[hidden] { display: none; }
.nav-suggest__head { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-600); padding: 0.5rem 0.7rem 0.3rem; }
.nav-suggest__empty { padding: 0.7rem; font-size: 0.9rem; color: var(--steel-600); }
.nav-suggest__item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.6rem 0.7rem; border-radius: var(--radius-sm);
  color: var(--ink); font-size: 0.92rem; line-height: 1.3;
}
.nav-suggest__item small { display: block; color: var(--steel-600); font-size: 0.78rem; margin-top: 0.1rem; }
.nav-suggest__item svg { width: 16px; height: 16px; flex: none; color: var(--steel-400); }
.nav-suggest__item mark { background: rgba(9,87,208,0.12); color: var(--brand); border-radius: 2px; }
.nav-suggest__item.is-active, .nav-suggest__item:hover { background: var(--paper); }
.nav-suggest__item.is-active svg { color: var(--brand); }
.nav-suggest__all { font-weight: 600; color: var(--brand); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-top: 0.25rem; }

.site-header .nav-cta { align-self: center; border-radius: 999px; padding: 0.7rem 1.25rem; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  align-self: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Mega menú de productos ---------- */
.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 40px 60px -30px rgba(16, 21, 28, 0.28);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s 0.22s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); padding-block: 2.25rem 2.5rem; }

.mega__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; align-content: start; }
.mega__group h6 {
  margin: 0 0 0.6rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steel-400);
}
.mega__cat {
  display: block;
  padding: 0.38rem 0.7rem;
  margin-inline: -0.7rem;
  border-radius: 8px;
  font-size: 0.94rem; font-weight: 500; line-height: 1.3; color: var(--ink);
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.mega__cat small { display: none; }
.mega__cat:hover, .mega__cat.is-active { background: var(--paper); color: var(--brand); }

.mega__pane { padding-left: clamp(2rem, 4vw, 4rem); border-left: 1px solid var(--line); min-height: 300px; }
.mega__panel { display: none; grid-template-columns: minmax(0, 1fr) 190px; gap: 2rem; }
.mega__panel.is-active { display: grid; animation: fade-up 0.25s var(--ease-out); }
.mega__panel h5 { margin: 0 0 0.35rem; font-family: var(--font-title); font-weight: 700; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.005em; }
.mega__all { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--brand); margin-bottom: 1.25rem; }
.mega__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega__all svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease-out); }
.mega__all:hover svg { transform: translateX(3px); }
.mega__subs { display: grid; grid-template-columns: 1fr; gap: 0.1rem; }
.mega__subs a {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.4rem 0.7rem; margin-inline: -0.7rem;
  border-radius: 8px;
  font-size: 0.92rem; color: var(--text-soft);
  transition: color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
}
.mega__subs a small { color: var(--steel-400); font-size: 0.75rem; font-variant-numeric: tabular-nums; align-self: center; }
.mega__subs a:hover { color: var(--ink); background: var(--paper); }
.mega__thumb { align-self: start; border-radius: 12px; overflow: hidden; background: var(--paper-dim); }
.mega__thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.mega__thumb:hover img { transform: scale(1.04); }

@media (max-width: 1180px) {
  .head-phone { display: none; }
}
@media (max-width: 1080px) {
  .nav-search { display: none; }
}
@media (max-width: 880px) {
  :root { --topbar-h: 0px; --mainbar-h: 68px; }
  .nav-primary, .nav-actions .btn-primary.desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
  .mega { display: none; }
  .nav-actions { margin-left: auto; }
  .mainbar__in { gap: 1rem; }
}

/* Mobile off-canvas */
.mobile-nav {
  position: fixed; inset: 0; z-index: 250;
  background: var(--ink);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  padding: 1.5rem var(--gutter) 2.5rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-nav__top .brand-mark path { fill: var(--white); }
.mobile-nav__close {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid rgba(244,242,237,0.35); background: transparent; color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav > ul { display: flex; flex-direction: column; }
.mobile-nav a, .mobile-nav summary {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  padding-block: 0.6rem;
  border-bottom: 1px solid rgba(244,242,237,0.12);
  display: block;
}
.mobile-nav summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 1.6rem; color: var(--text-on-dark-soft); }
.mobile-nav details[open] > summary::after { content: "–"; }
.mobile-nav details ul { padding: 0.5rem 0 0.75rem 0.9rem; }
.mobile-nav details details ul { padding-left: 0.9rem; }
.mobile-nav details a, .mobile-nav details summary {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 500;
  padding-block: 0.6rem;
  color: var(--text-on-dark);
  border-bottom: 1px solid rgba(244,242,237,0.08);
}
.mobile-nav details summary::after { font-size: 1.2rem; }
.mobile-nav details ul a { font-size: 0.92rem; font-weight: 400; color: var(--text-on-dark-soft); }
.mobile-nav .m-group { padding: 0.9rem 0 0.2rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-400); border: none; font-family: var(--font-body); }
.mobile-nav__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
}
.mobile-nav__footer a.btn { width: fit-content; font-family: var(--font-body); font-size: 0.95rem; padding: 0.85rem 1.6rem; border: 1px solid transparent; border-radius: var(--radius-sm); }
.mobile-nav__meta { color: var(--text-on-dark-soft); font-size: 0.9rem; }

/* =========================================================
   Hero (home)
   ========================================================= */
.hero {
  position: relative;
  min-height: min(860px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__track { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden;
  /* el slide saliente queda opaco debajo hasta que el entrante termina de aparecer:
     crossfade limpio de 0.6s sin "bajón" de oscuridad a mitad de la transición */
  transition: opacity 0s linear 0.6s, visibility 0s linear 0.6s;
}
.hero__slide.is-active {
  opacity: 1; visibility: visible; z-index: 1;
  transition: opacity 0.6s var(--ease-out), visibility 0s;
}
.hero__pic, .hero__pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__pic img { object-fit: cover; object-position: var(--hero-pos, center); }
.hero__slide:nth-child(1) { --hero-pos: center 55%; }
.hero__slide:nth-child(3) { --hero-pos: 70% center; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,10,14,0.95) 0%, rgba(8,10,14,0.62) 45%, rgba(8,10,14,0.38) 68%, rgba(8,10,14,0.5) 100%),
    rgba(8,10,14,0.22);
}
.hero__content {
  position: relative;
  width: 100%;
  padding-block: clamp(7.5rem, 16vw, 10rem) clamp(5.5rem, 9vw, 7rem);
  color: var(--white);
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  background: rgba(16, 21, 28, 0.55);
  border: 1px solid rgba(244, 242, 237, 0.16);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.9rem 0.5rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.hero__tag::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--safety);
  flex: none;
  box-shadow: 0 0 0 3px rgba(217, 140, 31, 0.25);
}
.hero__title {
  color: var(--white);
  text-shadow: var(--text-shadow-on-photo);
  font-size: clamp(2.7rem, 5.4vw, 5.2rem);
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero p.lede { color: rgba(244,242,237,0.92); margin-top: 1.4rem; max-width: 52ch; text-wrap: pretty; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.3rem; }
/* el texto acompaña la entrada del slide */
.hero__content > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: 0.08s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: 0.16s; }

.hero__controls {
  position: absolute; z-index: 2;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(1.5rem, 3.5vw, 2.5rem);
  display: flex; align-items: center; gap: 0.9rem;
}
.hero__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white);
  background: rgba(16,21,28,0.55);
  border: 1px solid rgba(244,242,237,0.28);
  backdrop-filter: blur(6px);
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.hero__arrow:hover { background: rgba(244,242,237,0.2); border-color: var(--white); }
.hero__arrow svg { width: 20px; height: 20px; }
.hero__dots { display: flex; gap: 0.25rem; }
.hero__dots button {
  position: relative; width: 40px; height: 44px; background: none; border: none; padding: 0;
}
.hero__dots button::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px;
  background: rgba(244,242,237,0.4);
  transition: background-color 0.25s var(--ease-out);
}
.hero__dots button.is-active::before { background: var(--white); }
@media (max-width: 700px) {
  .hero { min-height: min(760px, 100svh); }
  .hero__arrow { width: 40px; height: 40px; }
  .hero__slide:nth-child(1), .hero__slide:nth-child(3) { --hero-pos: center; }
  /* en celular las líneas fluyen y se equilibran solas */
  .hero__title span { display: inline; }
}

/* =========================================================
   Offer split (construcción / industria)
   ========================================================= */
.offer {
  display: grid;
  gap: 1.25rem;
}
.offer-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--steel-900);
  color: var(--text-on-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.offer-panel--reverse { grid-template-columns: 1fr 1.05fr; }
.offer-panel--reverse .offer-panel__media { order: 2; }
.offer-panel__media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}
.offer-panel__media > img, .offer-panel__media > noscript > img, .cta-cell__bg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.offer-panel__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 55%, rgba(23,31,41,0.35));
}
.offer-panel--reverse .offer-panel__media::after {
  background: linear-gradient(to left, transparent 55%, rgba(23,31,41,0.35));
}
.offer-panel__body {
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}
.offer-panel__kicker { color: var(--text-on-dark-soft); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.offer-panel__body h3 { color: var(--white); }
.offer-panel__body p { color: var(--text-on-dark-soft); max-width: 42ch; }
.offer-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.4rem; }
.offer-chip {
  font-size: 0.85rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(244,242,237,0.22);
  color: var(--text-on-dark);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.offer-chip:hover { border-color: var(--white); background: rgba(244,242,237,0.08); transform: translateY(-2px); }
.offer-panel__more {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--white);
}
.offer-panel__more svg { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease-out); }
.offer-panel__more:hover svg { transform: translateX(4px); }

@media (max-width: 860px) {
  .offer-panel, .offer-panel--reverse { grid-template-columns: 1fr; }
  .offer-panel__media { min-height: 220px; order: 1 !important; }
}

/* =========================================================
   Mayoristas band
   ========================================================= */
.wholesale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.wholesale__media { min-height: 320px; background-size: cover; background-position: center; }
.wholesale__body { padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.wholesale__body h3 { color: var(--white); }
.wholesale__body p { color: var(--text-on-dark-soft); max-width: 46ch; }
.wholesale__actions { display: flex; gap: 0.9rem; margin-top: 0.5rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .wholesale { grid-template-columns: minmax(0, 1fr); }
  .wholesale__media { min-height: 220px; }
}

/* =========================================================
   Section headers
   ========================================================= */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { max-width: 20ch; }
.section-head .lede { margin: 0; }
@media (max-width: 700px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* =========================================================
   Valores (empresa)
   ========================================================= */
.values-list { display: flex; flex-direction: column; }
.value-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  padding-block: 1.9rem;
  align-items: center;
  border-top: 1px solid var(--line);
}
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand-tint, #e3ecfb); color: var(--brand);
  display: grid; place-items: center;
}
.value-icon svg { width: 30px; height: 30px; }
.value-row h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.35rem; }
.value-row p { color: var(--text-soft); max-width: 60ch; }

/* =========================================================
   Historia / carrusel empresa
   ========================================================= */
.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story__copy p { margin-top: 1.2rem; }
.story__copy strong { color: var(--ink); }
.story__media { position: relative; }
.story__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.story__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}
.story__frame img.is-active { opacity: 1; }
.story__badge {
  position: absolute;
  left: -1.25rem; bottom: -1.25rem;
  background: var(--brand);
  color: var(--white);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.story__badge strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.story__badge span { font-size: 0.85rem; color: var(--brand-tint); }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story__badge { left: 1rem; bottom: 1rem; }
}

/* Fotos de la historia */
.story-photos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.story-photos li { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-md); }
.story-photos img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .story-photos { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } }

/* Equipo detrás de cada entrega */
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.team-card .lede { margin-top: 0.9rem; max-width: 70ch; }
.team-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.team-steps svg { width: 28px; height: 28px; color: var(--ink); }
.team-steps h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 0.9rem 0 0.4rem; }
.team-steps p { color: var(--text-soft); }
.team-count {
  display: flex; align-items: baseline; justify-content: center; gap: 0.9rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem); text-align: center;
}
.team-count strong { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 600; color: var(--ink); line-height: 1; }
.team-count span { color: var(--text-soft); }
@media (max-width: 760px) { .team-steps { grid-template-columns: 1fr; } }

/* =========================================================
   Productos — catálogo (resumen, categoría, tabla, lightbox)
   ========================================================= */
.cat-group { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cat-group__title {
  font-family: var(--font-title); font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft);
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.5rem;
}
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.cat-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.cat-card:hover { box-shadow: var(--shadow-card); border-color: var(--steel-200); transform: translateY(-2px); }
.cat-card__img { aspect-ratio: 16 / 10; background: var(--paper-dim); overflow: hidden; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.cat-card:hover .cat-card__img img { transform: scale(1.04); }
.cat-card__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.cat-card__body h3 { font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.cat-card__body p { color: var(--text-soft); font-size: 0.88rem; }
.cat-card__count { margin-top: auto; padding-top: 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--brand); }

.cat-cover {
  position: relative; color: var(--white); background: var(--ink);
  padding: calc(var(--header-h, 112px) + clamp(2.5rem, 5vw, 4rem)) 0 clamp(2.25rem, 4vw, 3.25rem);
  overflow: hidden;
}
.cat-cover__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.55; }
.cat-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,21,28,0.92) 0%, rgba(16,21,28,0.55) 60%, rgba(16,21,28,0.25) 100%); }
.cat-cover .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: 0.5; }
.cat-cover h1 { font-family: var(--font-title); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; text-transform: uppercase; max-width: 22ch; }
.cat-cover p { margin-top: 0.9rem; max-width: 60ch; color: rgba(255,255,255,0.85); }

.catalog { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: flex-start; }
.catalog__main { min-width: 0; }
.catalog__side { position: sticky; top: 8rem; min-width: 0; }
.catalog__side h2 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 0.6rem; font-weight: 600; }
.catalog__side ul { border-left: 1px solid var(--line); }
.catalog__side a {
  display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0.9rem;
  margin-left: -1px; border-left: 2px solid transparent; font-size: 0.92rem; color: var(--text-soft);
}
.catalog__side a small { opacity: 0.6; font-size: 0.78rem; }
.catalog__side a:hover { color: var(--ink); }
.catalog__side a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.catalog__side .side-other { display: block; margin-top: 1.25rem; font-size: 0.85rem; color: var(--brand); font-weight: 600; }

.catalog__bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.catalog__bar h2 { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.catalog__find {
  display: flex; align-items: center; gap: 0.5rem; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 0.75rem; min-width: min(100%, 300px);
}
.catalog__find:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(9,87,208,0.14); }
.catalog__find svg { width: 16px; height: 16px; flex: none; color: var(--text-soft); }
.catalog__find input { border: none; outline: none; background: none; padding: 0.7rem 0; width: 100%; font: inherit; font-size: 0.92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chips button {
  padding: 0.4rem 0.8rem; border: 1px solid var(--line); background: var(--white); color: var(--text-soft);
  font-size: 0.82rem; font-weight: 500; border-radius: var(--radius-sm);
}
.chips button.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.measure { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin-bottom: 1rem; }
.measure[hidden] { display: none; }
.measure__field { display: flex; flex-direction: column; gap: 0.3rem; }
.measure__field span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.measure__field select {
  min-width: 9.5rem; padding: 0.55rem 2rem 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234b5563' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 4.5 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 12px;
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 0.92rem; color: var(--text); cursor: pointer;
}
.measure__field select:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(9,87,208,0.14); }
.measure__clear { padding: 0.55rem 0.2rem; background: none; border: none; color: var(--brand); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.measure__clear[hidden] { display: none; }
@media (max-width: 640px) { .measure__field { flex: 1 1 8rem; } .measure__field select { width: 100%; } }
/* Copy comercial de la subcategoría (tools/copys.xlsx, solo las marcadas "Si") */
.catalog__desc { max-width: 72ch; color: var(--text-soft); font-size: 0.97rem; line-height: 1.6; margin: -0.25rem 0 1.25rem; }
.catalog__count { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 0.75rem; }

.ptable-wrap { border: 1px solid var(--line); background: var(--white); overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ptable th {
  text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft);
  padding: 0.7rem 1rem; background: var(--paper-dim); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ptable td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--paper-dim); vertical-align: middle; }
.ptable tbody tr:hover { background: var(--brand-tint); }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable th.num { text-align: right; }
.ptable .code { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ptable .desc { font-weight: 600; }
.ptable .act { text-align: right; white-space: nowrap; }
.ptable .act a, .ptable .act button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; height: 34px; padding: 0 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  font-size: 0.8rem; font-weight: 600; margin-left: 0.35rem;
}
.ptable .act a:hover, .ptable .act button:hover { border-color: var(--brand); color: var(--brand); }
.ptable .act svg { width: 15px; height: 15px; }
.catalog__more { display: flex; justify-content: center; margin-top: 1.5rem; }
.catalog__empty { padding: 2.5rem 1.5rem; text-align: center; background: var(--white); border: 1px dashed var(--steel-200); }
.catalog__empty p { color: var(--text-soft); margin-bottom: 1rem; }

.photo-dialog { border: none; padding: 0; background: var(--white); max-width: min(92vw, 820px); width: 100%; }
.photo-dialog::backdrop { background: rgba(16,21,28,0.75); }
.photo-dialog img { width: 100%; max-height: 70vh; object-fit: contain; background: var(--paper-dim); display: block; }
.photo-dialog__cap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.photo-dialog__cap strong { font-family: var(--font-title); font-size: 1.2rem; }

@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .catalog__side { position: static; }
  .catalog__side ul { border-left: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding-bottom: 0.5rem; }
  .catalog__side a { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; margin-left: 0; }
  .catalog__side a.is-active { border-bottom-color: var(--brand); }
  .catalog__side .side-other { display: none; }
}
@media (max-width: 640px) {
  .ptable .col-largo, .ptable .col-venta { display: none; }
  .ptable-wrap { overflow-x: visible; }
  .ptable { font-size: 0.82rem; }
  .ptable th, .ptable td { padding: 0.5rem 0.4rem; }
  .ptable th { font-size: 0.64rem; letter-spacing: 0.04em; }
  .ptable th:first-child, .ptable td:first-child { padding-left: 0.6rem; }
  .ptable th:last-child, .ptable td:last-child { padding-right: 0.6rem; }
  .ptable .desc { overflow-wrap: anywhere; line-height: 1.25; }
  .ptable .act a, .ptable .act button { width: 32px; height: 32px; padding: 0; margin-left: 0.25rem; }
  .ptable .act__txt { display: none; }
}

/* =========================================================
   CTA band (construir / producir)
   ========================================================= */
.cta-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
}
.cta-cell {
  position: relative;
  padding: clamp(3.5rem, 6vw, 5rem) var(--gutter);
  color: var(--text-on-dark);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
}
.cta-cell__bg {
  position: absolute; inset: 0;
  opacity: 0.28;
}
.cta-cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,21,28,0.2), rgba(16,21,28,0.85)); }
/* Columna angosta y centrada para que título, bajada y botón queden simétricos entre ambos bloques */
.cta-cell > * { position: relative; z-index: 1; width: 100%; max-width: 26ch; margin-inline: auto; }
.cta-cell h3 { color: var(--white); max-width: 18ch; text-shadow: var(--text-shadow-on-photo); }
.cta-cell span.meta { color: var(--text-on-dark-soft); font-size: 0.9rem; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.cta-cell span.meta a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta-cell .btn { margin-top: 0.35rem; width: fit-content; }
.cta-cell + .cta-cell { border-left: 1px solid rgba(244,242,237,0.12); }
@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-cell + .cta-cell { border-left: none; border-top: 1px solid rgba(244,242,237,0.12); }
}

/* =========================================================
   Footer
   ========================================================= */
/* Línea que separa la banda de CTAs (mismo fondo --ink) del footer */
.site-footer { border-top: 1px solid rgba(244,242,237,0.14); background: var(--ink); color: var(--text-on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.25fr 1fr 1.25fr;
  gap: 2.25rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(244,242,237,0.14);
}
.footer-brand .brand-mark { height: 24px; margin-bottom: 1.1rem; }
.footer-brand .brand-mark path { fill: var(--white); }
.footer-brand p { color: var(--text-on-dark-soft); max-width: 32ch; }
.footer-col__title { margin-top: 1.67em; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-on-dark-soft); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col address { color: var(--text-on-dark); font-size: 0.95rem; font-style: normal; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-col a { overflow-wrap: anywhere; }
.footer-col--jobs p { color: var(--text-on-dark-soft); font-size: 0.92rem; line-height: 1.55; margin-bottom: 0.75rem; max-width: 34ch; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.2rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(244,242,237,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--white); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  display: flex; justify-content: flex-start; align-items: center;
  padding-top: 1.5rem; color: var(--text-on-dark-soft); font-size: 0.85rem; flex-wrap: wrap; gap: 0.75rem 1.5rem;
}
.footer-bottom a { color: var(--text-on-dark-soft); }
.footer-bottom a:hover { color: var(--white); }
/* Crédito de Intelix a la izquierda; el bloque de copyright/horario se empuja al margen derecho */
.footer-bottom__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: center; margin-left: auto; }
.footer-credit {
  color: var(--text-on-dark-soft);
  text-decoration: underline;
  text-decoration-color: rgba(185, 192, 203, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}
.footer-credit:hover { color: var(--white); text-decoration-color: currentColor; }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Inner page hero (empresa / contacto / buscar / productos)
   ========================================================= */
.page-hero {
  padding-block: clamp(7.5rem, 14vw, 10rem) clamp(3rem, 6vw, 4rem);
  background: var(--ink);
  color: var(--text-on-dark);
}
.page-hero__eyebrow { color: var(--text-on-dark-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; margin-bottom: 1rem; }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero p.lede { color: var(--text-on-dark-soft); margin-top: 1.1rem; }

/* Texto corrido (quiénes somos / privacidad) */
.prose { max-width: 72ch; }
.prose h2 { margin-top: clamp(2rem, 4vw, 3rem); }
.prose > :first-child, .prose > .prose__note:first-child + h2 { margin-top: 0; }
.prose p, .prose ul { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.65; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li + li { margin-top: 0.5rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose .prose__note { color: var(--text-soft); font-size: 0.95rem; }

/* =========================================================
   Contacto
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-channels { display: flex; flex-direction: column; }
.contact-channel {
  display: flex;
  gap: 1.25rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}
.contact-channel:last-child { border-bottom: 1px solid var(--line); }
.contact-channel__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.contact-channel__icon svg { width: 21px; height: 21px; }
.contact-channel h2, .contact-channel h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.contact-channel p { color: var(--text-soft); }
.contact-channel > div:not(.contact-channel__icon) { min-width: 0; overflow-wrap: anywhere; }
.contact-channel a.link { color: var(--brand); font-weight: 600; }
.contact-hours { margin-top: 2.5rem; padding: 1.5rem; background: var(--paper-dim); border-radius: var(--radius-md); }
.contact-hours h4 { font-size: 0.95rem; margin-bottom: 0.6rem; }
.contact-hours dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.92rem; color: var(--text-soft); }
.contact-hours dt { font-weight: 600; color: var(--text); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-card);
}
.form-card h3 { margin-bottom: 0.4rem; }
.form-card > p { color: var(--text-soft); margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: var(--white);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 0.8rem; color: var(--steel-400); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #c0392b; }
.field .error-msg { display: none; font-size: 0.82rem; color: #c0392b; }
.field.has-error .error-msg { display: block; }
.form-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 0.5rem; flex-wrap: wrap; }
.form-note { font-size: 0.82rem; color: var(--steel-400); }
.form-status {
  margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; display: none;
}
#contactForm button[disabled] { opacity: 0.6; cursor: progress; }
.form-status.is-success { display: block; background: #e6f4ea; color: #1f6d3c; }
.form-status.is-error { display: block; background: #fbeaea; color: #a53328; }
.form-status.is-error a { color: inherit; text-decoration: underline; }
.form-status.is-pending { display: block; background: #eef0f3; color: var(--steel-700); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Map */
.map-frame {
  margin-top: 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/8;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }

/* =========================================================
   Buscar
   ========================================================= */
.search-box {
  display: flex;
  gap: 0.75rem;
  max-width: 640px;
}
.search-box__field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.search-box input { min-width: 0; }
.search-box .btn { flex: none; }
.search-box__field svg {
  position: absolute; left: 1.4rem; width: 18px; height: 18px; color: var(--steel-400); pointer-events: none;
}
.search-box input {
  flex: 1;
  font: inherit;
  font-size: 1.05rem;
  padding: 1.05rem 3rem 1.05rem 3.1rem;
  border-radius: 999px;
  border: 1px solid var(--steel-200);
  background: var(--white);
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.search-box .btn { border-radius: 999px; }
.search-clear {
  position: absolute; right: 0.5rem;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: transparent; color: var(--steel-400);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.search-clear:hover { background: var(--paper-dim); color: var(--text); }
.search-clear[hidden] { display: none; }
.search-clear svg { width: 15px; height: 15px; }
.search-message { margin-top: 1.25rem; color: var(--text-soft); min-height: 1.5em; }
.search-message.is-empty { color: var(--steel-400); }

.results-list { display: flex; flex-direction: column; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.result-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  background: none;
  border-left: none; border-right: none; border-top: none;
  color: var(--text);
  transition: background-color 0.15s var(--ease-out);
}
.result-row:hover, .result-row.is-active {
  background: var(--paper-dim);
}
.result-row__icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.result-row__icon svg { width: 17px; height: 17px; }
.result-row__text { display: flex; flex-direction: column; gap: 0.15rem; }
.result-row__label { font-weight: 600; }
.result-row__context { font-size: 0.82rem; color: var(--text-soft); }
.result-row__arrow { margin-left: auto; flex: none; color: var(--steel-400); transition: transform 0.15s var(--ease-out); }
.result-row:hover .result-row__arrow, .result-row.is-active .result-row__arrow { color: var(--brand); transform: translateX(3px); }

.search-empty {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

.quick-links { margin-top: 3.5rem; }
.quick-links h2 { margin-bottom: 1.5rem; }
.quick-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.quick-grid button,
.quick-grid a {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out), transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.quick-grid button:hover,
.quick-grid a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* =========================================================
   Apariciones al hacer scroll — variedad controlada, no un único
   fade genérico repetido. Cada variante responde a lo que realmente
   entra en pantalla: bloques de texto suben, imágenes/marcos escalan muy
   levemente, y los grupos de elementos pequeños (chips, mosaico, valores)
   aparecen escalonados en vez de todos a la vez.
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out-soft), transform 0.8s var(--ease-out-soft);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal="fade"] { transform: none; transition: opacity 1s var(--ease-out-soft); }

[data-reveal="scale"] {
  transform: scale(0.96);
  transition: opacity 0.9s var(--ease-out-soft), transform 0.9s var(--ease-out-soft);
}
[data-reveal="scale"].is-visible { transform: none; }

[data-reveal="rise-lg"] { transform: translateY(38px); }

/* Grupos escalonados: cada hijo directo hereda un pequeño delay creciente */
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out-soft), transform 0.6s var(--ease-out-soft);
}
[data-reveal-group].is-visible > * { opacity: 1; transform: none; }
[data-reveal-group] > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group] > *:nth-child(2) { transition-delay: 70ms; }
[data-reveal-group] > *:nth-child(3) { transition-delay: 140ms; }
[data-reveal-group] > *:nth-child(4) { transition-delay: 210ms; }
[data-reveal-group] > *:nth-child(5) { transition-delay: 280ms; }
[data-reveal-group] > *:nth-child(6) { transition-delay: 350ms; }
[data-reveal-group] > *:nth-child(7) { transition-delay: 420ms; }
[data-reveal-group] > *:nth-child(8) { transition-delay: 490ms; }
[data-reveal-group] > *:nth-child(n+9) { transition-delay: 560ms; }

/* Parallax muy sutil del fondo del hero, atado al scroll vía --parallax-y */

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__slide, .hero__content > * { transition: none; }
}

/* =========================================================
   Search overlay — buscador rápido accesible desde el navbar
   en cualquier página (abre, filtra en vivo, cierra con Esc,
   click afuera o al elegir un resultado).
   ========================================================= */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.25rem, 8vh, 6.5rem) 1.25rem 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }
.search-overlay__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 14, 0.6);
  backdrop-filter: blur(4px);
}
.search-overlay__panel {
  position: relative;
  width: min(100%, 640px);
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: translateY(-14px) scale(0.98);
  transition: transform 0.3s var(--ease-out-soft);
}
.search-overlay.is-open .search-overlay__panel { transform: none; }
.search-overlay__field {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.search-overlay__field svg.icon-search { width: 19px; height: 19px; color: var(--steel-400); flex: none; }
.search-overlay__field input {
  flex: 1; border: none; outline: none; background: none;
  font: inherit; font-size: 1.05rem; color: var(--text);
}
.search-overlay__field input::placeholder { color: var(--steel-400); }
.search-overlay__clear {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--paper-dim); color: var(--steel-600);
  display: flex; align-items: center; justify-content: center;
}
.search-overlay__clear[hidden] { display: none; }
.search-overlay__clear svg { width: 13px; height: 13px; }
.search-overlay__kbd {
  flex: none; font-size: 0.75rem; font-weight: 600; color: var(--steel-400);
  border: 1px solid var(--line); border-radius: 5px; padding: 0.2rem 0.5rem;
}
.search-overlay__results {
  overflow-y: auto;
  padding: 0.5rem;
}
.search-overlay__hint {
  padding: 0.6rem 0.9rem 0.9rem;
  font-size: 0.78rem;
  color: var(--steel-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.search-overlay .result-row { border-bottom: none; border-radius: 8px; padding: 0.85rem 0.9rem; }
.search-overlay .result-row:hover, .search-overlay .result-row.is-active { padding-left: 0.9rem; }
.search-overlay .search-empty { margin: 0.5rem; border: none; background: var(--paper); }
body.search-open { overflow: hidden; }

/* =========================================================
   Grid helpers
   ========================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

hr.rule { border: none; border-top: 1px solid var(--line); margin-block: 3rem; }

/* =========================================================
   Página 404
   ========================================================= */
.nf { position: relative; overflow: hidden; background: var(--ink); color: var(--text-on-dark); padding-block: clamp(8rem, 15vw, 11rem) clamp(3.5rem, 7vw, 5.5rem); }
.nf :focus-visible { outline-color: var(--focus-ring-on-dark); }
.nf__in { position: relative; z-index: 1; }
.nf__code {
  display: block; font-family: var(--font-title); font-weight: 800; line-height: 0.8;
  font-size: clamp(7rem, 24vw, 16rem); letter-spacing: -0.02em; margin-bottom: 1.25rem;
  color: transparent; -webkit-text-stroke: 2px var(--steel-600);
}
.nf h1 { color: var(--white); max-width: 18ch; }
.nf .lede { color: var(--text-on-dark-soft); margin-top: 1.1rem; max-width: 52ch; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.nf__ghost { color: var(--white); border-color: var(--steel-600); background: transparent; }
.nf__ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
/* Barras de acero cortadas, a la derecha: guiño al material */
.nf__bars { position: absolute; inset: 0 0 0 auto; width: min(46%, 520px); display: flex; align-items: flex-end; justify-content: space-between; gap: 1.1rem; padding-inline: 2rem; opacity: 0.9; pointer-events: none; }
.nf__bars span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--steel-800), var(--steel-600) 45%, var(--steel-800)); }
.nf__bars span:nth-child(1) { height: 78%; }
.nf__bars span:nth-child(2) { height: 58%; }
.nf__bars span:nth-child(3) { height: 92%; box-shadow: inset 0 6px 0 var(--safety); }
.nf__bars span:nth-child(4) { height: 44%; }
.nf__bars span:nth-child(5) { height: 68%; }
@media (max-width: 860px) { .nf__bars { width: 100%; opacity: 0.28; padding-inline: 1rem; } }
@media (prefers-reduced-motion: no-preference) {
  .nf__bars span { animation: nf-rise 0.9s var(--ease-out) both; }
  .nf__bars span:nth-child(2) { animation-delay: 0.06s; } .nf__bars span:nth-child(3) { animation-delay: 0.12s; }
  .nf__bars span:nth-child(4) { animation-delay: 0.18s; } .nf__bars span:nth-child(5) { animation-delay: 0.24s; }
}
@keyframes nf-rise { from { transform: translateY(40px); opacity: 0; } }
.nf-cats h2 { margin-bottom: 1.5rem; }

/* =========================================================
   Categorías sugeridas
   ========================================================= */
.related { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.related__lede { color: var(--text-soft); margin-top: 0.3rem; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.85rem; margin-top: 1.25rem; }
.related__card {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.1rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.related__card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(16, 21, 28, 0.08); transform: translateY(-2px); }
.related__ctx { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.related__card strong { font-size: 1.02rem; color: var(--ink); }
.related__n { font-size: 0.85rem; font-weight: 600; color: var(--brand); margin-top: 0.15rem; }

/* Contacto: bloque "Dónde encontrarnos" */
.contact-where { margin-top: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
.contact-where h2 { margin-bottom: 0.4rem; }
.contact-where p { color: var(--text-soft); }
.contact-channels + .contact-where + .contact-channels { margin-bottom: 2rem; }
.contact-channel__hours { margin-top: 0.4rem; margin-bottom: 0.4rem; font-size: 0.95rem; }
.team-steps { list-style: none; padding: 0; margin-bottom: 0; }
.team-steps li { padding: 0; }
.cta-cell span.meta a { white-space: nowrap; }
