/* North Welders · paleta tomada de la presentación y el logo */
@font-face { font-family: "Barlow"; src: url("/fuentes/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fuentes/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fuentes/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fuentes/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --rojo: #cd1616;        /* rojo de las láminas */
  --rojo-logo: #ec2b22;   /* rojo del logo */
  --rojo-texto: #b01212;  /* rojo legible sobre fondo claro */
  --granate: #921414;
  --granate-oscuro: #640909;
  --negro: #111111;
  --gris: #f3f4f6;
  --gris-linea: #dcdde1;
  --texto: #1d1d1f;
  --texto-suave: #55575c;
  --blanco: #ffffff;
  --ancho: 1180px;
  --titulos: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --cuerpo: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--blanco); color: var(--texto); font: 400 18px/1.6 var(--cuerpo); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulos); font-weight: 800; line-height: 1.05; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.envoltura { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; top: 8px; background: var(--negro); color: var(--blanco); padding: 8px 14px; z-index: 100; }
.saltar:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--rojo-logo); outline-offset: 3px; }

/* Botones */
.boton { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; font: 700 18px/1 var(--titulos); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.boton svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.boton--rojo { background: var(--rojo); color: var(--blanco); }
.boton--rojo:hover { background: var(--granate); }
.boton--borde { border-color: var(--negro); color: var(--negro); }
.boton--borde:hover { background: var(--negro); color: var(--blanco); }
.boton--chico { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: var(--blanco); border-bottom: 4px solid var(--rojo); }
.cabecera__fila { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.cabecera__logo img { width: 210px; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { font: 700 17px/1 var(--titulos); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.menu a:hover { border-color: var(--rojo); }

/* Portada */
.portada { position: relative; overflow: hidden; background: var(--gris); padding: 64px 0 72px; }
.portada__forma { position: absolute; pointer-events: none; }
.portada__forma--a { left: 0; bottom: 0; width: 16vw; max-width: 200px; aspect-ratio: 1; background: var(--granate); clip-path: polygon(0 30%, 0 100%, 70% 100%); }
.portada__forma--b { right: 0; top: 0; width: 22vw; max-width: 300px; aspect-ratio: 1; background: var(--rojo); clip-path: polygon(30% 0, 100% 0, 100% 70%); }
.portada__fila { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.etiqueta { display: inline-block; font: 700 16px/1 var(--titulos); text-transform: uppercase; letter-spacing: .12em; color: var(--rojo-texto); margin-bottom: 18px; padding-left: 34px; position: relative; }
.etiqueta::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 4px; background: var(--rojo); }
.portada h1 { font-size: clamp(40px, 5vw, 64px); color: var(--negro); max-width: 18ch; }
.portada__bajada { font-size: 20px; color: var(--texto-suave); max-width: 52ch; margin: 22px 0 30px; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: 14px; }
.portada__datos { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.portada__datos li { display: grid; border-left: 4px solid var(--rojo); padding-left: 14px; }
.portada__datos strong { font: 800 26px/1.1 var(--titulos); text-transform: uppercase; }
.portada__datos span { color: var(--texto-suave); font-size: 16px; }
.portada__foto { margin: 0; position: relative; }
.portada__foto::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--rojo); clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%); }
.portada__foto img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Secciones */
.seccion { padding: 88px 0; }
.seccion--gris { background: var(--gris); }
.seccion--oscura { background: var(--negro); color: var(--blanco); position: relative; overflow: hidden; }
.seccion--oscura::after { content: ""; position: absolute; right: 0; bottom: 0; width: 260px; height: 260px; background: var(--granate); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.titulo-seccion { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.titulo-seccion__marca { width: 26px; height: 40px; background: var(--rojo); clip-path: polygon(100% 0, 100% 100%, 0 100%, 35% 55%); flex: none; }
.titulo-seccion h2 { font-size: clamp(32px, 4vw, 48px); }
.seccion__intro { max-width: 62ch; color: var(--texto-suave); font-size: 19px; margin-bottom: 40px; }

/* Servicios */
.servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.servicio { background: var(--blanco); border: 1px solid var(--gris-linea); display: flex; flex-direction: column; }
.servicio__foto { position: relative; overflow: hidden; }
.servicio__foto::after { content: ""; position: absolute; right: 0; top: 0; width: 64px; height: 64px; background: var(--rojo); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.servicio__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.servicio:hover .servicio__foto img { transform: scale(1.04); }
.servicio__cuerpo { padding: 24px 24px 28px; border-top: 4px solid var(--rojo); }
.servicio h3 { font-size: 28px; margin-bottom: 10px; }
.servicio p { color: var(--texto-suave); margin: 0; }

/* Nosotros */
.nosotros { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
.nosotros__texto p { max-width: 64ch; }
.nosotros__foto { margin: 0; position: relative; }
.nosotros__foto::before { content: ""; position: absolute; left: -18px; bottom: -18px; width: 70%; height: 70%; background: var(--granate); }
.nosotros__foto img { position: relative; width: 100%; aspect-ratio: 459 / 541; object-fit: cover; }

/* Misión y visión */
.mision { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.mision__foto { margin: 0; }
.mision__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-bottom: 6px solid var(--rojo); }
.mision__textos { display: grid; gap: 24px; }
.tarjeta { border-left: 5px solid var(--rojo); padding: 6px 0 6px 24px; }
.tarjeta h3 { font-size: 34px; color: var(--blanco); margin-bottom: 10px; }
.tarjeta p { color: #d6d6d9; margin: 0; }

/* Valores */
.valores { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.valores li { display: flex; align-items: center; gap: 16px; padding: 22px 22px; background: var(--gris); font-weight: 600; font-size: 19px; line-height: 1.3; border-bottom: 3px solid var(--gris-linea); }
.valores span { font: 800 36px/1 var(--titulos); color: var(--rojo); flex: none; }

/* Por qué elegirnos */
.elegirnos { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.elegirnos__destacado { font: 700 clamp(24px, 2.6vw, 32px)/1.2 var(--titulos); text-transform: uppercase; color: var(--negro); border-left: 5px solid var(--rojo); padding-left: 20px; }
.elegirnos__texto p:last-child { color: var(--texto-suave); font-size: 19px; padding-left: 25px; }

/* Contacto */
.contacto { position: relative; overflow: hidden; background: var(--rojo); color: var(--blanco); padding: 80px 0; }
.contacto__forma { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 55%, var(--granate) 55%, var(--granate) 78%, var(--granate-oscuro) 78%); }
.contacto__fila { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contacto h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 14px; }
.contacto p { font-size: 20px; max-width: 42ch; margin: 0; }
.contacto__medios { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.medio { display: grid; gap: 4px; padding: 20px 24px; background: var(--blanco); color: var(--negro); text-decoration: none; border-left: 6px solid var(--negro); transition: transform .15s; }
.medio:hover { transform: translateX(4px); }
.medio__etiqueta { font: 700 15px/1 var(--titulos); text-transform: uppercase; letter-spacing: .1em; color: var(--rojo-texto); }
.medio__valor { font: 800 clamp(22px, 2.4vw, 30px)/1.15 var(--titulos); overflow-wrap: anywhere; }

/* Pie */
.pie { background: var(--blanco); border-top: 4px solid var(--rojo); padding: 28px 0 104px; }
.pie__fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pie__logo { width: 160px; }
.pie p { margin: 0; color: var(--texto-suave); font-size: 15px; }

/* Botón flotante de WhatsApp (solo en pantallas chicas) */
.flotante { display: flex; align-items: center; gap: 10px; position: fixed; right: 24px; bottom: 24px; z-index: 30; height: 60px; padding: 0 22px 0 16px; border-radius: 999px; background: #25d366; color: var(--blanco); text-decoration: none; font: 700 18px/1 var(--titulos); text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s, background .15s; }
.flotante:hover { background: #1ebe5b; transform: translateY(-2px); }
.flotante svg { width: 30px; height: 30px; fill: currentColor; flex: none; }

@media (max-width: 960px) {
  .menu { display: none; }
  .cabecera__fila .boton { margin-left: auto; }
  .portada__fila, .nosotros, .mision, .elegirnos, .contacto__fila { grid-template-columns: 1fr; gap: 40px; }
  .portada__foto { max-width: 460px; }
  .servicios { grid-template-columns: 1fr 1fr; }
  .valores { grid-template-columns: 1fr 1fr; }
  .nosotros__foto { max-width: 420px; }
  .mision__foto { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .cabecera__fila { min-height: 64px; }
  .cabecera__logo img { width: 150px; }
  .cabecera__fila .boton { display: none; }
  .flotante { right: 16px; bottom: 16px; width: 58px; height: 58px; padding: 0; justify-content: center; }
  .flotante__texto { display: none; }
  .portada { padding: 40px 0 56px; }
  .portada__bajada { font-size: 18px; }
  .portada__acciones .boton { width: 100%; justify-content: center; }
  .portada__foto::before { inset: 14px -14px -14px 14px; }
  .seccion { padding: 64px 0; }
  .servicios, .valores { grid-template-columns: 1fr; }
  .contacto { padding: 64px 0 96px; }
  .pie { padding-bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
