/* ==========================================================================
   Representaciones Celta — Hoja de estilos principal
   Paleta tomada del logotipo: naranja Celta + gris piedra, sobre grafito.
   ========================================================================== */

:root {
  /* Marca */
  --brand: #F7790A;          /* naranja Celta */
  --brand-hover: #FF8B26;
  --brand-ink: #B4540A;      /* naranja para texto sobre fondo claro (AA) */
  --brand-soft: rgba(247, 121, 10, .12);
  --stone: #6D6B5E;          /* gris del logotipo */

  /* Neutros */
  --ink: #15171A;
  --ink-2: #33373C;
  --muted: #5F646A;
  --line: #E4E2DD;
  --line-strong: #CBC7BF;
  --bg: #FFFFFF;
  --bg-alt: #F5F4F0;

  /* Grafito (secciones oscuras) */
  --g-950: #0E1012;
  --g-900: #15171A;
  --g-850: #1A1D20;
  --g-800: #202327;
  --on-dark: #F4F4F2;
  --on-dark-muted: #A3A8AE;
  --line-dark: rgba(255, 255, 255, .09);

  /* Tipografía */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Medidas */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 76px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 20, .06);
  --shadow-md: 0 10px 30px -12px rgba(16, 18, 20, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 92%;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; 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: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--ink); padding: 10px 16px; font-weight: 600; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand); }
.on-dark .eyebrow { color: var(--brand); }

.h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; }
.h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--muted); line-height: 1.6; }
.on-dark .lead { color: var(--on-dark-muted); }
.mono { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .02em; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  font-family: var(--font-body); font-size: .9375rem; font-weight: 600; letter-spacing: -.005em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { --btn-bg: var(--brand); --btn-fg: var(--ink); }
.btn-primary:hover { --btn-bg: var(--brand-hover); }
.btn-dark { --btn-bg: var(--g-900); --btn-fg: #fff; }
.btn-dark:hover { --btn-bg: #000; }
.btn-outline { --btn-bd: var(--line-strong); --btn-fg: var(--ink); }
.btn-outline:hover { --btn-bd: var(--ink); }
.btn-ghost-light { --btn-bd: rgba(255, 255, 255, .28); --btn-fg: #fff; }
.btn-ghost-light:hover { --btn-bd: #fff; --btn-bg: rgba(255, 255, 255, .06); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .875rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .9375rem; color: var(--ink);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--g-950); color: var(--on-dark-muted); font-size: .8125rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topbar-group { display: flex; align-items: center; gap: 24px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 15px; height: 15px; color: var(--brand); }
.topbar a:hover { color: #fff; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .25); }
.site-header .container { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav li > a {
  position: relative; display: block; padding: 10px 14px;
  font-size: .9375rem; font-weight: 500; color: var(--ink-2);
  border-radius: var(--radius);
  transition: color .2s var(--ease);
}
.main-nav li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav li > a:hover { color: var(--ink); }
.main-nav li > a:hover::after, .main-nav li > a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav li > a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.mobile-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--g-900); color: var(--on-dark);
  padding-top: clamp(56px, 8vw, 104px);
}
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 80%);
  opacity: .7;
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -180px; top: -160px;
  background: radial-gradient(circle, rgba(247, 121, 10, .16), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.75rem, 6.2vw, 5rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1;
  margin: 22px 0 24px;
}
.hero h1 .hl { color: var(--brand); }
.hero .lead { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-call { margin-top: 22px; font-size: .9375rem; color: var(--on-dark-muted); }
.hero-call a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.hero-call a:hover { border-color: var(--brand); }

/* Diagrama unifilar */
.diagram-card {
  position: relative; margin: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: 20px 24px 12px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.diagram-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; white-space: nowrap;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-muted);
  padding-bottom: 14px; border-bottom: 1px dashed rgba(255, 255, 255, .12);
}
.diagram-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.diagram-head .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(247, 121, 10, .6); animation: pulse 2.4s infinite;
}
.diagram svg { width: 100%; height: auto; }
.diagram .wire { stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; fill: none; }
.diagram .bus { stroke: rgba(255, 255, 255, .85); stroke-width: 4; stroke-linecap: square; }
.diagram .flow {
  stroke: var(--brand); stroke-width: 2; fill: none;
  stroke-dasharray: 3 11; animation: flow 1.1s linear infinite;
}
.diagram .node { fill: var(--brand); }
.diagram .node-ring { fill: none; stroke: rgba(247, 121, 10, .35); }
.diagram .t-label { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; fill: #fff; }
.diagram .t-sub { font-family: var(--font-mono); font-size: 11.5px; fill: var(--on-dark-muted); letter-spacing: .04em; }
.diagram .t-tag { font-family: var(--font-mono); font-size: 10px; fill: rgba(255, 255, 255, .38); letter-spacing: .1em; }
.diagram .t-load { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; fill: rgba(255, 255, 255, .88); }
.diagram .sym { stroke: rgba(255, 255, 255, .8); stroke-width: 1.5; fill: none; }
.diagram .sym-fill { fill: var(--g-900); }

@keyframes flow { to { stroke-dashoffset: -14; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(247, 121, 10, .55); }
  70% { box-shadow: 0 0 0 9px rgba(247, 121, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 121, 10, 0); }
}

/* Cifras */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 28px 24px 32px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat-num {
  font-family: var(--font-display); font-stretch: 92%;
  font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: #fff;
}
.stat-num small { font-size: .55em; color: var(--brand); margin-left: 2px; font-weight: 700; }
.stat-label { margin-top: 10px; font-size: .875rem; color: var(--on-dark-muted); line-height: 1.4; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--g-900); color: var(--on-dark); position: relative; isolation: isolate; overflow: hidden; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .h2 { margin-top: 16px; }
.section-head.stack { grid-template-columns: minmax(0, 760px); }

/* ---------- Líneas de producto ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); padding: clamp(28px, 3vw, 40px);
  transition: background-color .25s var(--ease);
}
.product::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.product:hover { background: #FCFBF9; }
.product:hover::before { transform: scaleX(1); }
.product-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.product-icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--brand-ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.product-icon svg { width: 28px; height: 28px; }
.product:hover .product-icon { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.product-code { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .08em; text-align: right; }
.product-code b { display: block; color: var(--ink); font-weight: 500; font-size: .8125rem; }
.product h3 { margin-bottom: 10px; }
.product p { color: var(--muted); font-size: .9688rem; }
.product ul { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-strong); display: grid; gap: 8px; }
.product li { position: relative; padding-left: 18px; font-size: .9375rem; color: var(--ink-2); }
.product li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--brand); }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
.about-copy .h2 { margin: 16px 0 24px; }
.about-copy p + p { margin-top: 16px; }
.about-copy p { color: var(--muted); }
.about-copy .about-strong { color: var(--ink); font-size: 1.1875rem; line-height: 1.55; }
.about-media { position: relative; padding-bottom: 88px; }
.about-photo { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--g-800); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-main { width: 88%; aspect-ratio: 1 / 1.02; box-shadow: var(--shadow-md); }
.about-photo-main img { transition: transform 1.2s var(--ease); }
.about-media:hover .about-photo-main img { transform: scale(1.04); }
.about-photo-sub {
  position: absolute; right: 0; bottom: 0; width: 54%; aspect-ratio: 4 / 3;
  border: 6px solid var(--bg-alt); box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .45);
}
.about-badge {
  position: absolute; right: 2%; top: 32px; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  background: var(--brand); color: var(--ink);
  padding: 16px 20px; border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -16px rgba(247, 121, 10, .6);
}
.about-badge-num { font-family: var(--font-display); font-stretch: 92%; font-weight: 800; font-size: 2.75rem; line-height: 1; letter-spacing: -.03em; }
.about-badge-txt { font-size: .8125rem; font-weight: 600; line-height: 1.3; max-width: 9.5em; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: 36px; }
.value { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.value-num { font-family: var(--font-mono); font-size: .75rem; color: var(--brand-ink); letter-spacing: .1em; }
.value h3 { margin: 10px 0 6px; font-size: 1.0625rem; }
.value p { font-size: .9375rem; color: var(--muted); }

/* ---------- Sectores ---------- */
.sector-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark);
}
.sector {
  position: relative; min-height: 168px; padding: 26px 24px;
  border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transition: background-color .25s var(--ease);
}
.sector:hover { background: rgba(255, 255, 255, .03); }
.sector-num { font-family: var(--font-mono); font-size: .75rem; color: var(--brand); letter-spacing: .1em; }
.sector h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.sector p { margin-top: 6px; font-size: .875rem; color: var(--on-dark-muted); line-height: 1.5; }

/* ---------- Marcas (carrusel continuo) ---------- */
.marquee { display: grid; gap: 16px; }
.marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track, .ticker-track {
  --gap: 16px;
  display: flex; align-items: center; gap: var(--gap); width: max-content;
  animation: marquee var(--dur, 70s) linear infinite;
}
.marquee-row.is-reverse .marquee-track { animation-direction: reverse; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.brand-cell {
  flex: none; width: 184px; aspect-ratio: 3 / 2;
  display: grid; place-items: center; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.brand-cell:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.brand-cell img {
  width: 100%; max-width: 150px; height: auto;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.1);
  opacity: .72;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.brand-cell:hover img { filter: none; opacity: 1; }

/* ---------- Llamados a la acción ---------- */
.cta-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 320px;
}
.cta-card .h2 { font-size: clamp(1.75rem, 2.8vw, 2.375rem); }
.cta-card p { max-width: 30em; }
.cta-card .btn { margin-top: auto; }
.cta-dark { background: var(--g-900); color: var(--on-dark); }
.cta-dark p { color: var(--on-dark-muted); }
.cta-dark .eyebrow { color: var(--brand); }
.cta-brand { background: var(--brand); color: var(--ink); }
.cta-brand .eyebrow { color: var(--ink); }
.cta-brand .eyebrow::before { background: var(--ink); }
.cta-brand p { color: rgba(21, 23, 26, .82); }
.cta-card .cta-mark {
  position: absolute; z-index: -1; right: -40px; bottom: -30px; width: 340px; opacity: .1;
}
.cta-brand .cta-mark { opacity: .16; filter: brightness(0); }

/* ---------- Sucursales ---------- */
.branches { display: grid; gap: 16px; }
.branch {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.branch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.branch-head h3 { font-size: 1.25rem; }
.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand-ink); border-radius: 999px; font-weight: 500;
}
.branch-list { display: grid; gap: 12px; font-size: .9375rem; color: var(--ink-2); }
.branch-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.branch-list li > *, .footer-col a { min-width: 0; overflow-wrap: anywhere; }
.branch-list svg { width: 18px; height: 18px; color: var(--brand-ink); margin-top: 3px; }
.branch-list a:hover { color: var(--brand-ink); }
.branch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.phones { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- Contacto / formularios ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 1.5rem; }
.form-card > p { color: var(--muted); margin-top: 8px; font-size: .9688rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--brand-ink); margin-left: 2px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 1rem; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #9A9EA3; }
.input:hover { border-color: #A9A49A; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(247, 121, 10, .18); }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.5; }
select.input {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333373C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.input[aria-invalid="true"] { border-color: #C0392B; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-note { font-size: .8125rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius);
  font-size: .9375rem; line-height: 1.5;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #EEF7EE; color: #1F5A2A; border: 1px solid #BFE0C3; }
.form-status.is-error { background: #FCEEEC; color: #8A2318; border: 1px solid #F1C4BD; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Encabezado de páginas interiores ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--g-900); color: var(--on-dark);
  padding-block: clamp(56px, 7vw, 96px);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(247, 121, 10, .14), transparent 62%);
}
.breadcrumb { display: flex; gap: 10px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { color: var(--brand); }
.page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-weight: 800; letter-spacing: -.03em; margin: 20px 0 18px; }
.page-hero .lead { max-width: 40em; }

/* ---------- Catálogos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  transition: all .2s var(--ease);
}
.chip span { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: var(--brand); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; min-height: 220px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
a.catalog:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.catalog[hidden] { display: none; }
.catalog-top { display: flex; justify-content: space-between; align-items: center; }
.catalog-brand { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.catalog-type {
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em;
  padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--muted);
}
.catalog h3 { font-size: 1.1875rem; line-height: 1.25; }
.catalog-meta { font-size: .875rem; color: var(--muted); }
.catalog-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--ink); }
.catalog-foot svg { width: 16px; height: 16px; }
.catalog.is-request { background: var(--bg-alt); border-style: dashed; }
.catalog.is-request .catalog-foot { color: var(--brand-ink); }
.catalog-help {
  margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.catalog-help h3 { font-size: 1.25rem; }
.catalog-help p { color: var(--muted); margin-top: 4px; font-size: .9688rem; }

/* ---------- Cliente nuevo ---------- */
.onboard-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.onboard-title { margin-top: 16px; }
.steps { display: grid; gap: 0; margin-top: 32px; }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding-bottom: 28px; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 1px; background: var(--line-strong); }
.step-num {
  width: 48px; height: 48px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 500; font-size: .875rem;
  border: 1px solid var(--line-strong); border-radius: 50%; background: #fff;
}
.step:first-child .step-num { background: var(--brand); border-color: var(--brand); }
.step h3 { font-size: 1.0625rem; margin-top: 12px; }
.step p { font-size: .9375rem; color: var(--muted); margin-top: 4px; }
.side-note {
  margin-top: 8px; padding: 22px 24px; border-left: 3px solid var(--brand); background: var(--bg-alt);
  font-size: .9375rem; color: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0;
}
.side-note strong { display: block; margin-bottom: 4px; }

/* ---------- Mapas ---------- */
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.map {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-alt);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25); }
.map-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; pointer-events: none;
  background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; padding: 6px 10px; border-radius: 3px;
}

/* ---------- Texto legal ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 12px; display: grid; gap: 6px; }
.prose a { color: var(--brand-ink); text-decoration: underline; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-mono); color: var(--brand); letter-spacing: .2em; }
.notfound h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin: 16px 0; }
.notfound p { color: var(--on-dark-muted); max-width: 32em; margin-inline: auto; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--g-950); color: var(--on-dark-muted); font-size: .9375rem; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px; padding-block: 72px 56px;
}
.footer-logo { width: 240px; filter: brightness(0) invert(1); opacity: .95; }
.footer-about p { margin-top: 20px; max-width: 26em; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; line-height: 1.6; }
.footer-col address + address { margin-top: 16px; }
.footer-col address strong { color: #fff; font-weight: 600; display: block; }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); border-radius: var(--radius); color: #fff;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px; border-top: 1px solid var(--line-dark); font-size: .8125rem;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav li > a { padding: 10px 10px; }
  .main-nav li > a::after { left: 10px; right: 10px; }
  .site-header .container { gap: 20px; }
}

@media (max-width: 1060px) {
  .header-cta { display: none; }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  /* backdrop-filter crea un contenedor para elementos fixed; se quita en móvil para el menú */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0;
    background: #fff; padding: 12px var(--gutter) 32px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    border-top: 1px solid var(--line);
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li > a { padding: 18px 4px; font-size: 1.125rem; }
  .main-nav li > a::after { display: none; }
  .main-nav li > a[aria-current="page"] { color: var(--brand-ink); }
  .mobile-cta { display: grid; gap: 10px; margin-top: 24px; }
  .nav-open { overflow: hidden; }

  .hero-grid, .about-grid, .contact-grid, .onboard-grid { grid-template-columns: minmax(0, 1fr); }
  .diagram-card { max-width: 520px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .cta-split { grid-template-columns: minmax(0, 1fr); }
  .map-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .topbar .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 56px 40px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .form-footer .btn { width: 100%; }
}

@media (max-width: 480px) {
  .diagram-card { padding: 16px 14px 8px; }
  .diagram-head { letter-spacing: .08em; }
  .sector-grid { grid-template-columns: minmax(0, 1fr); }
  .sector { min-height: 0; }
  .stat { padding: 22px 12px 24px 0; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .branch { padding: 22px; }
}

/* ==========================================================================
   Fotos y movimiento
   ========================================================================== */

/* Fotos de fondo en portada y encabezados */
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--g-900); }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: grayscale(.35) contrast(1.05);
  transition: opacity 1.8s var(--ease);
  animation: kenburns 20s ease-in-out infinite alternate;
}
.hero-media img.is-active { opacity: .4; }
.hero-media img:nth-child(2) { animation-delay: -7s; }
.hero-media img:nth-child(3) { animation-delay: -14s; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--g-900) 0%, rgba(21, 23, 26, .9) 35%, rgba(21, 23, 26, .55) 100%),
    linear-gradient(0deg, var(--g-900) 0%, transparent 40%);
}
.page-hero .hero-media img.is-active { opacity: .38; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.diagram-card {
  background: rgba(21, 23, 26, .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* Barra de progreso de lectura */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px;
  background: var(--brand); transform-origin: left; transform: scaleX(0);
}

/* Botón volver arriba */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); color: var(--ink); }
.to-top svg { width: 20px; height: 20px; }

/* Cinta de productos */
.ticker { background: var(--brand); color: var(--ink); overflow: hidden; }
.ticker-track { --gap: 28px; --dur: 55s; padding-block: 18px; }
.ticker-item {
  font-family: var(--font-display); font-stretch: 92%; font-weight: 700;
  font-size: 1.25rem; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap;
}
.ticker-sep { width: 18px; height: 18px; fill: var(--ink); flex: none; }

/* Productos: ícono con movimiento */
.product:hover .product-icon svg { animation: nudge .6s var(--ease); }
@keyframes nudge { 30% { transform: translateY(-3px) rotate(-6deg); } 60% { transform: translateY(1px) rotate(3deg); } }

/* Sectores: barra de acento */
.sector::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.sector:hover::after { transform: scaleX(1); }
.sector:hover .sector-num { color: #fff; }

/* Galería */
.gallery-track {
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -2px; }
.gallery-item {
  position: relative; flex: 0 0 clamp(280px, 44vw, 600px); margin: 0;
  aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--g-800); scroll-snap-align: start;
}
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-open img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(.9);
  transition: transform .9s var(--ease), filter .5s var(--ease);
}
.gallery-item:hover .gallery-open img { transform: scale(1.06); filter: saturate(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px;
  padding: 56px 22px 18px; font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(10, 11, 13, .88), transparent);
}
.gallery-item figcaption span { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: var(--brand); }
.gallery-controls { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.gallery-progress { position: relative; flex: 1; height: 2px; background: var(--line-dark); overflow: hidden; }
.gallery-progress span {
  position: absolute; inset: 0; background: var(--brand);
  transform-origin: left; transform: scaleX(.125); transition: transform .4s var(--ease);
}
.gallery-count { color: var(--on-dark-muted); white-space: nowrap; }
.gallery-count b { color: #fff; font-weight: 500; }
.gallery-nav { display: flex; gap: 10px; }
.gallery-btn, .lightbox-btn {
  width: 52px; height: 52px; display: grid; place-items: center; flex: none;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(21, 23, 26, .6); color: #fff; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), opacity .2s;
}
.gallery-btn:hover, .lightbox-btn:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.gallery-btn:disabled { opacity: .3; pointer-events: none; }
.gallery-btn svg, .lightbox-btn svg { width: 20px; height: 20px; }

/* Visor de fotos */
.lightbox {
  width: min(1200px, 94vw); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: #fff; overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 9, 10, .92); }
.lightbox[open] { animation: lightbox-in .35s var(--ease); }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.97); } }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius-lg); background: #000; }
.lightbox figcaption { margin-top: 14px; text-align: center; font-size: .9375rem; color: var(--on-dark-muted); }
.lightbox-btn { position: absolute; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev, .lightbox-next { top: calc(50% - 46px); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (prefers-reduced-motion: reduce) {
  /* Sin movimiento: las marcas quedan en filas que se deslizan a mano */
  .marquee-row { -webkit-mask-image: none; mask-image: none; overflow-x: auto; scrollbar-width: none; }
  .marquee-row::-webkit-scrollbar { display: none; }
  .marquee-track { padding-inline: var(--gutter); }
  .marquee-track [aria-hidden="true"] { display: none; }
  .hero-media img { transform: none; }
}

@media (max-width: 960px) {
  .about-media { max-width: 620px; }
  .gallery-item { flex-basis: 68vw; }
}

@media (max-width: 720px) {
  .about-media { padding-bottom: 64px; }
  .about-badge { padding: 12px 14px; gap: 10px; top: 18px; }
  .about-badge-num { font-size: 2.125rem; }
  .about-badge-txt { font-size: .75rem; }
  .brand-cell { width: 148px; padding: 10px; }
  .ticker-track { padding-block: 14px; }
  .ticker-item { font-size: 1.0625rem; }
  .gallery-item { flex-basis: 84vw; }
  .gallery-controls { gap: 16px; }
  .gallery-btn { width: 46px; height: 46px; }
  .lightbox-btn { width: 44px; height: 44px; }
  .to-top { right: 14px; bottom: 14px; }
}
