.es-mx-page {
  margin: 0;
  background: #fbfaf6;
  color: #171512;
  font-family: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
}

.es-mx-page a { color: inherit; }

.es-mx-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(23, 18, 15, 0.12);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(14px);
}

.es-mx-brand {
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
  color: #1f4f45;
}

.es-mx-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.es-mx-nav a,
.es-mx-lang {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #514b43;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.es-mx-nav a.is-active,
.es-mx-nav a:hover,
.es-mx-lang {
  background: #1f4f45;
  color: #fffaf2;
}

.es-mx-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.es-mx-hero {
  display: grid;
  gap: 16px;
  padding: 48px 0 34px;
  border-bottom: 1px solid rgba(23, 18, 15, 0.12);
}

.es-mx-hero--compact { padding: 34px 0 26px; }

.es-mx-eyebrow {
  margin: 0;
  color: #c96442;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.es-mx-hero h1,
.es-mx-article h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 900;
}

.es-mx-hero p,
.es-mx-lead {
  max-width: 760px;
  margin: 0;
  color: #5f5b54;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.65;
}

.es-mx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.es-mx-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #1f4f45;
  color: #fffaf2;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.es-mx-section { padding: 28px 0 8px; }

.es-mx-section h2,
.es-mx-band h2,
.es-mx-article h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.es-mx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.es-mx-card {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(23, 18, 15, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(23, 18, 15, 0.05);
  text-decoration: none;
}

.es-mx-card:hover {
  border-color: rgba(31, 79, 69, 0.42);
  transform: translateY(-1px);
}

.es-mx-card span {
  color: #c96442;
  font-size: 12px;
  font-weight: 900;
}

.es-mx-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.es-mx-card p {
  margin: 0;
  color: #5f5b54;
  font-size: 14px;
  line-height: 1.55;
}

.es-mx-card--listing { min-height: 230px; }

.es-mx-card--listing img,
.es-mx-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #eee8de;
}

.es-mx-band,
.es-mx-source {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(31, 79, 69, 0.18);
  border-radius: 8px;
  background: #eef6f1;
}

.es-mx-band p,
.es-mx-source {
  color: #4f6159;
  line-height: 1.65;
}

.es-mx-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 0 50px;
}

.es-mx-article section { margin-top: 26px; }

.es-mx-article p,
.es-mx-article li {
  color: #4f4b45;
  font-size: 16px;
  line-height: 1.72;
}

.es-mx-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: #1f4f45;
  font-weight: 900;
  text-decoration: none;
}

.es-mx-cover { margin-top: 18px; }

.es-mx-facts { padding-left: 20px; }

.es-mx-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 34px;
  border-top: 1px solid rgba(23, 18, 15, 0.12);
  color: #5f5b54;
  font-size: 13px;
}

@media (max-width: 720px) {
  .es-mx-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 16px;
  }

  .es-mx-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .es-mx-main {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .es-mx-hero h1,
  .es-mx-article h1 {
    font-size: 34px;
  }

  .es-mx-hero p,
  .es-mx-lead {
    font-size: 15px;
  }
}
