/* Portada general (public/index.php). Clases propias ta-hm-* con variables
   para tema claro, oscuro y marca de Nicaragua. */

body.ta-public-shell .ta-hm {
  --hm-bg: #ffffff;
  --hm-soft: #f6f7f9;
  --hm-surface: #ffffff;
  --hm-line: rgba(23, 32, 51, .09);
  --hm-text: #121826;
  --hm-body: #4b5565;
  --hm-muted: #6b7484;
  --hm-accent: #e04800;
  --hm-accent-strong: #fe5000;
  --hm-accent-soft: rgba(254, 80, 0, .09);
  --hm-accent-line: rgba(254, 80, 0, .35);
  --hm-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .06);
  --hm-shadow-hover: 0 18px 40px rgba(15, 23, 42, .11);
  --hm-cta-from: #fe5000;
  --hm-cta-to: #ff8a3d;
  background: var(--hm-bg);
  color: var(--hm-text);
}

html[data-theme="dark"] body.ta-public-shell .ta-hm {
  --hm-bg: #0b0f16;
  --hm-soft: #0f141d;
  --hm-surface: #141a25;
  --hm-line: rgba(255, 255, 255, .08);
  --hm-text: #f3f4f6;
  --hm-body: #c3c9d4;
  --hm-muted: #9aa2b1;
  --hm-accent: #ff8a3d;
  --hm-accent-strong: #ff6a00;
  --hm-accent-soft: rgba(255, 106, 0, .13);
  --hm-accent-line: rgba(255, 122, 26, .45);
  --hm-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .28);
  --hm-shadow-hover: 0 20px 46px rgba(0, 0, 0, .42);
}

body.ta-public-shell .ta-hm.is-ni {
  --hm-accent: #243f86;
  --hm-accent-strong: #d90f1d;
  --hm-accent-soft: rgba(36, 63, 134, .08);
  --hm-accent-line: rgba(217, 15, 29, .35);
  --hm-cta-from: #243f86;
  --hm-cta-to: #d90f1d;
}

html[data-theme="dark"] body.ta-public-shell .ta-hm.is-ni {
  --hm-accent: #9fb4ff;
  --hm-accent-strong: #ef2335;
  --hm-accent-soft: rgba(159, 180, 255, .11);
}

/* ---------- Banner principal ---------- */
body.ta-public-shell .ta-hm-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(720px, 88vh);
  padding: 150px 0 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, .88) 0%, rgba(8, 10, 16, .70) 42%, rgba(8, 10, 16, .25) 100%),
    url("../../img/hero/acosa-hero-desktop.webp") center / cover no-repeat;
  color: #ffffff;
}

body.ta-public-shell .ta-hm.is-ni .ta-hm-hero {
  background:
    linear-gradient(90deg, rgba(10, 16, 38, .9) 0%, rgba(10, 16, 38, .72) 42%, rgba(10, 16, 38, .25) 100%),
    url("../../img/hero/nicaragua/la-universal-store-desktop.webp") center / cover no-repeat;
}

body.ta-public-shell .ta-hm-hero-copy {
  max-width: 640px;
}

body.ta-public-shell .ta-hm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .9);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

body.ta-public-shell .ta-hm-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hm-accent-strong);
}

body.ta-public-shell .ta-hm-hero h1 {
  margin: 0 0 18px;
  color: #ffffff !important;
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body.ta-public-shell .ta-hm-hero h1 span {
  color: #ff8a3d;
}

body.ta-public-shell .ta-hm.is-ni .ta-hm-hero h1 span {
  color: #ff5a66;
}

body.ta-public-shell .ta-hm-hero p {
  max-width: 540px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, .82) !important;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
}

body.ta-public-shell .ta-hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

body.ta-public-shell .ta-hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, filter .18s ease;
}

body.ta-public-shell .ta-hm-btn.is-primary {
  background: var(--hm-accent-strong);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(254, 80, 0, .32);
}

body.ta-public-shell .ta-hm-btn.is-glass {
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

body.ta-public-shell .ta-hm-btn.is-white {
  flex: 0 0 auto;
  background: #ffffff;
  color: var(--hm-accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}

body.ta-public-shell .ta-hm-btn:hover,
body.ta-public-shell .ta-hm-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

body.ta-public-shell .ta-hm-btn.is-primary:hover,
body.ta-public-shell .ta-hm-btn.is-primary:focus-visible,
body.ta-public-shell .ta-hm-btn.is-glass:hover,
body.ta-public-shell .ta-hm-btn.is-glass:focus-visible {
  color: #ffffff;
}

body.ta-public-shell .ta-hm-btn.is-glass:hover {
  background: rgba(255, 255, 255, .16);
}

body.ta-public-shell .ta-hm-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

body.ta-public-shell .ta-hm-stats > div {
  display: flex;
  flex-direction: column-reverse;
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid rgba(255, 255, 255, .18);
}

body.ta-public-shell .ta-hm-stats > div:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

body.ta-public-shell .ta-hm-stats dd {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.02em;
}

body.ta-public-shell .ta-hm-stats dt {
  margin-top: 6px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Secciones ---------- */
body.ta-public-shell .ta-hm-section {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--hm-bg);
}

body.ta-public-shell .ta-hm-section.is-soft {
  background: var(--hm-soft);
}

body.ta-public-shell .ta-hm-heading {
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 52px);
  text-align: center;
}

body.ta-public-shell .ta-hm-heading.is-left {
  margin: 0;
  text-align: left;
}

body.ta-public-shell .ta-hm-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--hm-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.ta-public-shell .ta-hm-eyebrow.is-light {
  color: rgba(255, 255, 255, .85);
}

body.ta-public-shell .ta-hm-heading h2,
body.ta-public-shell .ta-hm-cta h2 {
  margin: 0 0 14px;
  color: var(--hm-text) !important;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.028em;
  text-wrap: balance;
}

body.ta-public-shell .ta-hm-heading p {
  margin: 0;
  color: var(--hm-body) !important;
  font-size: 17px;
  line-height: 1.65;
}

/* Tarjetas */
body.ta-public-shell .ta-hm-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

body.ta-public-shell .ta-hm-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  background: var(--hm-surface);
  color: var(--hm-text);
  box-shadow: var(--hm-shadow);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.ta-public-shell .ta-hm-card h3,
body.ta-public-shell .ta-hm-features h3,
body.ta-public-shell .ta-hm-steps h3 {
  margin: 0 0 8px;
  color: var(--hm-text) !important;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}

body.ta-public-shell .ta-hm-card p,
body.ta-public-shell .ta-hm-features p,
body.ta-public-shell .ta-hm-steps p {
  margin: 0;
  color: var(--hm-body) !important;
  font-size: 15px;
  line-height: 1.6;
}

body.ta-public-shell .ta-hm-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--hm-accent-soft);
  color: var(--hm-accent);
}

body.ta-public-shell .ta-hm-icon.is-small {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  border-radius: 12px;
}

/* Pasos del proceso */
body.ta-public-shell .ta-hm-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.ta-public-shell .ta-hm-steps::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--hm-accent-line), var(--hm-line));
}

body.ta-public-shell .ta-hm-steps li {
  position: relative;
  text-align: center;
}

body.ta-public-shell .ta-hm-step-marker {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border: 2px solid var(--hm-accent-line);
  border-radius: 50%;
  background: var(--hm-soft);
  color: var(--hm-accent);
}

body.ta-public-shell .ta-hm-step-number {
  display: block;
  margin-bottom: 6px;
  color: var(--hm-accent);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.ta-public-shell .ta-hm-steps p {
  max-width: 260px;
  margin: 0 auto;
}

/* Talento diverso */
body.ta-public-shell .ta-hm-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

body.ta-public-shell .ta-hm-split .ta-hm-heading p {
  margin-bottom: 22px;
}

body.ta-public-shell .ta-hm-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.ta-public-shell .ta-hm-features li {
  display: flex;
  gap: 16px;
}

/* Enlaces de texto */
body.ta-public-shell .ta-hm-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hm-accent);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

body.ta-public-shell .ta-hm-link .ta-ui-icon {
  transition: transform .18s ease;
}

body.ta-public-shell a.ta-hm-link:hover .ta-ui-icon,
body.ta-public-shell .ta-hm-country:hover .ta-hm-link .ta-ui-icon {
  transform: translateX(3px);
}

/* Países */
body.ta-public-shell .ta-hm-country:hover,
body.ta-public-shell .ta-hm-country:focus-visible {
  transform: translateY(-3px);
  border-color: var(--hm-accent-line);
  box-shadow: var(--hm-shadow-hover);
  color: var(--hm-text);
  outline: none;
}

body.ta-public-shell .ta-hm-country.is-current {
  border-color: var(--hm-accent-line);
  box-shadow: 0 0 0 1px var(--hm-accent-line), var(--hm-shadow);
}

body.ta-public-shell .ta-hm-country-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

body.ta-public-shell .ta-hm-flag img {
  display: block;
  width: 52px;
  height: 39px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--hm-line), 0 6px 14px rgba(15, 23, 42, .12);
}

body.ta-public-shell .ta-hm-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hm-accent-soft);
  color: var(--hm-accent);
  font-size: 12px;
  font-weight: 750;
}

body.ta-public-shell .ta-hm-country p {
  flex: 1 1 auto;
  margin-bottom: 20px;
}

/* Llamada final */
body.ta-public-shell .ta-hm-cta-wrap {
  padding-top: 0;
  background: var(--hm-soft);
}

body.ta-public-shell .ta-hm-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 24px;
  background: linear-gradient(120deg, var(--hm-cta-from), var(--hm-cta-to));
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(254, 80, 0, .25);
}

body.ta-public-shell .ta-hm.is-ni .ta-hm-cta {
  box-shadow: 0 24px 60px rgba(36, 63, 134, .25);
}

body.ta-public-shell .ta-hm-cta h2 {
  margin-bottom: 8px;
  color: #ffffff !important;
}

body.ta-public-shell .ta-hm-cta p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, .88) !important;
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Adaptación ---------- */
@media (max-width: 1199.98px) {
  body.ta-public-shell .ta-hm-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body.ta-public-shell .ta-hm-hero {
    min-height: 0;
    padding: 72px 0 56px;
    background:
      linear-gradient(180deg, rgba(8, 10, 16, .78) 0%, rgba(8, 10, 16, .88) 100%),
      url("../../img/hero/acosa-hero-mobile.webp") center / cover no-repeat;
  }

  body.ta-public-shell .ta-hm.is-ni .ta-hm-hero {
    background:
      linear-gradient(180deg, rgba(10, 16, 38, .78) 0%, rgba(10, 16, 38, .9) 100%),
      url("../../img/hero/nicaragua/la-universal-store-mobile.webp") center / cover no-repeat;
  }

  body.ta-public-shell .ta-hm-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  body.ta-public-shell .ta-hm-steps::before {
    display: none;
  }

  body.ta-public-shell .ta-hm-split {
    grid-template-columns: 1fr;
  }

  body.ta-public-shell .ta-hm-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  body.ta-public-shell .ta-hm-actions .ta-hm-btn {
    flex: 1 1 100%;
  }

  body.ta-public-shell .ta-hm-stats > div {
    padding-right: 18px;
    margin-right: 18px;
  }

  body.ta-public-shell .ta-hm-grid-4,
  body.ta-public-shell .ta-hm-features {
    grid-template-columns: 1fr;
  }

  body.ta-public-shell .ta-hm-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.ta-public-shell .ta-hm-steps li {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 16px;
    text-align: left;
  }

  body.ta-public-shell .ta-hm-step-marker {
    grid-row: span 3;
    margin-bottom: 0;
  }

  body.ta-public-shell .ta-hm-steps p {
    max-width: none;
    margin: 0;
  }

  body.ta-public-shell .ta-hm-card {
    padding: 22px;
  }

  body.ta-public-shell .ta-hm-btn.is-white {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ta-public-shell .ta-hm-btn,
  body.ta-public-shell .ta-hm-card,
  body.ta-public-shell .ta-hm-link .ta-ui-icon {
    transition: none;
  }

  body.ta-public-shell .ta-hm-btn:hover,
  body.ta-public-shell .ta-hm-country:hover {
    transform: none;
  }
}

/* Cifras del banner en celular: tres columnas iguales. */
@media (max-width: 575.98px) {
  body.ta-public-shell .ta-hm-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.ta-public-shell .ta-hm-stats > div {
    margin-right: 0;
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, .18);
  }

  body.ta-public-shell .ta-hm-stats > div:first-child {
    padding-left: 0;
  }

  body.ta-public-shell .ta-hm-stats dd {
    font-size: 26px;
  }

  body.ta-public-shell .ta-hm-stats dt {
    font-size: 12.5px;
    line-height: 1.3;
  }
}

/* Reglas antiguas del tema oscuro oscurecen los enlaces con fondo blanco. */
html body.ta-public-shell .ta-hm .ta-hm-cta .ta-hm-btn.is-white {
  background: #ffffff !important;
  color: var(--hm-accent-strong) !important;
}

html[data-theme="dark"] body.ta-public-shell .ta-hm.is-ni .ta-hm-cta .ta-hm-btn.is-white {
  color: #243f86 !important;
}

/* Mantiene las cifras alineadas arriba aunque una etiqueta ocupe dos líneas. */
body.ta-public-shell .ta-hm-stats > div {
  justify-content: flex-end;
}

/* =====================================================================
   Composición simétrica: todo sobre un mismo eje central, mismo ritmo
   vertical y tarjetas de igual altura. Reemplaza la alineación mixta.
   ===================================================================== */
body.ta-public-shell .ta-hm-section {
  padding: 96px 0;
}

body.ta-public-shell .ta-hm-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

/* Banner centrado */
body.ta-public-shell .ta-hm-hero {
  justify-content: center;
  min-height: min(680px, 86vh);
  padding: 140px 0 80px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, .62) 0%, rgba(8, 10, 16, .78) 60%, rgba(8, 10, 16, .9) 100%),
    url("../../img/hero/acosa-hero-desktop.webp") center / cover no-repeat;
}

body.ta-public-shell .ta-hm.is-ni .ta-hm-hero {
  background:
    linear-gradient(180deg, rgba(10, 16, 38, .62) 0%, rgba(10, 16, 38, .8) 60%, rgba(10, 16, 38, .92) 100%),
    url("../../img/hero/nicaragua/la-universal-store-desktop.webp") center / cover no-repeat;
}

body.ta-public-shell .ta-hm-hero > .container {
  width: 100%;
}

body.ta-public-shell .ta-hm-hero-copy {
  max-width: 780px;
  margin: 0 auto;
}

body.ta-public-shell .ta-hm-hero p {
  margin-right: auto;
  margin-left: auto;
}

body.ta-public-shell .ta-hm-actions {
  justify-content: center;
}

body.ta-public-shell .ta-hm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 600px;
  margin: 0 auto;
}

body.ta-public-shell .ta-hm-stats > div,
body.ta-public-shell .ta-hm-stats > div:last-child {
  align-items: center;
  margin: 0;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, .18);
}

body.ta-public-shell .ta-hm-stats > div:last-child {
  border-right: 0;
}

/* Tarjetas centradas de igual altura */
body.ta-public-shell .ta-hm-grid-4 {
  align-items: stretch;
}

body.ta-public-shell .ta-hm-grid-4 > .ta-hm-card {
  align-items: center;
  text-align: center;
}

body.ta-public-shell .ta-hm-grid-4 > .ta-hm-card .ta-hm-icon {
  margin-right: auto;
  margin-left: auto;
}

/* Talento diverso: rejilla 2×2 centrada con tarjetas iguales */
body.ta-public-shell .ta-hm-features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

body.ta-public-shell .ta-hm-features li {
  align-items: flex-start;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  background: var(--hm-surface);
  box-shadow: var(--hm-shadow);
  text-align: left;
}

body.ta-public-shell .ta-hm-center {
  margin-top: 36px;
  text-align: center;
}

/* Países: bandera centrada y etiqueta en la esquina sin mover el contenido */
body.ta-public-shell .ta-hm-country {
  position: relative;
}

body.ta-public-shell .ta-hm-country .ta-hm-flag {
  margin-bottom: 18px;
}

body.ta-public-shell .ta-hm-country .ta-hm-badge {
  position: absolute;
  top: 14px;
  right: 14px;
}

body.ta-public-shell .ta-hm-country p {
  margin-bottom: 18px;
}

body.ta-public-shell .ta-hm-country .ta-hm-link {
  margin-top: auto;
}

/* Llamada final centrada */
body.ta-public-shell .ta-hm-cta {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

body.ta-public-shell .ta-hm-cta p {
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 991.98px) {
  body.ta-public-shell .ta-hm-section {
    padding: 72px 0;
  }

  body.ta-public-shell .ta-hm-hero {
    min-height: 0;
    padding: 64px 0 56px;
    background:
      linear-gradient(180deg, rgba(8, 10, 16, .72) 0%, rgba(8, 10, 16, .9) 100%),
      url("../../img/hero/acosa-hero-mobile.webp") center / cover no-repeat;
  }

  body.ta-public-shell .ta-hm.is-ni .ta-hm-hero {
    background:
      linear-gradient(180deg, rgba(10, 16, 38, .72) 0%, rgba(10, 16, 38, .92) 100%),
      url("../../img/hero/nicaragua/la-universal-store-mobile.webp") center / cover no-repeat;
  }
}

@media (max-width: 767.98px) {
  body.ta-public-shell .ta-hm-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  body.ta-public-shell .ta-hm-section {
    padding: 56px 0;
  }

  body.ta-public-shell .ta-hm-heading {
    margin-bottom: 32px;
  }

  body.ta-public-shell .ta-hm-stats > div {
    padding: 0 6px;
  }

  body.ta-public-shell .ta-hm-steps li {
    display: block;
    text-align: center;
  }

  body.ta-public-shell .ta-hm-step-marker {
    margin-bottom: 12px;
  }

  body.ta-public-shell .ta-hm-steps p {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* =====================================================================
   Componentes compartidos con Práctica Profesional (public/internships.php)
   ===================================================================== */
body.ta-public-shell .ta-hm-hero.is-brand {
  min-height: min(620px, 80vh);
  background:
    radial-gradient(circle at 50% -10%, rgba(254, 80, 0, .38), transparent 34rem),
    radial-gradient(circle at 90% 100%, rgba(0, 178, 227, .16), transparent 30rem),
    linear-gradient(180deg, #0c1018 0%, #121925 100%);
}

body.ta-public-shell .ta-hm-stats dd.is-text {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

body.ta-public-shell .ta-hm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

body.ta-public-shell .ta-hm-grid-3 > .ta-hm-card {
  align-items: center;
  text-align: center;
}

body.ta-public-shell .ta-hm-grid-3 > .ta-hm-card p {
  flex: 1 1 auto;
  margin-bottom: 20px;
}

body.ta-public-shell .ta-hm-grid-3 .ta-hm-icon,
body.ta-public-shell .ta-hm-docs .ta-hm-icon {
  margin-right: auto;
  margin-left: auto;
}

body.ta-public-shell .ta-hm-area-icon svg {
  width: 26px;
  height: 26px;
}

body.ta-public-shell .ta-hm-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--hm-accent-line);
  border-radius: 10px;
  background: transparent;
  color: var(--hm-accent);
  font-size: 14.5px;
  font-weight: 750;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

body.ta-public-shell .ta-hm-outline:hover,
body.ta-public-shell .ta-hm-outline:focus-visible {
  border-color: var(--hm-accent-strong);
  background: var(--hm-accent-strong);
  color: #ffffff;
  outline: none;
}

body.ta-public-shell .ta-hm-steps.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}

body.ta-public-shell .ta-hm-steps.is-3::before {
  right: 17%;
  left: 17%;
}

/* Documentos: tarjetas de igual ancho centradas (5 en escritorio). */
body.ta-public-shell .ta-hm-docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.ta-public-shell .ta-hm-docs > li {
  flex: 0 0 calc((100% - 64px) / 5);
  align-items: center;
  padding: 22px 18px;
  text-align: center;
}

body.ta-public-shell .ta-hm-docs .ta-hm-icon {
  margin-bottom: 14px;
}

body.ta-public-shell .ta-hm-docs h3 {
  font-size: 16px;
}

body.ta-public-shell .ta-hm-docs p {
  font-size: 14px;
}

body.ta-public-shell .ta-hm-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--hm-accent-soft);
  color: var(--hm-text) !important;
  font-size: 15px;
  text-align: center;
}

body.ta-public-shell .ta-hm-note .ta-ui-icon {
  flex: 0 0 auto;
  color: var(--hm-accent);
}

@media (max-width: 1199.98px) {
  body.ta-public-shell .ta-hm-docs > li {
    flex-basis: calc((100% - 32px) / 3);
  }
}

@media (max-width: 991.98px) {
  body.ta-public-shell .ta-hm-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ta-public-shell .ta-hm-steps.is-3 {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 32px;
  }

  body.ta-public-shell .ta-hm-hero.is-brand {
    background:
      radial-gradient(circle at 50% -10%, rgba(254, 80, 0, .38), transparent 26rem),
      linear-gradient(180deg, #0c1018 0%, #121925 100%);
  }
}

@media (max-width: 767.98px) {
  body.ta-public-shell .ta-hm-docs > li {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 575.98px) {
  body.ta-public-shell .ta-hm-grid-3 {
    grid-template-columns: 1fr;
  }

  body.ta-public-shell .ta-hm-docs > li {
    flex-basis: 100%;
  }

  body.ta-public-shell .ta-hm-stats dd.is-text {
    font-size: 19px;
  }

  body.ta-public-shell .ta-hm-note {
    align-items: flex-start;
    text-align: left;
  }
}

/* =====================================================================
   Quiénes somos (public/about.php)
   ===================================================================== */
body.ta-public-shell .ta-hm-prose {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

body.ta-public-shell .ta-hm-prose p {
  margin: 0 0 18px;
  color: var(--hm-body) !important;
  font-size: 18px;
  line-height: 1.75;
}

body.ta-public-shell .ta-hm-prose p:last-child {
  margin-bottom: 0;
}

body.ta-public-shell .ta-hm-store {
  justify-content: center;
  padding: 30px 22px;
}

body.ta-public-shell .ta-hm-store .ta-hm-flag {
  margin-bottom: 16px;
}

body.ta-public-shell .ta-hm-store-value {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--hm-accent-strong);
  font-size: 44px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.03em;
}

body.ta-public-shell .ta-hm-store-value.is-text {
  font-size: 26px;
  letter-spacing: -.015em;
}

body.ta-public-shell .ta-hm-store-label {
  margin-top: 8px;
  color: var(--hm-body);
  font-size: 15px;
  font-weight: 650;
}

/* =====================================================================
   Beneficios y Contacto
   ===================================================================== */
body.ta-public-shell .ta-hm-section.ta-hm-cta-wrap {
  padding-top: 72px;
}

body.ta-public-shell .ta-hm-card-kicker {
  margin: -6px 0 6px;
  color: var(--hm-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.ta-public-shell .ta-hm-quote {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 30px 32px;
  border: 1px solid var(--hm-accent-line);
  border-radius: 20px;
  background: var(--hm-surface);
  box-shadow: var(--hm-shadow);
  text-align: center;
}

body.ta-public-shell .ta-hm-quote .ta-hm-icon {
  margin: 0 auto 16px;
}

body.ta-public-shell .ta-hm-quote h3 {
  margin: 0 0 8px;
  color: var(--hm-text) !important;
  font-size: 20px;
  font-weight: 800;
}

body.ta-public-shell .ta-hm-quote p {
  margin: 0;
  color: var(--hm-body) !important;
  font-size: 16px;
  line-height: 1.6;
}

/* Tarjetas de contacto */
body.ta-public-shell .ta-hm-contact .ta-hm-flag {
  margin-bottom: 16px;
}

body.ta-public-shell .ta-hm-contact h3 {
  margin-bottom: 16px;
}

body.ta-public-shell .ta-hm-contact-list {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 10px;
  width: 100%;
  margin: 0 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--hm-line);
  list-style: none;
  text-align: left;
}

body.ta-public-shell .ta-hm-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  color: var(--hm-body);
  font-size: 14.5px;
  line-height: 1.45;
}

body.ta-public-shell .ta-hm-contact-list .ta-ui-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--hm-accent);
}

body.ta-public-shell .ta-hm-contact-list a {
  min-width: 0;
  color: var(--hm-text) !important;
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
}

body.ta-public-shell .ta-hm-contact-list a:hover,
body.ta-public-shell .ta-hm-contact-list a:focus-visible {
  color: var(--hm-accent) !important;
  text-decoration: underline;
}

body.ta-public-shell .ta-hm-btn.is-whatsapp {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  background: #1fa855;
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(31, 168, 85, .22);
}

body.ta-public-shell .ta-hm-btn.is-whatsapp:hover,
body.ta-public-shell .ta-hm-btn.is-whatsapp:focus-visible {
  color: #ffffff;
}

body.ta-public-shell .ta-hm-outline.is-block {
  width: 100%;
  min-height: 46px;
  text-decoration: none;
}

/* =====================================================================
   Listado de vacantes (public/jobs.php): banner compacto centrado.
   ===================================================================== */
body.ta-public-shell .ta-hm-hero.is-compact {
  min-height: 0;
  padding: 136px 0 64px;
}

body.ta-public-shell .ta-hm-hero.is-compact h1 {
  font-size: clamp(34px, 4.6vw, 54px);
}

body.ta-public-shell .ta-hm-hero.is-compact p {
  margin-bottom: 34px;
}

body.ta-public-shell .ta-hm-section.ta-hm-jobs {
  padding-top: 56px;
}

@media (max-width: 991.98px) {
  body.ta-public-shell .ta-hm-hero.is-compact {
    padding: 56px 0 48px;
  }
}

/* =====================================================================
   Portadas por país (includes/public_home_template.php)
   ===================================================================== */
body.ta-public-shell .ta-hm-section.ta-hm-kpis-wrap {
  padding: 56px 0;
}

body.ta-public-shell .ta-hm-kpi {
  align-items: center;
  padding: 26px 20px;
  text-align: center;
}

body.ta-public-shell .ta-hm-kpi .ta-hm-icon {
  margin: 0 auto 14px;
}

body.ta-public-shell .ta-hm-kpi strong {
  color: var(--hm-text);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.025em;
}

body.ta-public-shell .ta-hm-kpi > span:last-child {
  margin-top: 8px;
  color: var(--hm-body);
  font-size: 14.5px;
  font-weight: 600;
}

body.ta-public-shell .ta-hm-count {
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--hm-accent-soft);
  color: var(--hm-accent);
  font-size: 13px;
  font-weight: 700;
}

body.ta-public-shell .ta-hm-count strong {
  font-weight: 850;
}

body.ta-public-shell .ta-hm-country .ta-hm-count + .ta-hm-link {
  margin-top: 0;
}

body.ta-public-shell .ta-hm-country p {
  flex: 1 1 auto;
}

body.ta-public-shell .ta-hm-actions.is-inline {
  justify-content: center;
  margin: 20px 0 0;
}

/* Cifras dentro de la sección de vacantes y fondo de la llamada final según
   la alternancia de cada página. */
body.ta-public-shell .ta-hm-kpis.is-inline {
  margin-top: 48px;
}

body.ta-public-shell .ta-hm-section.ta-hm-cta-wrap:not(.is-soft) {
  background: var(--hm-bg);
}
