/* ==========================================================================
   TechSupply — hoja de estilos del sitio web
   Basada en el manual de marca MDM-002-techsupply (versión 1.0):
   · Paleta y degradado oficiales (sección 4)   · Proporción 60-30-10 (4.5)
   · Saira para titulares, Inter para textos (sección 5)
   · Rojo solo como acento; degradado solo en fondos de alto impacto (4.2)
   ========================================================================== */

:root {
  /* Colores principales */
  --rojo: #CA0007;
  --rojo-brillante: #F50007;
  --rojo-profundo: #810105;
  --acero: #44474E;
  /* Colores de apoyo */
  --grafito: #282A2F;
  --gris-medio: #898B91;
  --gris-claro: #F0F1F3;
  --blanco: #FFFFFF;
  /* Tintas del gris acero (4.4) */
  --acero-80: #696C71;
  --acero-60: #8F9195;
  --acero-40: #B4B5B8;
  --acero-20: #DADADC;
  /* Degradado TechSupply: solo en fondos de alto impacto */
  --degradado: linear-gradient(135deg, #F50007 0%, #810105 100%);

  --titulo: "Saira", Arial, sans-serif;
  --texto: "Inter", Arial, sans-serif;

  --contenedor: 1200px;
  --margen: clamp(20px, 4vw, 40px);
  --cabecera: 88px;
  --radio: 14px;
  --radio-s: 8px;
  --sombra: 0 1px 2px rgba(40, 42, 47, .06), 0 14px 32px -14px rgba(40, 42, 47, .2);
  --sombra-l: 0 2px 4px rgba(40, 42, 47, .06), 0 32px 64px -28px rgba(40, 42, 47, .4);
  --curva: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cabecera) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.5;
  color: var(--grafito);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; border-radius: 2px; }
.oscuro :focus-visible { outline-color: var(--blanco); }

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

.icono {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: butt; stroke-linejoin: miter;
}

.solo-lectores {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.saltar {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 12px 18px; background: var(--grafito); color: var(--blanco);
  font-weight: 600; border-radius: var(--radio-s); transition: top .2s;
}
.saltar:focus { top: 16px; }

/* ---------- Tipografía ---------- */
.antetitulo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--titulo); font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rojo);
  margin-bottom: 18px;
}
.antetitulo::before { content: ""; width: 10px; height: 10px; background: var(--rojo); flex: none; }
.oscuro .antetitulo { color: var(--acero-20); }

.titulo-seccion {
  font-family: var(--titulo); font-weight: 700;
  font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.015em;
  text-wrap: balance;
}

.bajada {
  font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6;
  color: var(--acero-80); max-width: 58ch; text-wrap: pretty;
}
.titulo-seccion + .bajada { margin-top: 20px; }
.oscuro .bajada { color: var(--acero-20); }

.nota { font-size: 13px; line-height: 1.4; color: var(--acero-80); margin-top: 20px; }

/* ---------- Botones y enlaces ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  font-family: var(--titulo); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  border: 2px solid transparent; border-radius: 6px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--curva), box-shadow .25s;
}
.boton .icono { width: 20px; height: 20px; transition: transform .25s var(--curva); }
.boton:hover .icono { transform: translateX(4px); }
.boton:active { transform: translateY(1px); }

.boton--primario { background: var(--rojo); color: var(--blanco); }
.boton--primario:hover { background: var(--rojo-profundo); }

.boton--claro { background: var(--blanco); color: var(--rojo); }
.boton--claro:hover { background: var(--gris-claro); color: var(--rojo-profundo); }

.boton--linea { border-color: rgba(255, 255, 255, .45); color: var(--blanco); }
.boton--linea:hover { background: var(--blanco); border-color: var(--blanco); color: var(--grafito); }

.boton--linea-oscura { border-color: var(--acero-40); color: var(--grafito); }
.boton--linea-oscura:hover { border-color: var(--grafito); }

.boton--compacto { min-height: 46px; padding: 0 20px; font-size: 15px; }
.boton--grande { min-height: 62px; padding: 0 32px; font-size: 17px; }
.boton--bloque { width: 100%; }

.grupo-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.enlace {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-family: var(--titulo); font-weight: 600; font-size: 16px; color: var(--rojo);
  padding-bottom: 4px; border-bottom: 2px solid currentColor; white-space: nowrap;
}
.enlace .icono { width: 20px; height: 20px; transition: transform .25s var(--curva); }
.enlace:hover .icono { transform: translateX(4px); }
.oscuro .enlace { color: var(--blanco); }

.chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px;
  font-family: var(--titulo); font-weight: 600; font-size: 13px; letter-spacing: .04em;
  background: var(--blanco); color: var(--acero); border-radius: 4px;
}
.oscuro .chip { background: rgba(255, 255, 255, .14); color: var(--blanco); }
.chip--gris { background: var(--gris-claro); }
.chip--rojo { background: var(--rojo); color: var(--blanco); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50; height: var(--cabecera);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.cabecera.con-sombra { border-color: var(--acero-20); box-shadow: 0 10px 28px -18px rgba(40, 42, 47, .35); }
.cabecera__fila { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Versión principal del logotipo: nunca por debajo de 150 px de ancho (manual, 3.4) */
.cabecera__logo img { width: 160px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a:not(.boton) {
  position: relative; padding: 8px 0;
  font-family: var(--titulo); font-weight: 600; font-size: 15px; color: var(--grafito);
  transition: color .2s;
}
.nav a:not(.boton)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--rojo); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--curva);
}
.nav a:not(.boton):hover, .nav a.activo { color: var(--rojo); }
.nav a:not(.boton):hover::after, .nav a.activo::after { transform: scaleX(1); }

.cabecera__menu {
  display: none; width: 48px; height: 48px; padding: 0;
  align-items: center; justify-content: center;
  background: none; border: 2px solid var(--acero-20); border-radius: 6px; cursor: pointer;
}
.cabecera__menu .icono--cerrar { display: none; }
.cabecera__menu[aria-expanded="true"] .icono--abrir { display: none; }
.cabecera__menu[aria-expanded="true"] .icono--cerrar { display: block; }

/* ---------- Inicio (hero) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--grafito); color: var(--blanco);
}
/* Retícula técnica de fondo */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(110% 90% at 72% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(110% 90% at 72% 42%, #000 0%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background: radial-gradient(58% 78% at 84% 46%, rgba(68, 71, 78, .95) 0%, rgba(40, 42, 47, 0) 72%);
}
/* Supergráfico: el símbolo ampliado y recortado (manual, sección 7) */
.hero__engrane {
  position: absolute; z-index: -1; top: 50%; right: max(-150px, -9vw);
  width: min(54vw, 720px);
  translate: 0 calc(-56% + var(--desplazamiento, 0px));
  pointer-events: none; user-select: none;
}
.hero__contenido {
  max-width: 660px;
  padding: clamp(64px, 9vw, 120px) 0 clamp(150px, 15vw, 196px);
}
.hero .antetitulo { margin-bottom: 0; }
.hero h1 {
  font-family: var(--titulo); font-weight: 700;
  font-size: clamp(40px, 6vw, 74px); line-height: 1.03; letter-spacing: -.02em;
  margin: 22px 0 26px; text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(var(--rojo), var(--rojo)) left 92% / 100% .13em no-repeat;
  white-space: nowrap;
}
.hero__bajada { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--acero-20); max-width: 54ch; text-wrap: pretty; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__respaldo {
  display: flex; align-items: center; gap: 14px; margin-top: 44px;
  font-family: var(--titulo); font-weight: 600; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--acero-40);
}
.hero__respaldo::before { content: ""; width: 44px; height: 2px; background: var(--acero-60); flex: none; }

/* ---------- Cifras ---------- */
.cifras { position: relative; z-index: 2; margin-top: -84px; }
.cifras__tarjeta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra-l); overflow: hidden;
}
.cifra { padding: clamp(22px, 2.6vw, 34px); border-left: 1px solid var(--gris-claro); }
.cifra:first-child { border-left: 0; }
.cifra__num {
  font-family: var(--titulo); font-weight: 700;
  font-size: clamp(38px, 4.2vw, 56px); line-height: 1; letter-spacing: -.02em; color: var(--grafito);
}
.cifra__num::before { content: ""; display: block; width: 28px; height: 4px; background: var(--rojo); margin-bottom: 18px; }
.cifra__txt { font-size: 14px; line-height: 1.45; color: var(--acero-80); margin-top: 12px; max-width: 26ch; }

/* ---------- Cinta ---------- */
.cinta { overflow: hidden; padding: clamp(40px, 5vw, 64px) 0 0; }
.cinta__pista { display: flex; width: max-content; animation: cinta 44s linear infinite; }
.cinta__grupo { display: flex; flex: none; }
.cinta__grupo span {
  display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 56px);
  padding-left: clamp(28px, 4vw, 56px);
  font-family: var(--titulo); font-weight: 700; font-size: clamp(34px, 5.2vw, 68px); line-height: 1.1;
  text-transform: uppercase; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1px var(--acero-40);
}
.cinta__grupo span::after { content: ""; width: 12px; height: 12px; background: var(--rojo); flex: none; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.seccion { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.seccion--gris { background: var(--gris-claro); }
.seccion--acero { background: var(--acero); color: var(--blanco); overflow: hidden; isolation: isolate; }
.seccion__engrane {
  position: absolute; z-index: -1; left: -220px; bottom: -260px; width: 720px; opacity: .05;
  pointer-events: none; user-select: none;
}

.encabezado {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px);
}

.dos-columnas {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px); align-items: start;
}
.dos-columnas__fija { position: sticky; top: calc(var(--cabecera) + 32px); }

/* ---------- Líneas de negocio ---------- */
.lineas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.linea {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3.4vw, 48px); border-radius: var(--radio); overflow: hidden;
  transition: transform .4s var(--curva), box-shadow .4s;
}
.linea:hover { transform: translateY(-6px); box-shadow: var(--sombra-l); }
.linea--clara { background: var(--gris-claro); }
.linea--oscura { background: var(--acero); color: var(--blanco); }

.linea__cima { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.linea__num {
  font-family: var(--titulo); font-weight: 700; font-size: clamp(72px, 9vw, 128px);
  line-height: .78; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px var(--acero-40);
}
.linea--oscura .linea__num { -webkit-text-stroke-color: rgba(255, 255, 255, .34); }

.linea__iconos { display: flex; gap: 12px; margin: clamp(32px, 5vw, 64px) 0 28px; }
.linea__iconos span {
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--blanco); color: var(--acero); border-radius: var(--radio-s);
}
.linea__iconos .icono { width: 30px; height: 30px; }
.linea--oscura .linea__iconos span { background: rgba(255, 255, 255, .1); color: var(--blanco); }

.linea h3 {
  font-family: var(--titulo); font-weight: 700; font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.1; letter-spacing: -.01em; text-wrap: balance;
}
.linea > p { margin-top: 14px; color: var(--acero-80); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.linea--oscura > p { color: var(--acero-20); }

.lista-check { margin: 26px 0 32px; }
.lista-check li {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-top: 1px solid var(--acero-20); font-weight: 600; font-size: 15px;
}
.lista-check li:last-child { border-bottom: 1px solid var(--acero-20); }
.lista-check .icono { width: 20px; height: 20px; color: var(--rojo); }
.oscuro .lista-check li { border-color: rgba(255, 255, 255, .16); }
.oscuro .lista-check .icono { color: var(--blanco); }
.linea .enlace { margin-top: auto; }

/* ---------- Ferretería ---------- */
.sello {
  display: flex; align-items: flex-end; gap: 20px;
  margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--acero-20);
}
.sello__anio {
  font-family: var(--titulo); font-weight: 700; font-size: clamp(76px, 9vw, 124px);
  line-height: .76; letter-spacing: -.04em; color: var(--grafito);
}
.sello__txt { font-size: 14px; line-height: 1.45; color: var(--acero-80); max-width: 20ch; }
.sello__txt strong { display: block; font-family: var(--titulo); font-size: 20px; color: var(--rojo); }

.hitos { margin-top: 30px; }
.hitos li {
  display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: baseline;
  padding: 13px 0; border-top: 1px solid var(--acero-20);
  font-size: 15px; line-height: 1.45; color: var(--acero-80);
}
.hitos li:last-child { border-bottom: 1px solid var(--acero-20); }
.hitos strong { font-family: var(--titulo); font-weight: 700; font-size: 17px; color: var(--grafito); }

.categorias { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.categoria {
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 4px; align-content: start;
  padding: 24px; background: var(--blanco); border: 1px solid transparent; border-radius: var(--radio);
  transition: transform .35s var(--curva), box-shadow .35s, border-color .35s;
}
.categoria:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--acero-20); }
.categoria__icono {
  grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--gris-claro); color: var(--acero); border-radius: var(--radio-s);
  transition: background-color .3s, color .3s;
}
.categoria:hover .categoria__icono { background: var(--rojo); color: var(--blanco); }
.categoria h3 { font-family: var(--titulo); font-weight: 600; font-size: 19px; line-height: 1.2; align-self: end; }
.categoria p { font-size: 14.5px; line-height: 1.45; color: var(--acero-80); }

/* ---------- Importaciones ---------- */
.importados { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.importado {
  padding: clamp(24px, 2.8vw, 36px); border-radius: var(--radio);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .3s, transform .35s var(--curva), border-color .3s;
}
.importado:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); transform: translateY(-4px); }
.importado .icono { width: 40px; height: 40px; stroke-width: 1.5; }
.importado h3 { font-family: var(--titulo); font-weight: 700; font-size: 26px; margin: 26px 0 10px; }
.importado p { color: var(--acero-20); line-height: 1.6; }

.proceso { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(36px, 4vw, 52px); border-top: 1px solid rgba(255, 255, 255, .16); }
.proceso__cima { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 44px; }
.proceso__cima h3 { font-family: var(--titulo); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.proceso__pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.paso { position: relative; padding-top: 32px; }
.paso::before { content: ""; position: absolute; top: 6px; left: 0; right: -28px; height: 2px; background: rgba(255, 255, 255, .2); }
.paso:last-child::before { right: 0; }
.paso::after { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; background: var(--rojo); outline: 2px solid var(--blanco); outline-offset: -2px; }
.paso__num { font-family: var(--titulo); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--acero-20); }
.paso h4 { font-family: var(--titulo); font-weight: 600; font-size: 21px; margin: 8px 0; }
.paso p { font-size: 15px; line-height: 1.55; color: var(--acero-20); max-width: 30ch; }

/* ---------- Por qué TechSupply ---------- */
.proposito { margin-top: 36px; padding: 26px 28px; background: var(--gris-claro); border-left: 4px solid var(--rojo); border-radius: 0 var(--radio) var(--radio) 0; }
.proposito blockquote p { font-family: var(--titulo); font-weight: 600; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.35; text-wrap: balance; }
.proposito figcaption { margin-top: 14px; font-family: var(--titulo); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--acero-80); }

.valor {
  display: grid; grid-template-columns: 52px 1fr 40px; column-gap: 20px; row-gap: 6px; align-items: start;
  padding: 28px 0; border-top: 1px solid var(--acero-20);
}
.valor:last-child { border-bottom: 1px solid var(--acero-20); }
.valor__num { font-family: var(--titulo); font-weight: 600; font-size: 14px; letter-spacing: .14em; color: var(--rojo); padding-top: 8px; }
.valor h3 { font-family: var(--titulo); font-weight: 700; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; }
.valor p { grid-column: 2; color: var(--acero-80); font-size: 17px; line-height: 1.55; max-width: 48ch; }
.valor .icono { grid-column: 3; grid-row: 1 / span 2; width: 34px; height: 34px; stroke-width: 1.5; color: var(--acero-40); justify-self: end; transition: color .3s, transform .4s var(--curva); }
.valor:hover .icono { color: var(--rojo); transform: scale(1.08); }

.publicos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(56px, 7vw, 96px); }
.publico { display: flex; gap: 22px; align-items: flex-start; padding: clamp(24px, 2.8vw, 34px); border: 1px solid var(--acero-20); border-radius: var(--radio); }
.publico__icono { width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: var(--grafito); color: var(--blanco); border-radius: var(--radio-s); }
.publico__rotulo { font-family: var(--titulo); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--acero-80); margin-bottom: 6px; }
.publico h3 { font-family: var(--titulo); font-weight: 700; font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.publico p:not(.publico__rotulo) { color: var(--acero-80); line-height: 1.55; }

/* ---------- Llamado (fondo de alto impacto: degradado oficial) ---------- */
.llamado { position: relative; isolation: isolate; overflow: hidden; background: var(--degradado); color: var(--blanco); padding: clamp(64px, 8vw, 108px) 0; }
.llamado__engrane { position: absolute; z-index: -1; right: -90px; top: 50%; translate: 0 -50%; width: 520px; opacity: .12; pointer-events: none; user-select: none; }
.llamado__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.llamado h2 { font-family: var(--titulo); font-weight: 700; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.llamado p { margin-top: 16px; font-size: clamp(18.5px, 1.6vw, 20px); font-weight: 600; line-height: 1.45; max-width: 42ch; }

/* ---------- Ubicación ---------- */
.sedes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sede { display: flex; flex-direction: column; background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.sede__mapa { aspect-ratio: 16 / 10; background: var(--acero-20); }
.sede__mapa iframe { width: 100%; height: 100%; border: 0; }
.sede__cuerpo { flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 24px; padding: clamp(22px, 2.6vw, 32px); }
.sede h3 { font-family: var(--titulo); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; margin: 14px 0 8px; }
.sede__direccion { display: flex; align-items: flex-start; gap: 10px; color: var(--acero-80); }
.sede__direccion .icono { width: 20px; height: 20px; margin-top: 2px; color: var(--acero); }

/* ---------- Contacto ---------- */
.datos { margin-top: 36px; }
.datos li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--acero-20); }
.datos li:last-child { border-bottom: 1px solid var(--acero-20); }
.datos li[hidden] { display: none; }
.datos .icono { color: var(--acero); margin-top: 2px; }
.datos__rotulo { display: block; font-family: var(--titulo); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--acero-80); margin-bottom: 4px; }
.datos a { font-weight: 600; color: var(--rojo); border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }

.formulario { background: var(--blanco); border: 1px solid var(--acero-20); border-radius: var(--radio); box-shadow: var(--sombra); padding: clamp(24px, 3.2vw, 44px); }
.formulario h3 { font-family: var(--titulo); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.formulario__nota { font-size: 13px; color: var(--acero-80); margin: 8px 0 28px; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-size: 14px; font-weight: 600; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  background: var(--blanco); border: 1.5px solid var(--acero-60); border-radius: var(--radio-s);
  transition: border-color .2s, box-shadow .2s;
}
.campo select { appearance: none; -webkit-appearance: none; padding-right: 44px; 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='%2344474E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.campo textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.campo ::placeholder { color: var(--acero-60); }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: var(--acero); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--grafito); box-shadow: 0 0 0 4px rgba(202, 0, 7, .14); }

.autorizacion { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 26px; font-size: 14px; line-height: 1.5; color: var(--acero-80); cursor: pointer; }
.autorizacion input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--rojo); cursor: pointer; }
.autorizacion a { color: var(--rojo); border-bottom: 1px solid currentColor; }

.formulario__estado { margin-top: 18px; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; background: var(--gris-claro); border-left: 4px solid var(--acero); border-radius: 0 var(--radio-s) var(--radio-s) 0; }
.formulario__estado[data-tipo="ok"] { border-left-color: var(--rojo); }

/* ---------- Pie ---------- */
.pie { background: var(--grafito); color: var(--acero-40); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 15px; }
.pie__rejilla { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); }
/* Versión completa del logotipo: nunca por debajo de 310 px de ancho (manual, 3.4) */
.pie__marca img { width: 320px; margin-left: -4px; }
.pie__marca p { margin-top: 22px; max-width: 40ch; line-height: 1.6; }
.pie h4 { font-family: var(--titulo); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--blanco); margin-bottom: 18px; }
.pie li { padding: 6px 0; overflow-wrap: anywhere; }
.pie a { transition: color .2s; }
.pie a:hover { color: var(--blanco); }
.pie__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }

/* ---------- Aparición al desplazar ---------- */
.js .revelar { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--curva) var(--d, 0s), transform .8s var(--curva) var(--d, 0s); }
.js .revelar.visible { opacity: 1; transform: none; }
/* Las tarjetas recuperan su transición propia una vez visibles */
.js .linea.revelar.visible, .js .categoria.revelar.visible, .js .importado.revelar.visible {
  transition: transform .4s var(--curva), box-shadow .4s, border-color .35s, background-color .3s;
}

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1100px) {
  .cabecera__menu { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--margen) 28px; background: var(--blanco);
    border-bottom: 1px solid var(--acero-20); box-shadow: 0 24px 40px -24px rgba(40, 42, 47, .4);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .25s var(--curva), visibility .25s;
    max-height: calc(100vh - var(--cabecera)); overflow-y: auto;
  }
  .nav.abierta { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.boton) { padding: 17px 0; font-size: 18px; border-bottom: 1px solid var(--gris-claro); }
  .nav a:not(.boton)::after { display: none; }
  .nav .boton { margin-top: 22px; min-height: 54px; }
}

@media (max-width: 1000px) {
  .encabezado { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .dos-columnas { grid-template-columns: 1fr; }
  .dos-columnas__fija { position: static; }
  .proceso__pasos { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .paso:nth-child(2)::before { right: 0; }
  .pie__rejilla { grid-template-columns: 1fr 1fr; }
  .pie__marca { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --cabecera: 80px; }
  .cabecera__logo img { width: 150px; }
  .hero__engrane { top: 28px; right: -170px; width: 420px; translate: 0 var(--desplazamiento, 0px); opacity: .34; }
  .hero__contenido { padding-top: 72px; }
  .lineas, .sedes, .publicos { grid-template-columns: 1fr; }
  .importados { grid-template-columns: 1fr; }
  .cifras__tarjeta { grid-template-columns: 1fr 1fr; }
  .cifra:nth-child(3) { border-left: 0; }
  .cifra:nth-child(n+3) { border-top: 1px solid var(--gris-claro); }
  .llamado__engrane { width: 380px; right: -140px; }
}

@media (max-width: 600px) {
  .categorias, .campos, .proceso__pasos { grid-template-columns: 1fr; }
  .paso::before { right: 0; }
  .hero__acciones .boton, .grupo-botones .boton, .llamado .boton, .proceso__cima .boton { width: 100%; }
  .sello { gap: 14px; }
  .valor { grid-template-columns: 40px 1fr; }
  .valor .icono { display: none; }
  .publico { flex-direction: column; gap: 16px; }
  .pie__rejilla { grid-template-columns: 1fr; }
  .pie__marca img { width: min(320px, 100%); }
  .cifra__txt { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .revelar { opacity: 1; transform: none; }
  .cinta__pista { animation: none; }
}

/* ---------- Entrada del inicio: animación propia, no depende del desplazamiento ---------- */
.js .hero .revelar { opacity: 1; transform: none; transition: none; animation: entrar .9s var(--curva) var(--d, 0s) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(26px); } }

/* ---------- Estados de envío y página 404 ---------- */
.boton:disabled { opacity: .6; cursor: progress; }
.error-404 { min-height: calc(100vh - var(--cabecera)); display: flex; align-items: center; }
.error-404 .hero__contenido { padding-bottom: clamp(64px, 9vw, 120px); }
.error-404__codigo { font-family: var(--titulo); font-weight: 700; font-size: clamp(96px, 18vw, 200px); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--acero-60); }
