/* B2 Networks Group - component layer. Every value comes from tokens.css.
   Single-theme by intent: this mocks a public corporate site, whose palette is
   fixed by the 2026 brochure. Every colour is painted explicitly so the page
   holds on any host background. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--b2-bg);
  color: var(--b2-text);
  font-family: var(--b2-font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--b2-font-display);
  line-height: var(--lh-head);
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; max-width: 62ch; }
/* height:auto is load-bearing - without it the HTML height attribute wins as a
   presentational hint and every aspect-ratio below is silently ignored. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--b2-orange);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--b2-orange);
  color: var(--b2-white);
  padding: var(--sp-3) var(--sp-4);
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Shared type roles ------------------------------------------------------- */
.eyebrow {
  font-family: var(--b2-font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  margin: 0;
}

/* The brochure signature: orange pill label with a circular icon badge. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-5) var(--sp-2) var(--sp-2);
  border-radius: var(--r-pill);
  /* Darker end of the orange ramp: white on --b2-orange alone is only 3.0:1,
     which passes AA for bold 19px text but leaves nothing in hand. */
  background: linear-gradient(180deg, var(--b2-orange), var(--b2-orange-dark));
  color: var(--b2-white);
  font-family: var(--b2-font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.pill__badge {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--b2-white);
  color: var(--b2-orange);
  flex: none;
}
.pill__badge svg { width: 1.35rem; height: 1.35rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--b2-font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--b2-orange); color: var(--b2-white); }
.btn--primary:hover { background: var(--b2-orange-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--b2-cyan-pale); color: var(--b2-on-dark); }
.btn--ghost:hover { border-color: var(--b2-white); background: rgba(255,255,255,.08); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--b2-navy-deep);
  border-bottom: 3px solid var(--b2-orange);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
}
.logo img { height: 76px; width: auto; }

/* ponytail: nav wraps on small screens instead of shipping a hamburger.
   The real menu comes from the WP theme, so JS here would be thrown away. */
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); }
.nav > li { list-style: none; }
.nav a {
  color: var(--b2-on-dark);
  text-decoration: none;
  font-family: var(--b2-font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
  display: inline-block;
}
.nav a:hover { color: var(--b2-orange-light); border-bottom-color: var(--b2-orange); }

.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); margin: 0; padding: 0; }

/* Mobile menu button. Hidden on desktop, where the nav is always visible. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(168, 222, 233, .35);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--b2-white);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--b2-orange); color: var(--b2-orange-light); }
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.has-sub { position: relative; }
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  display: grid;
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--b2-line);
  border-top: 3px solid var(--b2-orange);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a {
  display: block;
  background: var(--b2-white);
  color: var(--b2-navy-deep);
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--fs-sm);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: none;
}
.submenu a:hover { background: var(--b2-orange); color: var(--b2-white); }

/* Hero -------------------------------------------------------------------- */
/* The chevron motif now comes from hero-textura.webp, so the CSS wedge that
   used to stand in for it is gone - two chevrons fighting reads as noise.
   The gradient still carries the left third, where the headline sits. */
.hero {
  position: relative;
  background-color: var(--b2-navy-deep);
  background-image:
    linear-gradient(100deg,
      var(--b2-navy-deep) 0%,
      rgba(7, 59, 87, .94) 42%,
      rgba(7, 59, 87, .40) 72%,
      rgba(7, 59, 87, 0) 100%),
    url("assets/hero-textura.webp");
  background-size: cover;
  background-position: center right;
  color: var(--b2-on-dark);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: var(--sp-section);
  /* Room for the claims card to overlap without covering hero content. */
  padding-bottom: calc(var(--sp-section) + 3rem);
}
.hero__eyebrow { color: var(--b2-cyan-pale); margin-bottom: var(--sp-4); }
.hero h1 {
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--b2-orange-light); }
.hero__lead {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--b2-white);
  margin-block: var(--sp-5) var(--sp-4);
}
.hero__body { color: var(--b2-on-dark-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }


/* Claims ------------------------------------------------------------------
   Was a full-bleed orange slab, which made three flat bands in a row and spent
   the loudest colour in the palette on a plain bar. It is now a card that
   straddles the hero seam: the overlap does the transition, and orange goes
   back to being an accent. */
.claims {
  position: relative;
  z-index: 2;
  margin-top: clamp(-4rem, -5vw, -2.5rem);
}
.claims__card {
  background: var(--b2-surface);
  border-radius: var(--r-card);
  border-top: 5px solid var(--b2-orange);
  box-shadow: var(--shadow-lift);
  padding: var(--sp-5) clamp(1.25rem, 3vw, 2.5rem) var(--sp-5);
}
.claims__label { color: var(--b2-orange); margin-bottom: var(--sp-4); }
.claims__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--sp-4) var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.claim {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--b2-font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--b2-navy-deep);
}
/* Chevron marker rather than a dot - same angular language as the hero wedge
   and the process strip, at list scale. */
.claim::before {
  content: "";
  flex: none;
  width: .6rem;
  height: .95rem;
  background: var(--b2-orange);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 32% 50%);
}
/* Hairline between columns, suppressed on the first of each rendered row. */
.claim + .claim { border-inline-start: 1px solid var(--b2-line); padding-inline-start: var(--sp-5); }

/* Certification inside the hero -------------------------------------------
   The client laid this out himself (banenner.png) and called it obligatory,
   so it takes the hero's right column where the activation photo used to be.
   Each mark keeps a white card: Bureau Veritas is brown-on-transparent and
   would sink into the navy without one. */
.hero__cert {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(168, 222, 233, .22);
  border-radius: var(--r-card);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  backdrop-filter: blur(2px);
}
.hero__cert-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--b2-white);
  margin-bottom: var(--sp-4);
}
.hero__cert p {
  color: var(--b2-on-dark-soft);
  font-size: var(--fs-sm);
  text-align: justify;
  hyphens: auto;
  max-width: none;
}
.hero__cert p strong { color: var(--b2-white); }
.hero__cert-marks {
  display: flex;
  /* Centred in the card at the client's request. The footer pair stays left,
     which is what he asked for there. */
  justify-content: center;
  gap: var(--sp-4);
  margin: var(--sp-5) 0;
  padding: 0;
  list-style: none;
}
.hero__cert-marks li {
  background: var(--b2-white);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
  display: grid;
  place-items: center;
}
.hero__cert-marks img { height: 9.5rem; width: auto; object-fit: contain; }

@media (max-width: 620px) {
  .hero__cert-marks img { height: 7rem; }
}
@media (max-width: 380px) {
  .hero__cert-marks img { height: 5.75rem; }
}

/* Sections ---------------------------------------------------------------- */
.section { padding-block: var(--sp-section); }
.section--surface { background: var(--b2-surface); }
.section--dark { background: var(--b2-navy); color: var(--b2-on-dark); }
.section--dark .section__title { color: var(--b2-white); }
.section--dark .section__intro { color: var(--b2-on-dark-soft); }

.section__head { margin-bottom: var(--sp-8); }
.section__eyebrow { color: var(--b2-orange); margin-bottom: var(--sp-3); }
.section--dark .section__eyebrow { color: var(--b2-orange-light); }
.section__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--b2-navy-deep);
}
/* The registered company name, set larger than the sentence it sits in.
   Sized in em so it stays proportional wherever the block is reused: the hero
   card runs at --fs-sm, the footer and the Calidad page at body size. */
.brand-name {
  font-size: 1.22em;
  letter-spacing: 0.01em;
}

/* Justified body copy, requested by the client.
   Deliberately scoped to the wide single-column runs of text. Justifying a
   250px service card would tear rivers of white space through it, so the cards,
   the footer link columns and the stat labels stay ragged-right.
   `hyphens: auto` pairs with lang="es" on <html>: without it the browser can
   only stretch the word spaces, which is what makes justified web text ugly.
   `.prose` lives on the Nosotros pages and simply does not match here. */
.hero__body,
.section__intro,
.footer-cert__body p,
.prose p,
.prose li {
  text-align: justify;
  hyphens: auto;
}

.section__intro { margin-top: var(--sp-4); color: var(--b2-text-soft); font-size: var(--fs-lg); }
/* Client bolds specific phrases in his copy; darken them too so the emphasis
   actually registers against the muted body colour. */
.section__intro strong { color: var(--b2-navy-deep); font-weight: 700; }
/* Closing line of the services intro - a claim, not body copy. */
.section__intro--strong {
  color: var(--b2-navy-deep);
  font-family: var(--b2-font-display);
  font-weight: 700;
}

/* Client asked for this section label to read much larger than a standard
   eyebrow, so it becomes a heading in its own right rather than a kicker. */
.eyebrow--lg {
  font-size: var(--fs-xl);
  letter-spacing: 0.06em;
  color: var(--b2-orange);
}

/* Pull-quote inside a service card. Carries the positioning line the client
   supplied with the Mujer y Genero copy. */
.service__quote {
  margin: 0;
  padding-left: var(--sp-4);
  border-left: 3px solid var(--b2-orange);
  color: var(--b2-navy-deep);
  font-family: var(--b2-font-display);
  font-weight: 600;
  font-style: italic;
}

/* Services ---------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: var(--sp-5); }
/* The card is cut on the bottom-right and the cut is filled with orange, so
   each tile ends in the same diagonal the brochure uses between panels and
   the same angle as .band__media. This replaces an accent
   rail across the top, which is a stock treatment that said nothing about
   this brand. No border and no resting shadow: white on the off-white ground
   separates them, and the angle does the identifying. */
.service {
  --cut: 34px;
  position: relative;
  /* drop-shadow, not box-shadow: box-shadow is drawn from the border box, so
     it would render a square corner behind the diagonal cut. */
  filter: drop-shadow(0 10px 22px rgba(7, 59, 87, .10));
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--b2-surface);
  padding: var(--sp-5);
  /* Reserve the corner so the last line of copy never runs into the wedge. */
  padding-bottom: calc(var(--cut) + var(--sp-4));
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%
  );
}
/* Sits under the cut, so what survives the clip is a band along the diagonal. */
.service::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(var(--cut) * 2);
  height: calc(var(--cut) * 2);
  background: var(--b2-orange);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
/* Scoped to the description only. An unscoped `.service p` (0,1,1) outranks
   `.pill` (0,1,0) and silently repaints the label text - the card title is an
   h3 partly to keep that collision impossible. */
.service > p { color: var(--b2-text-soft); margin: 0; }
.service .pill { align-self: flex-start; }

/* 3D icon slot. A render this detailed turns to mush inside the pill badge,
   so it gets its own size above the label. */
.service__icon { width: 84px; height: 84px; align-self: flex-start; }
.pill--plain { padding-left: var(--sp-5); }

/* Projects - the caption is a credit line, so it stays welded to the image */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--sp-5); }
.project {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--b2-navy-deep);
}
.project img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .4s ease;
}
.project:hover img { transform: scale(1.04); }
.project__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--sp-8) var(--sp-4) var(--sp-4);
  background: linear-gradient(180deg, transparent, rgba(7,59,87,.94) 58%);
  color: var(--b2-white);
}
.project__caption strong { display: block; font-family: var(--b2-font-display); font-size: var(--fs-lg); }
.project__credit { font-size: var(--fs-sm); color: var(--b2-cyan-pale); }

/* Partners -----------------------------------------------------------------
   Was 25 ragged pills plus a colour legend. A key that has to explain the
   colour means the colour was not carrying the information, so the two tiers
   are now named groups and the legend is gone. Equal-width grid cells replace
   the tag-cloud look: this is a roster of public entities, and it should read
   as ordered as a procurement document. */
.partners-group + .partners-group { margin-top: var(--sp-6); }

.partners-group__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(168, 222, 233, .22);
}
.partners-group__title {
  font-family: var(--b2-font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--b2-on-dark-soft);
  margin: 0;
}
/* The count is the credential, so it gets the accent and the figures. */
.partners-group__count {
  font-family: var(--b2-font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--b2-orange-light);
  font-variant-numeric: tabular-nums;
}

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.partners li {
  display: grid;
  place-items: center;
  text-align: center;
  text-wrap: balance;
  min-height: 4.25rem;
  padding: var(--sp-3);
  border: 1px solid rgba(168, 222, 233, .28);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--b2-on-dark);
}
.partners--local li {
  border-color: rgba(240, 111, 34, .55);
  background: rgba(240, 111, 34, .10);
  color: var(--b2-white);
}
/* Exactly six items, so the track count is fixed to divisors of six. auto-fill
   would strand La Candelaria alone on a second row at most widths. */
.partners--local { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .partners--local { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .partners--local { grid-template-columns: repeat(2, 1fr); } }

/* Proceso - the chevron strip carries the sequence, the labels name it.
   Five equal chevrons in the artwork, five equal grid tracks under it. */
.process__strip { margin: 0; }
.process__strip img { width: 100%; }
.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.process__steps li {
  text-align: center;
  font-family: var(--b2-font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--b2-text);
}
.process__steps li::before {
  counter-increment: paso;
  content: counter(paso);
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  color: var(--b2-orange);
}

/* Duo - two capability panels side by side */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: var(--sp-6); }
.duo__item { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
.duo__item img { width: 100%; max-width: 30rem; }
.duo__item h3 { font-size: var(--fs-xl); font-weight: 700; color: var(--b2-navy-deep); }
.duo__item p { color: var(--b2-text-soft); }

/* Cifras - figures are the point of this band, so they get the big type */
.stats {
  background-color: var(--b2-navy-deep);
  background-image: url("assets/infografia-cifras.webp");
  background-size: cover;
  background-position: center;
  color: var(--b2-on-dark);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--sp-6);
}
.stats__item { display: flex; flex-direction: column; gap: var(--sp-1); }
.stats__num {
  font-family: var(--b2-font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1;
  color: var(--b2-orange-light);
  font-variant-numeric: tabular-nums;
}
.stats__label { font-size: var(--fs-sm); color: var(--b2-on-dark-soft); }

/* Cobertura - the map is the evidence, so it leads and the copy supports */
.coverage { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.coverage__map { margin: 0; }
.coverage__map img { width: 100%; max-width: 24rem; margin-inline: auto; }

/* Formacion band ---------------------------------------------------------- */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.band__media { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); box-shadow: var(--shadow-lift); }
.band__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.band__body p + p { margin-top: var(--sp-4); }

/* Contact ----------------------------------------------------------------- */
.contact { background: var(--b2-navy-deep); color: var(--b2-on-dark); }
.contact .section__title { color: var(--b2-white); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.contact__list { display: grid; gap: var(--sp-4); list-style: none; margin: var(--sp-6) 0 0; padding: 0; }
.contact__list li { display: flex; align-items: flex-start; gap: var(--sp-3); }
.contact__list svg { width: 1.25rem; height: 1.25rem; color: var(--b2-orange-light); flex: none; margin-top: .3rem; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--b2-orange-light); text-decoration: underline; }
.contact__note { color: var(--b2-on-dark-soft); }

/* Footer -------------------------------------------------------------------
   Was two lines of small print. A public-sector contractor gets checked here:
   people look for a real address, a real phone, and a company that resolves
   to somewhere. So the footer carries the contact block, the service list and
   the legal line, in that order of usefulness. */
.site-footer {
  background: #052E44;
  color: var(--b2-on-dark-soft);
  font-size: var(--fs-sm);
  /* Same diagonal the service tiles end on, mirrored, so the page closes with
     the motif it has been using throughout. */
  border-top: 4px solid var(--b2-orange);
}
.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: var(--sp-8) var(--sp-6);
}
.site-footer__brand img { height: 92px; width: auto; margin-bottom: var(--sp-4); }
.site-footer__brand p { color: var(--b2-on-dark-soft); max-width: 34ch; }

.footer-col__title {
  font-family: var(--b2-font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--b2-white);
  margin: 0 0 var(--sp-4);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer-list a { text-decoration: none; color: var(--b2-on-dark-soft); }
.footer-list a:hover { color: var(--b2-orange-light); }

/* Contact rows keep the icon column aligned regardless of how the value wraps. */
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer-contact li { display: grid; grid-template-columns: 1.1rem 1fr; gap: var(--sp-3); align-items: start; }
.footer-contact svg { width: 1.1rem; height: 1.1rem; color: var(--b2-orange-light); margin-top: .15rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--b2-orange-light); text-decoration: underline; }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
  padding-block: var(--sp-4);
  border-top: 1px solid rgba(168, 222, 233, .16);
  font-size: var(--fs-xs);
}
.site-footer__bar p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.site-footer__legal a { text-decoration: none; }
.site-footer__legal a:hover { color: var(--b2-orange-light); text-decoration: underline; }

/* Responsive ---------------------------------------------------------------
   Tiers: 1040 (tablet landscape), 860 (tablet portrait / large phone),
   620 (phone), 380 (small phone). Each one exists because a specific piece of
   content breaks there, not on a round number. */

/* Tablet landscape: three service cards get cramped before the grid's own
   minmax would rewrap them, and the hero text column loses its measure. */
@media (max-width: 1040px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
}

@media (max-width: 860px) {
  .hero__inner, .band, .contact__grid, .coverage { grid-template-columns: minmax(0, 1fr); }
  .site-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Stacked claims read as a list, so the column rule stops making sense. */
  .claim + .claim { border-inline-start: none; padding-inline-start: 0; }
  /* The chevron strip is unreadable below ~600px, so it scrolls in its own
     container rather than shrinking the steps into illegibility. */
  .process__scroll { overflow-x: auto; }
  .process__scroll > * { min-width: 34rem; }
  .band__media { clip-path: none; border-radius: var(--r-card); }
  /* The submenu is always open at this width, so a sticky header would park
     ~250px of nav on screen permanently. It scrolls away instead. */
  .site-header { position: static; }
  /* Real collapsible menu. Sticky is back on, because the header is now one
     bar tall until the reader opens it. */
  .site-header { position: sticky; }
  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }

  .site-nav { display: none; flex-basis: 100%; }
  .site-header[data-nav-open="true"] .site-nav { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav > li { border-top: 1px solid rgba(168, 222, 233, .18); }
  .nav a { display: block; padding: var(--sp-3) 0; border-bottom: none; }
  .nav a:hover { border-bottom-color: transparent; }

  /* Submenu stays inline and indented: the sublevel is visible without a
     second tap, which matters when it holds Calidad and Politica Integral. */
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
    min-width: 0;
    padding: 0 0 var(--sp-2) var(--sp-4);
    background: transparent;
    border-top: none;
    box-shadow: none;
  }
  .submenu a {
    background: transparent;
    color: var(--b2-on-dark-soft);
    padding: var(--sp-2) 0;
    font-size: var(--fs-sm);
    text-transform: none;
  }
  .submenu a:hover { background: transparent; color: var(--b2-orange-light); }
  .logo img { height: 50px; }
}

/* Phone: single column everywhere, and the service grid stops being a grid. */
@media (max-width: 620px) {
  .services, .projects, .duo { grid-template-columns: minmax(0, 1fr); }
  .site-footer__main { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  /* Sizes that are not derived from a token, so the mobile scale cannot
     reach them: intrinsic image ratios, fixed icon boxes, the cut corner. */
  .service { --cut: 24px; padding: var(--sp-4); gap: var(--sp-3); }
  .service__icon { width: 54px; height: 54px; }
  .claims__card { padding: var(--sp-4); }

  /* A 4:3 hero photo eats most of a phone screen before the copy starts. */
  .hero__inner { padding-bottom: calc(var(--sp-section) + 1.5rem); }
  .hero__actions { gap: var(--sp-3); margin-top: var(--sp-5); }
  .btn { padding: 0.7rem 1.15rem; }

  .project img { aspect-ratio: 16 / 10; }
  .project__caption { padding: var(--sp-6) var(--sp-3) var(--sp-3); }
  .partners li { min-height: 3.25rem; padding: var(--sp-2); }
  .partners-group__head { margin-bottom: var(--sp-3); }
  .duo__item img { max-width: 22rem; }
  .coverage__map img { max-width: 17rem; }
  .site-footer__brand img { height: 70px; }
  .logo img { height: 44px; }
  .site-header__inner { padding-block: var(--sp-2); gap: var(--sp-2); }
  .nav, .nav-list { gap: var(--sp-3); }
}

/* Small phone: two-up partner cells get too narrow for the longer names. */
@media (max-width: 380px) {
  .partners, .stats__grid { grid-template-columns: minmax(0, 1fr); }
  .pill { font-size: var(--fs-base); padding-inline: var(--sp-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Allies -------------------------------------------------------------------
   Third-party marks keep their own colours, so each sits on its own white tile
   rather than being tinted to match. Equal tiles stop a wide wordmark from
   dominating a compact roundel. */
.allies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ally {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  padding: var(--sp-5);
  background: var(--b2-white);
  border: 1px solid var(--b2-line);
  border-radius: var(--r-card);
}
/* One fixed box per mark, not a height cap. The four logos Imran supplied run
   from 3.5:1 (Santo Tomás) to 1.3:1 (Rápido y Jabonoso); capping only the
   height makes the squarer ones render half as wide as the rest and the row
   stops looking like a set. object-fit keeps each one undistorted inside it. */
.ally img {
  width: 100%;
  max-width: 13rem;
  height: 6rem;
  object-fit: contain;
}

/* Footer certification ------------------------------------------------------
   ISO 9001:2015 through Bureau Veritas, accredited by ONAC. Both are
   third-party marks, so they sit on white tiles at their own colours - a
   certification body's mark must never be recoloured to suit a palette. */
/* Marks first, copy second. The client asked for them larger and pulled to the
   left so they read as part of the certification statement rather than as a
   pair of badges parked in the opposite corner. */
.footer-cert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(168, 222, 233, .16);
}
/* Wider measure than the 62ch default. Justified text needs long lines: the
   shorter the line, the more the browser has to stretch each word gap, and
   that is what opens rivers of white down a paragraph. */
.footer-cert__body p { max-width: 74ch; }
.footer-cert__body p + p { margin-top: var(--sp-3); }
.footer-cert__body strong { color: var(--b2-white); }
.footer-cert__marks {
  /* Pulled ahead of the copy. The heading stays first in the source so the
     block still reads "Calidad certificada, then the marks" to a screen
     reader, but visually the marks lead, as the client asked. */
  order: -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
}
.footer-cert__marks li {
  background: var(--b2-white);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
  display: grid;
  place-items: center;
}
.footer-cert__marks img { height: 8.5rem; width: auto; object-fit: contain; }

@media (max-width: 860px) {
  .footer-cert { grid-template-columns: minmax(0, 1fr); }
  .footer-cert__marks { justify-content: flex-start; }
  .footer-cert__marks img { height: 7rem; }
}
@media (max-width: 620px) {
  .footer-cert__marks img { height: 4.25rem; }
}

/* Emphasis the client marked in his own copy. The muted body colour swallows
   plain <strong>, so bold text also steps up to the darker navy. */
.service > p strong,
.duo__item p strong,
.footer-cert__body strong { color: var(--b2-navy-deep); font-weight: 700; }
.footer-cert__body strong { color: var(--b2-white); }
