/* Halter · GET / Petrax — hoja de estilos compartida */

:root {
  --red: #ed1c24;
  --red-dark: #c4151c;
  --ink: #17181a;
  --surface-dark: #1b1c1f;
  --surface-dark-2: #232427;
  --gray-900: #2b2d30;
  --gray-700: #5c5f63;
  --gray-400: #b1afb3;
  --gray-200: #ded9d5;
  --gray-100: #f1efed;
  --bg: #ffffff;
  --bg-alt: #f7f5f3;
  --border: #e6e2df;
  --text: #1a1a1a;
  --text-soft: #55575b;
  --text-faint: #86888c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -20px rgba(20, 20, 22, 0.35);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Public Sans', -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Archivo', 'Public Sans', sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
code, .mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gray-700); }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 14px;
}
header.site .brand { display: flex; align-items: center; }
header.site .brand img { height: 34px; width: auto; }
nav.main-nav { display: flex; align-items: center; gap: 6px; }
nav.main-nav a {
  padding: 10px 14px; border-radius: 999px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--text-soft);
}
nav.main-nav a:hover { color: var(--text); background: var(--bg-alt); }
nav.main-nav a.active { color: var(--text); background: var(--gray-100); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 10px 18px; font-size: 13.5px; }

.nav-toggle {
  display: none; background: none; border: none; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 860px) {
  nav.main-nav {
    position: fixed; inset: 64px 0 0 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    border-top: 1px solid var(--border);
  }
  nav.main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  nav.main-nav a { padding: 14px 12px; font-size: 16px; border-radius: 10px; }
  .nav-toggle { display: block; }
  .header-actions .btn-outline-hide { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--surface-dark);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(237,28,24,0.16), transparent 42%),
    linear-gradient(-70deg, rgba(177,175,179,0.10), transparent 40%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  padding-block: 84px 72px;
  display: flex; flex-direction: column; gap: 22px;
  max-width: 880px;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); }
.hero p.lede { font-size: 18px; color: rgba(255,255,255,0.78); max-width: 62ch; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.hero .stat-row {
  display: grid; grid-template-columns: repeat(4, auto); gap: 28px;
  margin-top: 20px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.14);
}
.hero .stat b { display: block; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 26px; }
.hero .stat span { font-size: 12.5px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 700px) {
  .hero .stat-row { grid-template-columns: repeat(2, auto); row-gap: 18px; }
}

.page-hero {
  background: var(--surface-dark); color: #fff;
}
.page-hero .wrap { padding-block: 56px 48px; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 17px; max-width: 60ch; }

/* ---------- sections ---------- */
section { padding-block: 72px; }
section.alt { background: var(--bg-alt); }
.sec-head { display: flex; flex-direction: column; gap: 10px; max-width: 62ch; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 32px); }
.sec-head p { color: var(--text-soft); font-size: 16.5px; }

/* ---------- category grid ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card:hover { border-color: var(--gray-400); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card .icon { width: 56px; height: 56px; }
.cat-card h3 { font-size: 18px; }
.cat-card p { color: var(--text-soft); font-size: 14.5px; }
.cat-card .tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.cat-card a.more { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: auto; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- feature list ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.feature .n { font-family: 'IBM Plex Mono', monospace; color: var(--red); font-size: 13px; }
.feature h4 { font-size: 16.5px; }
.feature p { font-size: 14.5px; color: var(--text-soft); }

/* ---------- sector cards ---------- */
.sector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .sector-grid { grid-template-columns: 1fr; } }
.sector-card {
  border-radius: var(--radius); padding: 30px 26px; color: #fff; position: relative; overflow: hidden;
  min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
}
.sector-card.mineria { background: linear-gradient(150deg, #2b2d30, #1b1c1f); }
.sector-card.construccion { background: linear-gradient(150deg, #5c5f63, #2b2d30); }
.sector-card .eyebrow { color: #ff8f8f; }
.sector-card h3 { font-size: 22px; }
.sector-card p { font-size: 14.5px; color: rgba(255,255,255,0.75); max-width: 40ch; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 40px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h3 { font-size: 24px; }
.cta-band p { color: rgba(255,255,255,0.7); font-size: 15px; }

/* ---------- footer ---------- */
footer.site { background: var(--surface-dark); color: rgba(255,255,255,0.7); }
footer.site .wrap { padding-block: 52px 28px; display: flex; flex-direction: column; gap: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: 'Archivo', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45); font-weight: 700; margin-bottom: 14px;
}
.footer-grid a, .footer-grid p { font-size: 14.5px; color: rgba(255,255,255,0.75); }
.footer-grid .flink { display: block; padding: 5px 0; }
.footer-grid .flink:hover { color: #fff; }
footer.site .logo-row img { height: 30px; margin-bottom: 14px; }
footer.site .bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,0.45);
}

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gray-700);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--text-faint); }

/* ---------- contact info cards ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ico { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--red); }
.info-row .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); font-weight: 700; }
.info-row .val { font-size: 15.5px; }
.map-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  filter: grayscale(0.15);
}
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- misc ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gray-100); border-radius: 999px; padding: 7px 14px;
  font-size: 12.5px; font-weight: 700; color: var(--text-soft);
}
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.compat-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.compat-strip span {
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft);
}

/* ---------- icons ---------- */
.icon { width: 64px; height: 64px; flex: none; }
.ico { width: 18px; height: 18px; flex: none; }
.ico-sm { width: 15px; height: 15px; flex: none; }
.btn .ico { width: 19px; height: 19px; }

/* ---------- photo placeholder ---------- */
.photo-slot {
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--gray-400);
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.photo-slot span {
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--text-faint);
  max-width: 22ch;
}
.photo-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
