/* Barredoras Industriales Garza
   Paleta "señalización industrial": azul grafito + amarillo seguridad sobre concreto. */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #14212E;
  --navy-2: #1D2F41;
  --navy-3: #0D1620;
  --yel: #FFC20E;
  --yel-2: #F0B400;
  --con: #F2F0EB;
  --white: #FFFFFF;
  --ink: #1A1F24;
  --mut: #4F5864;
  --mut-light: #B8C2CD;
  --line: #DDD8CE;
  --wa: #25D366;
  --wa-2: #1EBE5A;
  --wa-ink: #06331A;

  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --header-h: 64px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--con); color: var(--ink); font: 400 17px/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
small { font-size: .8em; }

:focus-visible { outline: 3px solid var(--yel); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yel); color: var(--navy); padding: 10px 14px; font-weight: 600; border-radius: 6px; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 24px; } }

.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Tipografía de sección ---------- */
.sec { padding: 64px 0; }
.sec--white { background: var(--white); }
.sec--navy { background: var(--navy); color: var(--white); }
@media (min-width: 900px) { .sec { padding: 96px 0; } body { font-size: 18px; } }

h1, h2 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 6vw, 3.4rem); color: var(--navy); margin-bottom: 18px; max-width: 24ch; }
.sec--navy h2 { color: var(--white); }
h3 { font-family: var(--f-head); font-weight: 800; font-size: 1.45rem; line-height: 1.1; color: var(--navy); }
.subhead { font-size: 1.6rem; text-transform: uppercase; margin: 48px 0 4px; }
.muted { color: var(--mut); }
.intro { max-width: 60ch; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 .82rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--yel); flex: none; }
.eyebrow--light { color: var(--mut-light); }

.tag { display: inline-block; font: 600 .74rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); background: var(--con); border: 1px solid var(--line); padding: 5px 8px; border-radius: 4px; white-space: nowrap; }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--yel); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--navy); }
.link .ico { width: 1em; height: 1em; }
.link--light { color: var(--white); }
.link--light:hover { text-decoration-color: var(--white); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 8px; border: 2px solid transparent; font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.1rem; }
.btn--primary { background: var(--yel); color: var(--navy); }
.btn--primary:hover { background: var(--yel-2); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: var(--wa-2); }
.btn--line { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn small { font-weight: 400; opacity: .75; }

/* ---------- Señalamiento ---------- */
.hazard { height: 12px; background: repeating-linear-gradient(-45deg, var(--yel) 0 14px, var(--navy) 14px 28px); }
.hazard--thin { height: 6px; background: repeating-linear-gradient(-45deg, var(--yel) 0 10px, var(--navy-3) 10px 20px); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header__bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); margin-right: auto; }
.brand img { width: 47px; height: 40px; }
.brand__name { font: 800 1.45rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }

.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 12px; font-weight: 600; text-decoration: none; color: var(--white); border-radius: 6px; }
.nav a:hover { color: var(--yel); }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; padding: 10px; border-radius: 6px; cursor: pointer; }
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle .ico--close { display: none; }

@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .js .header.is-open .nav { display: block; }
  .js .header.is-open .ico--open { display: none; }
  .js .header.is-open .ico--close { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .header__wa span { display: none; }
  .header__wa { padding: 0 12px; }
  .header__wa .ico { width: 22px; height: 22px; }
  /* Sin JS, el menú se muestra como fila desplazable */
  html:not(.js) .header__bar { height: auto; flex-wrap: wrap; padding-top: 10px; }
  html:not(.js) .nav { order: 3; width: 100%; overflow-x: auto; }
  html:not(.js) .nav ul { flex-direction: row; padding: 0 0 6px; }
  html:not(.js) .nav a { border: 0; padding: 8px 10px; font-size: 1rem; }
}
@media (max-width: 380px) { .brand__name { font-size: 1.25rem; } .brand img { width: 40px; height: 34px; } }

/* ---------- Hero ---------- */
/* La foto aérea es la protagonista: en celular va limpia arriba y el texto entra sobre su borde inferior;
   en escritorio el velo solo cubre la franja del texto (la foto está en espejo para que la barredora quede a la derecha). */
.hero { position: relative; color: var(--white); background: var(--navy); isolation: isolate; }
.hero__img { position: absolute; left: 0; top: 0; width: 100%; height: min(92vw, 560px); object-fit: cover; object-position: 64% 45%; z-index: -2; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: min(92vw, 560px); z-index: -1;
  background: linear-gradient(180deg, rgba(20,33,46,0) 0%, rgba(20,33,46,0) 42%, rgba(20,33,46,.75) 72%, var(--navy) 100%); }
.hero__body { padding-top: calc(min(92vw, 560px) - 104px); padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.9rem, 12vw, 5.6rem); max-width: 11ch; margin-bottom: 18px; text-shadow: 0 2px 18px rgba(13,22,32,.35); }
.hero__lead { font-size: 1.12rem; max-width: 46ch; color: #E4E9EE; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 520px) { .hero__ctas .btn { width: 100%; } }
@media (min-width: 900px) {
  .hero { display: flex; flex-direction: column; justify-content: center; min-height: clamp(560px, calc(100svh - var(--header-h)), 760px); }
  .hero__img, .hero::before { height: 100%; }
  .hero__img { object-position: center 50%; }
  .hero::before { background: linear-gradient(90deg, rgba(20,33,46,.95) 0%, rgba(20,33,46,.82) 30%, rgba(20,33,46,.2) 52%, rgba(20,33,46,0) 68%); }
  .hero__body { padding-top: 72px; padding-bottom: 72px; }
  .hero__lead { font-size: 1.25rem; }
  .hero .hazard { position: absolute; left: 0; right: 0; bottom: 0; }
}

/* ---------- Banda de foto ---------- */
.banda { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 480px; color: var(--white); background: var(--navy); }
.banda__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; z-index: -2; }
.banda::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,33,46,0) 50%, rgba(20,33,46,.9) 100%); }
@media (min-width: 900px) { .banda { min-height: clamp(420px, 44vw, 560px); } .banda__img { object-position: 72% 55%; } }
.banda__body { padding-top: 32px; padding-bottom: 36px; }
.banda__quote { margin: 0; padding-left: 18px; border-left: 6px solid var(--yel); font: 800 clamp(2rem, 6.5vw, 3.6rem)/.98 var(--f-head); text-transform: uppercase; max-width: 16ch; }
@media (min-width: 900px) { .banda__body { padding-bottom: 56px; } .banda::before { background: linear-gradient(90deg, rgba(20,33,46,.85) 0%, rgba(20,33,46,.4) 40%, rgba(20,33,46,0) 65%); } .banda { align-items: center; } }

/* ---------- Nosotros ---------- */
.nosotros { display: grid; gap: 36px; }
.nosotros__text p { max-width: 58ch; }
.facts { display: grid; gap: 12px; }
.facts li { background: var(--white); border-radius: var(--radius); padding: 18px 20px; border-top: 4px solid var(--navy); }
.facts strong { display: block; font: 800 2.2rem/1 var(--f-head); color: var(--navy); text-transform: uppercase; }
.facts span { color: var(--mut); font-size: .98rem; }
@media (min-width: 900px) { .nosotros { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; } }

/* ---------- Clientes ---------- */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
.logos li { display: flex; align-items: center; justify-content: center; height: 88px; padding: 16px 18px; background: var(--con); border-radius: var(--radius); }
.logos img { max-height: 46px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.15); opacity: .8; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
@media (min-width: 600px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(7, 1fr); } .logos li { height: 96px; } }

/* ---------- Proyectos ---------- */
.cases { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 700px) { .cases { grid-template-columns: repeat(2, 1fr); } }
.case { background: var(--con); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.case img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.case__body { position: relative; padding: 0 20px 20px; }
.case__dur { display: inline-block; margin: -28px 0 14px; background: var(--yel); color: var(--navy); font: 800 2.4rem/1 var(--f-head); text-transform: uppercase; padding: 8px 14px 6px; border-radius: 6px; }
.case h4 { font: 800 1.5rem/1.1 var(--f-head); color: var(--navy); margin-bottom: 6px; }
.case h4 small { font-weight: 600; color: var(--mut); font-size: .75em; }
.case p { color: var(--mut); margin-bottom: 14px; }
/* El caso más largo (Teksid, 12 meses) va a todo lo ancho */
@media (min-width: 700px) {
  .case--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
  .case--wide img { height: 100%; min-height: 320px; aspect-ratio: auto; }
  .case--wide .case__body { align-self: center; padding: 32px 36px; }
  .case--wide .case__dur { margin: 0 0 18px; font-size: 3.6rem; }
  .case--wide h4 { font-size: 2.1rem; }
  .case--wide p { font-size: 1.1rem; }
}

.case-list { margin-top: 28px; border-top: 2px solid var(--navy); }
.case-list li { display: grid; grid-template-columns: 76px 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.case-list__dur { font: 800 1.5rem/1 var(--f-head); color: var(--navy); text-transform: uppercase; grid-row: span 2; }
.case-list__body { color: var(--mut); }
.case-list__body strong { display: block; color: var(--ink); font-weight: 600; }
.case-list .tag { justify-self: start; }
@media (min-width: 800px) {
  .case-list li { grid-template-columns: 110px 1fr auto; align-items: center; }
  .case-list__dur { grid-row: auto; font-size: 1.9rem; }
}

/* ---------- Servicios ---------- */
.services { display: grid; gap: 20px; margin-top: 12px; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service img, .service .ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.service__body { padding: 18px 20px 22px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--mut); font-size: .98rem; }

/* Placeholder de foto pendiente (marcado a propósito para que no pase desapercibido) */
.ph { display: flex; align-items: flex-end; padding: 12px; background: repeating-linear-gradient(-45deg, #E6E2D9 0 16px, #EEEBE4 16px 32px); }
.ph span { font: 600 .78rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #7A6A3A; background: rgba(255,194,14,.35); padding: 6px 8px; border-radius: 4px; }

.others { margin-top: 8px; }
.checks { display: grid; gap: 10px 32px; margin-top: 16px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--navy); background: var(--yel); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 2px; }
@media (min-width: 700px) { .checks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .checks { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Equipos ---------- */
.machines { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 600px) { .machines { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .machines { grid-template-columns: repeat(4, 1fr); } }
.machine { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 20px; display: flex; flex-direction: column; overflow: hidden; }
.machine img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
.machine h3 { margin: 18px 20px 4px; }
.machine p { color: var(--mut); margin: 0 20px 16px; font-size: .98rem; }
.machine__actions { margin: auto 20px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.machine__actions .btn { flex: 1 1 auto; }

.allies { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.allies .subhead { margin-top: 24px; font-size: 1.25rem; color: var(--mut); }
.allies__grid { display: grid; gap: 24px; margin-top: 16px; }
.ally { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.ally img { width: 96px; height: auto; max-height: 48px; object-fit: contain; object-position: left top; margin-top: 4px; }
.ally p { color: var(--mut); font-size: .96rem; margin: 0; }
.ally .link { margin-top: 6px; font-size: .94rem; }
@media (min-width: 800px) { .allies__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 40px; }
.contact__lead { color: var(--mut-light); max-width: 44ch; font-size: 1.1rem; }
.contact__main .btn { margin-top: 12px; }
@media (max-width: 520px) { .contact__main .btn { width: 100%; } }
.contact__list { display: grid; gap: 4px; }
.contact__list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact__list li:last-child { border-bottom: 0; }
.contact__list .ico { width: 24px; height: 24px; color: var(--yel); margin-top: 2px; }
.contact__label { display: block; font: 600 .78rem/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--mut-light); }
.contact__list a:not(.link) { color: var(--white); font-weight: 600; font-size: 1.1rem; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:not(.link):hover { text-decoration: underline; text-decoration-color: var(--yel); }
.contact__list address { margin-bottom: 6px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: var(--mut-light); font-size: .92rem; padding-bottom: 88px; }
.footer__inner { display: grid; gap: 14px; padding-top: 32px; padding-bottom: 8px; }
.footer__legal { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a { color: var(--mut-light); text-underline-offset: 3px; }
.footer__links a:hover { color: var(--white); }
@media (min-width: 900px) {
  .footer { padding-bottom: 24px; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .15s, background-color .15s; }
.wa-float:hover { background: var(--wa-2); transform: scale(1.05); }
.wa-float .ico { width: 32px; height: 32px; }
@media (min-width: 900px) { .wa-float { right: 24px; bottom: 24px; } }

/* ---------- Páginas legales ---------- */
.legal { background: var(--white); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); color: var(--navy); margin: 0 0 8px; }
.legal h2 { font-size: 1.5rem; max-width: none; margin: 36px 0 10px; }
.legal p, .legal li { color: #333B44; }
.legal ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--navy); text-decoration-color: var(--yel); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.todo { background: #FFE58A; outline: 2px dashed #C99700; padding: 0 4px; }
