/* Illustrated coverage map. The geography is a static SVG generated by
   _tools/coverage-map; dots and labels are HTML on top so they use the site's
   fonts. Shared by index.html and industries.html. */
.cmap {
  container: cmap / inline-size;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f9fd 0%, #eef3fa 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.cmap-stage {
  position: relative;
  aspect-ratio: 1200 / 760;
}
.cmap-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.cmap-city,
.cmap-hub {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  color: #1e293b;
  pointer-events: none;
}
.cmap-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0a2a66;
  box-shadow: 0 0 0 2px #fff;
}
.cmap-label {
  font-weight: 500;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
}
/* The dot is the anchor: shift the box so the dot (not the label) sits on the city. */
.cmap-right { transform: translate(-4.5px, -50%); }
.cmap-left { flex-direction: row-reverse; transform: translate(calc(-100% + 4.5px), -50%); }

.cmap-hub { transform: translate(-9px, -50%); gap: 10px; }
.cmap-hub .cmap-dot {
  width: 18px;
  height: 18px;
  background: #0947c0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgba(9, 71, 192, 0.16);
}
.cmap-hub .cmap-label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #475569;
  font-weight: 500;
}
.cmap-hub .cmap-label strong {
  font-size: 15px;
  color: #0a1525;
  font-weight: 700;
}

.cmap-key {
  position: absolute;
  left: 20px;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  font-size: 13px;
  color: #334155;
}
.cmap-key span { display: flex; align-items: center; gap: 8px; }
.cmap-key i { flex: none; display: inline-block; }
.cmap-key .k-served { width: 16px; height: 12px; border-radius: 3px; background: #bcd0ee; }
.cmap-key .k-hub { width: 12px; height: 12px; border-radius: 50%; background: #0947c0; }
.cmap-key .k-city { width: 9px; height: 9px; margin: 0 1.5px; border-radius: 50%; background: #0a2a66; }

/* Sizes follow the map's width, not the screen's: on desktop the map shares
   the row with the regions panel. Collisions were measured at each step. */
@container cmap (max-width: 820px) {
  .cmap-city, .cmap-hub { font-size: 11px; }
  .cmap-hub .cmap-label strong { font-size: 13px; }
  .cmap-hub .cmap-label { font-size: 11px; }
  .cmap-key { font-size: 12px; padding: 10px 12px; gap: 6px; }
}
/* Too narrow for city names: below ~520px the hub label hits Monterrey.
   Phones get dots only; the map's alt text and the panel carry the coverage. */
@container cmap (max-width: 540px) {
  .cmap-city .cmap-label { display: none; }
  .cmap-dot { width: 7px; height: 7px; }
  .cmap-right { transform: translate(-3.5px, -50%); }
  .cmap-left { transform: translate(calc(-100% + 3.5px), -50%); }
  .cmap-hub { transform: translate(-7px, -50%); }
  .cmap-hub .cmap-dot { width: 14px; height: 14px; box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(9, 71, 192, 0.16); }
  .cmap-key { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; border-radius: 0; box-shadow: none; }
}

/* Proof under the section subtitle: what makes the map a fact, not a claim. */
.cmap-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: #334155;
}
.cmap-proof li { display: block; }
.cmap-proof strong {
  margin-right: 8px;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 700;
  color: #0947c0;
  font-variant-numeric: tabular-nums;
}
.sec-heading.text-center .cmap-proof { justify-content: center; gap: 8px 20px; font-size: 14px; }
.sec-heading.text-center .cmap-proof strong { font-size: 19px; }

/* Counters next to the section title (index). Reuse the About section's
   funfact styles; here they sit in the Services heading layout, so they drop
   the funfact's own vertical margin and are centered against the title. */
.cmap-heading .sec-heading { max-width: 600px; }
.cmap-heading .cmap-funfact { margin: 0; max-width: 440px; }
.cmap-funfact.h10-about-funfact .countup-item { width: 50%; }
@media (max-width: 575px) {
  /* Phones: stack the counters exactly like the About section does. */
  .cmap-funfact.h10-about-funfact .countup-item { width: 100%; }
}

/* Regions panel: the text version of the map, and the next step (quote). */
.cmap-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.cmap-country h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 17px;
  color: #1e3a5f;
}
.cmap-country dl { margin: 0; }
.cmap-country dl > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 12px;
  padding: 6px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.cmap-country dt {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: #1e56a0;
}
.cmap-country dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #475569;
}
/* Mexico is listed by state in running text: complete (it matches the shaded
   states one to one) but lighter than the US rows, which are the main market. */
.cmap-states {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
}

/* The quote block is a footer band of its own, so whatever height the
   panel has left reads as intentional, not as a gap. */
.cmap-cta {
  margin: auto -22px -20px;
  padding: 18px 22px 20px;
  background: #f3f7fd;
  border-top: 1px solid rgba(9, 71, 192, 0.08);
}
.cmap-cta a:focus-visible {
  outline: 3px solid #0947c0;
  outline-offset: 3px;
}
.cmap-cta-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}
.cmap-cta-text strong {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 600;
  color: #0a1525;
}
/* Botón de su tamaño natural, como el resto del sitio (a todo el ancho se veía estirado). */
.cmap-cta .tj-primary-btn {
  display: inline-flex;
  width: auto;
}

/* Wide screens have height to spare next to the map: give the list room. */
@media (min-width: 1400px) {
  .cmap-panel { gap: 18px; padding: 24px 26px; }
  .cmap-cta { margin: auto -26px -24px; padding: 20px 26px 24px; }
  .cmap-country h3 { font-size: 19px; margin-bottom: 8px; }
  .cmap-country dl > div { padding: 9px 0; grid-template-columns: 100px 1fr; }
  .cmap-country dt { font-size: 14px; }
  .cmap-country dd { font-size: 14.5px; line-height: 1.5; }
  .cmap-states { padding-top: 10px; font-size: 14px; }
}

/* Stacked (below 1200px): the two countries side by side under the map. */
@media (max-width: 1199px) {
  .cmap { height: auto; }
  .cmap-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .cmap-cta { grid-column: 1 / -1; }
}
/* Stacked panel on tablets: the band is wide, so text left and the button right. */
@media (min-width: 576px) and (max-width: 1199px) {
  .cmap-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .cmap-cta-text { margin: 0; }
  .cmap-cta .tj-primary-btn { width: auto; flex: none; gap: 14px; }
}
@media (max-width: 575px) {
  .cmap-proof { font-size: 14px; gap: 8px; flex-direction: column; }
  .cmap-proof strong { font-size: 19px; }
  .cmap-panel { grid-template-columns: 1fr; padding: 20px; }
  .cmap-cta { margin: auto -20px -20px; padding: 18px 20px 20px; }
}
