/* HUMI — Clerk-inspired dark editorial (Geist) */

:root {
  --bg: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #161616;
  --bg-card: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #f5f5f5;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #164a89;
  --accent-2: #4a8fd4;
  --green: #4ade80;
  --amber: #fbbf24;
  --container: 1120px;
  --reading-measure: 42rem;
  --gutter: clamp(16px, 4vw, 28px);
  --radius: 10px;
  --ease: ease;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body.hm {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.2vw + 14px, 17px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

body.hm-nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.hm-skip {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  transform: translateY(-140%);
  z-index: 10001;
  transition: transform 0.15s var(--ease);
}

.hm-skip:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.hm-wrap {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* —— Banner anuncio —— */
.hm-announce {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.hm-announce__inner {
  display: flex;
  justify-content: center;
  padding: 10px var(--gutter);
}

.hm-announce__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hm-announce__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 74, 137, 0.35);
  border: 1px solid rgba(74, 143, 212, 0.35);
  color: var(--accent-2);
  font-weight: 600;
}

/* —— Nav —— */
.hm-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.hm-nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  min-height: 56px;
}

.hm-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: var(--text);
  flex-shrink: 0;
}

.hm-logo__mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--accent);
  border: 1px solid rgba(74, 143, 212, 0.35);
}

.hm-logo span {
  color: var(--text-muted);
  font-weight: 500;
}

.hm-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.hm-nav__toggle:hover {
  border-color: var(--border-hover);
}

.hm-nav__toggle-icon,
.hm-nav__toggle-icon::before,
.hm-nav__toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.hm-nav__toggle-icon {
  position: relative;
}

.hm-nav__toggle-icon::before,
.hm-nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.hm-nav__toggle-icon::before {
  top: -6px;
}

.hm-nav__toggle-icon::after {
  top: 6px;
}

.hm-nav--open .hm-nav__toggle-icon {
  background: transparent;
}

.hm-nav--open .hm-nav__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.hm-nav--open .hm-nav__toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.hm-nav__panel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.hm-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hm-nav__links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.hm-nav__links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hm-nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 8px;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}

.hm-btn:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.hm-btn--primary {
  background: #fff;
  color: var(--bg);
  border-color: #fff;
}

.hm-btn--primary:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.92);
}

.hm-btn--ghost {
  border-color: var(--border);
  color: var(--text);
}

@media (max-width: 767px) {
  .hm-nav__toggle {
    display: inline-flex;
  }

  .hm-nav__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px var(--gutter) 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 8, 8, 0.98);
    border-bottom: 1px solid var(--border);
    max-height: min(70vh, calc(100dvh - 72px));
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
    overflow-y: auto;
    gap: 20px;
  }

  .hm-nav--open .hm-nav__panel {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  .hm-nav__links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hm-nav__links a {
    padding: 14px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
  }

  .hm-nav__cta {
    flex-direction: column;
    margin-left: 0;
    width: 100%;
  }

  .hm-nav__cta .hm-btn {
    width: 100%;
  }
}

/* —— Secciones —— */
.hm-section {
  padding: clamp(3.25rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--border);
}

.hm-section:first-of-type {
  border-top: none;
}

.hm-section--tight {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.hm-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 12px;
}

.hm-section__title {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3vw + 0.6rem, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

.hm-section__lede {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.hm-section__head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

/* —— Hero —— */
.hm-hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hm-hero__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 20%, transparent 70%);
  opacity: 0.45;
}

.hm-hero__glow {
  pointer-events: none;
  position: absolute;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  left: 50%;
  top: -10%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(22, 74, 137, 0.35) 0%, transparent 62%);
  opacity: 0.55;
}

.hm-hero__content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.hm-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hm-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: hm-pulse 2.4s ease-in-out infinite;
}

@keyframes hm-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-hero__eyebrow-dot {
    animation: none;
    opacity: 0.85;
  }
}

.hm-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 3vw + 1rem, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--text);
}

.hm-hero--home h1 {
  font-size: clamp(2.15rem, 5vw + 1rem, 3.75rem);
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, rgba(245, 245, 245, 0.72) 42%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-hero__lede {
  margin: 0 0 26px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 38rem;
}

.hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hm-hero__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.hm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
  max-width: 36rem;
}

@media (max-width: 520px) {
  .hm-stats {
    grid-template-columns: 1fr;
  }
}

.hm-stat {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.15s var(--ease);
}

.hm-stat:hover {
  border-color: var(--border-hover);
}

.hm-stat__val {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hm-stat__lbl {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* —— Bento —— */
.hm-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.hm-bento__card {
  grid-column: span 4;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.15s var(--ease);
}

.hm-bento__card:hover {
  border-color: var(--border-hover);
}

.hm-bento__card--wide {
  grid-column: span 6;
}

.hm-bento__card--full {
  grid-column: span 12;
}

@media (max-width: 900px) {
  .hm-bento__card,
  .hm-bento__card--wide {
    grid-column: span 12;
  }
}

.hm-bento__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.hm-bento__card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hm-bento__card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* —— Programas —— */
.hm-programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .hm-programs {
    grid-template-columns: 1fr;
  }
}

.hm-program {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.15s var(--ease);
}

.hm-program::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
  transition: background 0.15s var(--ease);
}

.hm-program--featured::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hm-program:hover {
  border-color: var(--border-hover);
}

.hm-program__age {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.hm-program h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.hm-program__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hm-program__row strong {
  color: var(--text);
  font-weight: 500;
}

.hm-program__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.hm-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

/* —— Comparación —— */
.hm-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 767px) {
  .hm-compare {
    grid-template-columns: 1fr;
  }
}

.hm-compare__col {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.hm-compare__col--humi {
  background: var(--bg-card);
  border-color: var(--border-hover);
  border-top: 3px solid var(--accent);
}

.hm-compare__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.hm-compare ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-compare li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hm-compare li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.hm-compare__col--humi li::before {
  content: "";
  width: 6px;
  height: 6px;
  top: 0.45em;
  border-radius: 1px;
  background: var(--accent-2);
}

/* —— Reseñas —— */
.hm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 767px) {
  .hm-grid-3 {
    grid-template-columns: 1fr;
  }
}

.hm-review {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.15s var(--ease);
}

.hm-review:hover {
  border-color: var(--border-hover);
}

.hm-review__stars {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 12px;
}

.hm-review blockquote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hm-review__name {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hm-review__src {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hm-review__src a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Equipo —— */
.hm-person {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.15s var(--ease);
}

.hm-person:hover {
  border-color: var(--border-hover);
}

.hm-person__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hm-person__avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent-2);
  background: rgba(22, 74, 137, 0.2);
}

.hm-person h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.hm-person__role {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hm-person p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* —— Blog cards —— */
.hm-blog-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.15s var(--ease);
  height: 100%;
}

.hm-blog-card:hover {
  border-color: var(--border-hover);
}

.hm-blog-card__meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.hm-blog-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.hm-blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.hm-blog-card h3 a:hover {
  color: var(--accent-2);
}

.hm-blog-card p {
  margin: 0 0 16px;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.hm-blog-card__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-top: auto;
}

.hm-blog-card__link:hover {
  color: var(--text);
}

/* —— FAQ —— */
.hm-faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.hm-faq__item {
  border-bottom: 1px solid var(--border);
}

.hm-faq__item:last-child {
  border-bottom: 0;
}

.hm-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.hm-faq__btn:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hm-faq__icon {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-2);
  flex-shrink: 0;
  width: 1.25em;
  text-align: center;
}

.hm-faq__panel {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hm-faq__panel a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hm-faq__item--open .hm-faq__panel {
  display: block;
}

.hm-faq__item--open .hm-faq__icon-open {
  display: none;
}

.hm-faq__item--open .hm-faq__icon-close {
  display: inline;
}

.hm-faq__icon-close {
  display: none;
}

/* —— CTA final —— */
.hm-cta {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

.hm-cta__glow {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: min(100vw, 900px);
  height: min(100vw, 900px);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(22, 74, 137, 0.28) 0%, transparent 55%);
  opacity: 0.7;
}

.hm-cta .hm-wrap {
  position: relative;
  z-index: 1;
}

.hm-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hm-cta p {
  margin: 0 auto 22px;
  max-width: 28rem;
  color: var(--text-muted);
}

.hm-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* —— Footer —— */
.hm-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.hm-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hm-footer a {
  color: var(--text-muted);
}

.hm-footer a:hover {
  color: var(--accent-2);
}

.hm-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hm-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.hm-footer__links a {
  text-decoration: none;
}

.hm-footer__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hm-footer__meta a {
  color: var(--text-muted);
}

/* —— HTML sitemap (/sitemap) —— */
.hm-sitemap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

@media (min-width: 900px) {
  .hm-sitemap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hm-sitemap__col--wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .hm-sitemap__col--wide {
    grid-column: span 2;
  }
}

.hm-sitemap__heading {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.hm-sitemap__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

@media (min-width: 640px) {
  .hm-sitemap__col--wide .hm-sitemap__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
  }
}

.hm-sitemap__list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
}

.hm-sitemap__list a:hover {
  color: var(--accent-2);
}

/* —— Editorial: mapa + tablas —— */
.hm-map-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 16 / 10;
}

.hm-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hm-card {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.hm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.hm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hm-table th,
.hm-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.hm-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-2);
}

.hm-table tr:last-child td {
  border-bottom: 0;
}

.hm-table td {
  color: var(--text-muted);
}

.hm-table strong {
  color: var(--text);
  font-weight: 600;
}

/* —— Instagram estático —— */
.hm-insta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .hm-insta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hm-insta a {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s var(--ease);
}

.hm-insta a:hover {
  border-color: var(--border-hover);
}

.hm-insta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Página artículo (lectura centrada, cuerpo justificado) —— */
.hm-main {
  min-height: 40vh;
}

.hm-article {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 9vw, 5rem);
}

.hm-article .hm-eyebrow {
  display: block;
}

.hm-article__head {
  width: 100%;
  max-width: var(--reading-measure);
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hm-article__head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw + 0.8rem, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--text);
  text-wrap: balance;
}

.hm-article__lede {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.15rem);
  line-height: 1.6;
  text-align: center;
  text-wrap: pretty;
}

.hm-prose {
  width: 100%;
  max-width: var(--reading-measure);
  margin-inline: auto;
}

.hm-prose h2 {
  margin: clamp(2rem, 5vw, 2.75rem) 0 12px;
  font-size: clamp(1.2rem, 1.5vw + 0.75rem, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.25;
  text-align: left;
  text-wrap: balance;
}

.hm-prose h3 {
  margin: 1.5rem 0 10px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.hm-prose p,
.hm-prose li {
  color: var(--text-muted);
  font-size: clamp(1rem, 0.25vw + 0.95rem, 1.0625rem);
  line-height: 1.72;
  letter-spacing: -0.01em;
}

.hm-prose p {
  margin: 0 0 1.1em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

.hm-prose ul {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

.hm-prose li {
  margin: 0.45em 0;
  text-align: left;
}

.hm-prose a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hm-prose strong {
  color: var(--text);
}

.hm-prose > p:first-of-type {
  color: var(--text);
  font-size: clamp(1.02rem, 0.3vw + 0.98rem, 1.08rem);
}

.hm-prose .blogArticle__timeline {
  list-style: none;
  margin: 0 0 20px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--border);
}

.hm-prose .blogArticle__timeline li {
  margin: 14px 0;
}

.hm-prose .blogArticle__timeline strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 520px) {
  .hm-prose p,
  .hm-editorial__story.hm-prose p,
  .hm-editorial__belt p {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }

  .hm-editorial__quote,
  .hm-editorial__reflection p {
    text-align: left;
  }
}

/* —— Serie editorial: cinturones (memoria / tono cinematográfico) —— */
.hm-editorial {
  --belt-accent: var(--accent-2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hm-editorial__hero {
  --hero-focus: 50% 50%;
  position: relative;
  width: 100%;
  max-width: min(100%, 56rem);
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #050505;
  box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.65);
}

.hm-editorial__hero--portrait {
  aspect-ratio: 4 / 5;
  max-width: min(100%, 28rem);
  max-height: min(78vh, 560px);
}

.hm-editorial__hero--square {
  aspect-ratio: 1 / 1;
  max-width: min(100%, 32rem);
  max-height: min(56vh, 440px);
}

.hm-editorial__hero--landscape {
  aspect-ratio: 16 / 9;
  max-height: min(64vh, 500px);
}

.hm-editorial__hero--wide {
  aspect-ratio: 2 / 1;
  max-height: min(48vh, 400px);
}

.hm-editorial__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.12) 0%, rgba(8, 8, 8, 0.45) 100%);
  opacity: 0.92;
}

.hm-editorial__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hm-editorial__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus, 50% 50%);
  transform-origin: center center;
  transform: scale(1.02);
  transform-origin: var(--hero-focus, center center);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .hm-editorial__hero:hover .hm-editorial__hero-img {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-editorial__hero-img {
    transform: none;
    transition: none;
  }
}

.hm-editorial__head {
  width: 100%;
  max-width: var(--reading-measure);
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.25rem);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hm-editorial__head .hm-eyebrow {
  margin-bottom: 1rem;
}

.hm-editorial__head h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw + 0.5rem, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}

.hm-editorial__quote {
  width: 100%;
  max-width: var(--reading-measure);
  margin: 0 auto clamp(2.25rem, 5vw, 3rem);
  padding: 0;
  border: none;
  font-size: clamp(1.15rem, 1.8vw + 0.55rem, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: var(--text);
  text-align: center;
  text-wrap: pretty;
}

.hm-editorial__quote::before {
  content: "“";
  display: block;
  margin-bottom: 0.35em;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--belt-accent);
  opacity: 0.85;
}

.hm-editorial__section {
  width: 100%;
  max-width: var(--reading-measure);
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.hm-editorial__section-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--belt-accent);
}

.hm-editorial__belt p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.hm-editorial__belt p + p {
  margin-top: 0.85em;
}

.hm-editorial__story .hm-editorial__section-label {
  margin-bottom: 1.25rem;
}

.hm-editorial__reflection strong {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hm-editorial__story.hm-prose {
  max-width: var(--reading-measure);
}

.hm-editorial__story.hm-prose p {
  font-size: clamp(1rem, 0.25vw + 0.95rem, 1.0625rem);
  line-height: 1.72;
  color: var(--text-muted);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

.hm-editorial__story.hm-prose p:first-of-type {
  color: var(--text);
  font-size: 1.08rem;
}

.hm-editorial__poomsae {
  width: 100%;
  max-width: var(--reading-measure);
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(1.75rem, 4vw, 2.25rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.hm-editorial__poomsae-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-editorial__poomsae-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.hm-editorial__poomsae-item:first-child {
  padding-top: 0.15rem;
}

.hm-editorial__poomsae-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.hm-editorial__poomsae-item__body {
  min-width: 0;
}

.hm-editorial__poomsae-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.35;
}

.hm-editorial__poomsae-meta {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 450;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hm-editorial__poomsae-meta [lang="ko"] {
  letter-spacing: 0.02em;
}

.hm-editorial__poomsae-sep {
  color: var(--belt-accent);
  font-weight: 600;
  padding-inline: 0.1em;
}

.hm-editorial__poomsae-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  flex-shrink: 0;
  padding: 0.4em 0.75em;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.hm-editorial__poomsae-link:hover {
  color: var(--belt-accent);
  border-color: color-mix(in srgb, var(--belt-accent) 45%, var(--border));
  background: color-mix(in srgb, var(--belt-accent) 8%, transparent);
}

.hm-editorial__poomsae-link-icon {
  font-size: 0.95em;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hm-editorial__poomsae-link:hover .hm-editorial__poomsae-link-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

.hm-editorial__poomsae-foot {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 520px) {
  .hm-editorial__poomsae-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .hm-editorial__poomsae-link {
    align-self: flex-start;
  }
}

.hm-editorial__reflection {
  width: 100%;
  max-width: var(--reading-measure);
  margin: 0 auto clamp(2.5rem, 5vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--border);
}

.hm-editorial__reflection p {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw + 0.7rem, 1.22rem);
  line-height: 1.58;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 500;
  text-align: center;
  text-wrap: pretty;
}

.hm-editorial__series {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--reading-measure);
  margin-inline: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.hm-editorial__series a {
  color: var(--text-muted);
  font-weight: 500;
}

.hm-editorial__series a:hover {
  color: var(--belt-accent);
}

.hm-editorial__series-index {
  width: 100%;
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hm-editorial__series--center {
  justify-content: center;
  text-align: center;
}

.hm-editorial__series--center .hm-editorial__series-index {
  text-align: center;
}

.hm-editorial__series--center .hm-editorial__series-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  width: 100%;
}

.hm-editorial[data-belt="white"] {
  --belt-accent: #e2e8f0;
}

.hm-editorial[data-belt="orange"] {
  --belt-accent: #fb923c;
}

.hm-editorial[data-belt="yellow"] {
  --belt-accent: #facc15;
}

.hm-editorial[data-belt="green"] {
  --belt-accent: #4ade80;
}

.hm-editorial[data-belt="blue"] {
  --belt-accent: #60a5fa;
}

.hm-editorial[data-belt="red"] {
  --belt-accent: #f87171;
}

.hm-editorial[data-dan="1"] {
  --belt-accent: #e5e5e5;
}

.hm-editorial[data-dan="2"] {
  --belt-accent: #a3a3a3;
}

.hm-editorial[data-dan="3"] {
  --belt-accent: #d4d4d8;
}

.hm-editorial[data-dan="4"] {
  --belt-accent: #94a3b8;
}

.hm-editorial[data-dan="5"] {
  --belt-accent: #fafafa;
}

.hm-editorial__story.hm-prose h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: left;
}

/* —— Blog: carrusel (lógica y estructura alineadas con preview Guidde, clases hm-*) —— */
.hm-blog-section {
  padding: clamp(2.75rem, 6vw, 4.25rem) 0 clamp(2rem, 4vw, 3rem);
  background: #e8e2da;
  border-top: 1px solid rgba(15, 18, 34, 0.06);
  border-bottom: 1px solid rgba(15, 18, 34, 0.06);
  color: #0f172a;
}

.hm-blog-section .hm-section__head {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.hm-blog-section .hm-eyebrow {
  color: #64748b;
}

.hm-blog-section .hm-section__title {
  color: #0f172a;
}

.hm-blog-section .hm-section__lede {
  color: #475569;
}

.hm-blog-carousel__viewport {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: max(16px, calc(50vw - min(410px, 46vw)));
  padding-block: clamp(0.75rem, 2vw, 1.25rem);
  padding-inline: max(16px, calc(50vw - min(410px, 46vw)));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hm-blog-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.hm-blog-carousel__viewport:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.hm-blog-slide {
  flex: 0 0 min(820px, min(92vw, calc(100vw - 32px)));
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.hm-blog-slide__card {
  height: 100%;
  min-height: min(320px, 52vh);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.35rem) clamp(1.35rem, 3vw, 2.25rem);
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 18, 34, 0.06);
  box-shadow: 0 12px 48px rgba(15, 18, 34, 0.08);
}

@media (max-width: 720px) {
  .hm-blog-slide__card {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.25rem;
  }

  .hm-blog-slide__col--left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.25rem;
  }

  .hm-blog-slide__author {
    margin-top: 0;
  }
}

.hm-blog-slide__col--left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
}

.hm-blog-slide__col--right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-width: 0;
}

.hm-blog-slide__headline {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw + 0.85rem, 1.65rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.hm-blog-slide__headline a {
  color: #164a89;
  text-decoration: none;
  transition: color 0.15s ease;
}

.hm-blog-slide__headline a:hover {
  color: #4a8fd4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hm-blog-slide__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.hm-blog-slide__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(1);
  border: 1px solid rgba(15, 18, 34, 0.08);
}

.hm-blog-slide__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hm-blog-slide__role {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #64748b;
}

.hm-blog-slide__body {
  margin: 0;
  font-size: clamp(0.92rem, 0.35vw + 0.88rem, 1.02rem);
  line-height: 1.58;
  color: #5c6478;
}

.hm-blog-slide__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: auto;
}

.hm-blog-slide__read {
  font-size: 0.88rem;
  font-weight: 700;
  color: #164a89;
}

.hm-blog-slide__read:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hm-blog-slide__mark {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(15, 18, 34, 0.22);
  user-select: none;
}

.hm-blog-carousel__controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
}

.hm-blog-carousel__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(15, 18, 34, 0.18);
  background: #fff;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.hm-blog-carousel__arrow:hover {
  border-color: rgba(42, 74, 95, 0.45);
  color: #164a89;
  background: #faf6f0;
}

.hm-blog-carousel__arrow:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.hm-blog-more {
  text-align: center;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-size: 0.92rem;
}

.hm-blog-more a {
  font-weight: 700;
  color: #164a89;
}

.hm-blog-more a:hover {
  text-decoration: underline;
}

/* —— Cinturones: hover / foco muestra texto —— */
.hm-belts {
  margin-top: 1.75rem;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.hm-belts__label {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hm-belts__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hm-belts__swatch {
  position: relative;
  width: 44px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.hm-belts__swatch:hover,
.hm-belts__swatch:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  outline: none;
}

.hm-belts__swatch--white {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.hm-belts__swatch--yellow {
  background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
}

.hm-belts__swatch--green {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
}

.hm-belts__swatch--blue {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.hm-belts__swatch--red {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
}

.hm-belts__swatch--black {
  background: linear-gradient(180deg, #334155 0%, #0f172a 100%);
}

.hm-belts__info {
  margin: 0.85rem 0 0;
  min-height: 2.6em;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* —— Editorial IA pages —— */
.hm-editorial-site .hm-page-title {
  font-size: clamp(1.85rem, 3.2vw + 0.5rem, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 12px;
}

.hm-page-lede {
  max-width: 38rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hm-nav__links--secondary {
  margin-top: 6px;
  gap: 4px 14px;
}

.hm-nav__links--secondary a {
  font-size: 0.8rem;
  color: rgba(11, 13, 16, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hm-ia-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.hm-ia-grid {
  margin-top: 0;
}

.hm-prose {
  max-width: 42rem;
  color: rgba(11, 13, 16, 0.78);
  line-height: 1.65;
}

.hm-prose a {
  color: var(--accent, #0b0d10);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Blog hub (/blog) —— */
.hm-blog-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
}

.hm-blog-hero__title {
  font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 14px;
  max-width: 16ch;
}

.hm-blog-hero__lede {
  max-width: 40rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.hm-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-blog-filter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.hm-blog-filter:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.hm-blog-filter.is-active {
  background: var(--fg, #0b0d10);
  border-color: var(--fg, #0b0d10);
  color: var(--bg, #fff);
}

.hm-blog-group {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-bottom: 1px solid var(--border);
}

.hm-blog-group[hidden] {
  display: none;
}

.hm-blog-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 1.5rem;
}

.hm-blog-group__title {
  font-size: clamp(1.35rem, 2vw + 0.5rem, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
  width: 100%;
}

@media (min-width: 640px) {
  .hm-blog-group__title {
    width: auto;
  }
}

.hm-blog-group__lede {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 42rem;
  flex: 1 1 100%;
}

.hm-blog-group__all {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  white-space: nowrap;
}

.hm-blog-group__all:hover {
  color: var(--text);
}

.hm-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 900px) {
  .hm-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 399px) {
  .hm-blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 399px) {
  .hm-blog-grid--belts {
    grid-template-columns: 1fr;
  }
}

.hm-blog-grid--belts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .hm-blog-grid--belts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .hm-blog-grid--belts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hm-blog-card--visual {
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.hm-blog-card--visual:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11, 13, 16, 0.1);
}

.hm-blog-card__hit {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.hm-blog-card__hit:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.hm-blog-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(11, 13, 16, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  transition: transform 0.35s ease;
}

.hm-blog-card--visual:hover .hm-blog-card__media img {
  transform: scale(1.05);
}

.hm-blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
  gap: 0;
}

.hm-blog-card--visual .hm-blog-card__meta {
  margin-bottom: 8px;
}

.hm-blog-card__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.hm-blog-card__excerpt {
  margin: 0 0 14px;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-blog-card__cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-top: auto;
}

.hm-blog-card--visual:hover .hm-blog-card__cta {
  color: var(--text);
}
