/* =========================================================
   ANGELOPOLITANOS — Sistema de diseño
   Tono: industrial B2B, sólido, técnico, sobrio.
   Paleta: rojo industrial + negro + olivo del logo.
   ========================================================= */

:root {
  /* —— Marca ————————————————————————————————— */
  --brand-red:      #C8302C;   /* rojo industrial del logo */
  --brand-red-dark: #A1241F;   /* rojo oscuro hover */
  --brand-red-tint: #FBE9E8;   /* tint suave */
  --brand-olive:    #5B6B3A;   /* verde olivo del wordmark */
  --brand-olive-dk: #424F2A;   /* olivo oscuro */
  --brand-olive-tint: #EEF1E6;

  /* —— Industrial neutrals ——————————————————— */
  --ink:        #1A1A1A;       /* negro industrial */
  --ink-2:      #2A2A2A;
  --steel:      #2F3437;       /* gris acero (fondos oscuros) */
  --steel-dark: #1E2225;       /* casi negro */
  --steel-light:#3C4348;
  --paper:      #FFFFFF;
  --paper-2:    #F5F5F3;       /* gris muy claro */
  --paper-3:    #ECECE8;
  --stone:      #5A5A5A;
  --stone-2:    #8A8A8A;
  --rule:       #D5D5D2;

  /* —— Tipografía ——————————————————————————— */
  --display: "Barlow Condensed", "Arial Narrow", -apple-system, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* —— Espaciado ——————————————————————————— */
  --pad-x:  clamp(20px, 5vw, 72px);
  --pad-y:  clamp(64px, 10vw, 120px);
  --maxw:   1240px;

  /* —— Misc ———————————————————————————————— */
  --rad:    4px;            /* radios sutiles, no friendly */
  --rad-lg: 8px;
  --easing: cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow:    0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--easing); }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }

::selection { background: var(--brand-red); color: var(--paper); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; z-index: 1000; font-size: 14px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* =========================================================
   Tipografía utilitaria
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-red);
  font-weight: 700;
  margin-bottom: 16px;
}
.eyebrow__bar {
  width: 28px;
  height: 3px;
  background: var(--brand-red);
  display: inline-block;
}

.accent { color: var(--brand-red); }

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--rad);
  cursor: pointer;
  transition: all .3s var(--easing);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--brand-red);
  color: var(--paper);
  border-color: var(--brand-red);
}
.btn--primary:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--accent {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--accent:hover {
  background: var(--brand-red);
  color: var(--paper);
  border-color: var(--brand-red);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--large { padding: 18px 32px; font-size: 15px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand { display: flex; align-items: center; }
.nav__logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.nav__links a:not(.nav__cta) {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 6px 0;
  font-size: 13px;
  transition: color .25s var(--easing);
}
.nav__links a:not(.nav__cta):hover { color: var(--brand-red); }
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--easing);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--brand-red);
  color: var(--paper) !important;
  padding: 11px 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: var(--rad);
  transition: all .3s var(--easing);
  border: 2px solid var(--brand-red);
}
.nav__cta:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s var(--easing);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px var(--pad-x) 28px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.nav__mobile a {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}
.nav__mobile a:last-child {
  border-bottom: none;
  margin-top: 20px;
  background: var(--brand-red);
  color: var(--paper);
  padding: 14px 20px;
  border-radius: var(--rad);
  text-align: center;
}
.nav__mobile.is-open { display: flex; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__logo { height: 38px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(50px, 8vw, 90px) var(--pad-x) clamp(60px, 9vw, 110px);
  background: var(--paper);
  overflow: hidden;
}

/* Patrón industrial sutil de fondo */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__content {
  animation: rise .9s var(--easing) both;
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 6.5vw, 78px);
  line-height: 1.0;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 24px;
  text-transform: uppercase;
}
.hero__title .accent { color: var(--brand-red); }

.hero__lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 56ch;
}

.hero__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--stone);
  margin: 0 0 32px;
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__stats {
  list-style: none;
  padding: 28px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 2px solid var(--ink);
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__stats-label {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1;
}
.hero__stats-text {
  font-size: 12px;
  color: var(--stone);
  font-weight: 500;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  animation: rise .9s .15s var(--easing) both;
}

.hero__excavator {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 460px;
  width: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.18));
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero__visual {
    min-height: 220px;
    order: -1;
  }
  .hero__excavator { max-height: 200px; }
  .hero__stats { grid-template-columns: 1fr; gap: 12px; }
}

/* =========================================================
   Secciones base
   ========================================================= */
.section { padding: var(--pad-y) 0; }
.section__container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section__head {
  max-width: 800px;
  margin-bottom: 64px;
}
.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 20px;
  text-transform: uppercase;
}
.section__title--light { color: var(--paper); }
.section__title--light .accent { color: var(--brand-red); }

.section__intro {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--stone);
  max-width: 62ch;
}

/* =========================================================
   Bloque de valor
   ========================================================= */
.section--value {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.value {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}
.value__lead {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  padding-left: 24px;
  border-left: 4px solid var(--brand-red);
  text-transform: none;
  letter-spacing: 0;
}
.value__col p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--stone);
}

.value__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}
.value__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}
.value__bullets svg {
  color: var(--brand-red);
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 800px) {
  .value { grid-template-columns: 1fr; gap: 24px; }
  .value__lead { font-size: 20px; padding-left: 20px; }
  .value__bullets { grid-template-columns: 1fr; gap: 12px; }
}

/* =========================================================
   Servicios (grid 2×2 con números industriales)
   ========================================================= */
.section--services {
  background: var(--paper);
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.service {
  background: var(--paper);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .3s var(--easing);
}
.service:hover {
  background: var(--paper-2);
}
.service:hover .service__num {
  color: var(--brand-red);
}
.service:hover .service__icon {
  color: var(--brand-red);
}

.service__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 56px;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 16px;
  transition: color .3s var(--easing);
}

.service__icon {
  color: var(--ink);
  margin-bottom: 24px;
  transition: color .3s var(--easing);
}

.service__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.service__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
  margin: 0 0 24px;
  flex-grow: 1;
}

.service__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand-red);
  transition: gap .25s var(--easing);
  align-self: flex-start;
}
.service__cta:hover { color: var(--brand-red-dark); gap: 12px; }

@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; }
}

/* =========================================================
   Aliado / Nosotros (fondo oscuro acero)
   ========================================================= */
.section--ally {
  background: var(--steel-dark);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.section--ally::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 39px,
      rgba(255, 255, 255, 0.015) 39px,
      rgba(255, 255, 255, 0.015) 40px
    );
  pointer-events: none;
}

.section--ally .eyebrow { color: var(--brand-red); }
.section--ally .eyebrow__bar { background: var(--brand-red); }
.section--ally .section__intro,
.section--ally .ally__col p {
  color: rgba(255, 255, 255, 0.75);
}
.section--ally .ally__col strong { color: var(--paper); }

.ally {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.ally__col p {
  font-size: 16px;
  line-height: 1.7;
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--steel);
  padding: 28px;
  border: 1px solid var(--steel-light);
  border-left: 4px solid var(--brand-red);
  transition: all .3s var(--easing);
}
.pillar:hover {
  background: var(--steel-light);
  border-left-color: var(--brand-red-dark);
  transform: translateX(2px);
}
.pillar__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: 12px;
}
.pillar__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--paper);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.pillar p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0;
}

@media (max-width: 900px) {
  .ally { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .pillars { grid-template-columns: 1fr; }
}

/* =========================================================
   CTA mid
   ========================================================= */
.section--cta-mid {
  padding: 0;
  background: var(--paper);
}
.cta-mid {
  background: var(--brand-red);
  padding: 56px clamp(32px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-mid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 29px,
      rgba(255, 255, 255, 0.04) 29px,
      rgba(255, 255, 255, 0.04) 30px
    );
  pointer-events: none;
}
.cta-mid__text { position: relative; }
.cta-mid h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 10px;
  max-width: 22ch;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.cta-mid p {
  font-size: 15px;
  opacity: .9;
  margin: 0;
}
.cta-mid .btn { position: relative; flex-shrink: 0; }

@media (max-width: 800px) {
  .cta-mid { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
}

/* =========================================================
   Contacto
   ========================================================= */
.section--contact { background: var(--paper-2); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all .3s var(--easing);
  position: relative;
}
.contact-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.contact-card--primary {
  background: var(--brand-red-tint);
  border-color: var(--brand-red);
}
.contact-card--primary:hover {
  background: var(--paper);
}
.contact-card--cta {
  background: var(--ink);
  border-color: var(--ink);
}
.contact-card--cta .contact-card__label,
.contact-card--cta .contact-card__value {
  color: var(--paper);
}
.contact-card--cta .contact-card__value {
  font-weight: 500;
}
.contact-card--cta .contact-card__icon {
  background: var(--brand-red);
  color: var(--paper);
}
.contact-card--cta .contact-card__action {
  color: var(--brand-red);
}
.contact-card--cta:hover {
  background: var(--steel-dark);
  border-color: var(--steel-dark);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  color: var(--brand-red);
  border-radius: var(--rad);
  margin-bottom: 20px;
}
.contact-card--primary .contact-card__icon {
  background: var(--brand-red);
  color: var(--paper);
}

.contact-card__label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone-2);
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-card__value {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 18px;
  flex-grow: 1;
  word-break: break-word;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.contact-card__value--small {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--stone);
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0;
}
.contact-card__action {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  transition: color .25s var(--easing);
}
.contact-card__action:hover { color: var(--brand-red-dark); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px var(--pad-x) 32px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.footer__logo {
  width: auto;
  max-height: 100px;
  filter: brightness(1.05);
  background: var(--paper);
  padding: 16px 20px;
  border-radius: var(--rad);
}

.footer__heading {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin: 0 0 16px;
  font-weight: 700;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav a {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: all .3s ease;
}
.footer__nav a:hover { color: var(--brand-red); }

.footer__contact {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}
.footer__contact a {
  color: var(--paper);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.footer__contact a:hover {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

.footer__bottom {
  grid-column: 1 / -1;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  gap: 16px;
  flex-wrap: wrap;
}
.footer__motto {
  font-family: var(--display);
  font-size: 14px;
  margin: 0;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 32px; }
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === BANDA HERO-EXCAVATOR (entre Valor y Servicios) === */
.section--banner {
  padding: 0;
  background: var(--paper);
}
.banner-image {
  margin: 0 auto;
  position: relative;
  max-width: var(--maxw);
  padding: 0 var(--pad-x);
}
.banner-image img {
  width: 100%;
  height: clamp(280px, 32vw, 420px);
  object-fit: cover;
  object-position: center 50%;
  display: block;
  border-radius: var(--rad);
}
.banner-image__caption {
  position: absolute;
  bottom: 24px;
  left: calc(var(--pad-x) + 24px);
  background: rgba(200, 48, 44, 0.95);
  color: var(--paper);
  padding: 18px 24px;
  border-left: 4px solid var(--paper);
  max-width: 360px;
}
.banner-image__label {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  line-height: 1.1;
}
.banner-image__text {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.45;
}

/* === NOSOTROS / Taller (dentro de .section--ally fondo oscuro) === */
.ally__media {
  margin: 0 0 64px;
  position: relative;
  border-radius: var(--rad);
  overflow: hidden;
}
.ally__media img {
  width: 100%;
  height: clamp(280px, 36vw, 460px);
  object-fit: cover;
  object-position: center 50%;
  display: block;
}
.ally__media-caption {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 24px;
  border-left: 4px solid var(--brand-red);
  max-width: 320px;
}
.ally__media-label {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-red);
  letter-spacing: -.01em;
  margin-bottom: 4px;
  line-height: 1.1;
}
.ally__media-text {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.45;
}

/* === CONTACTO / Banner yard === */
.contact-banner {
  margin: 0 0 64px;
  border-radius: var(--rad);
  overflow: hidden;
  max-height: 360px;
}
.contact-banner img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}

/* === Responsive === */
@media (max-width: 800px) {
  .banner-image img { height: clamp(220px, 50vw, 280px); }
  .banner-image__caption {
    position: static;
    margin-top: -32px;
    margin-left: 20px;
    margin-right: 20px;
    max-width: none;
  }
  .ally__media img { height: clamp(220px, 50vw, 320px); }
  .ally__media-caption {
    position: static;
    margin: -32px 20px 0;
    max-width: none;
  }
  .contact-banner { max-height: 240px; }
  .contact-banner img { max-height: 240px; }
}
