/* ===== TITULAR DE SECCIÓN CON LETRAS ANIMADAS ===== */
.hwords {
  position: relative;
  margin-bottom: 24px;
}

.hwords__title {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #111111;
}

.hwords__letter {
  display: inline-block;
  will-change: transform, opacity;
}

/* Trazo de acento dibujado a mano, aparece después del rebote */
.hwords__stroke {
  display: block;
  width: min(100%, 260px);
  height: 28px;
  margin-top: 12px;
  color: var(--accent);
  overflow: visible;
}

/* ----- Lotties decorativos (Dr. Castillo los subió: diente + mandíbula) -----
   En mobile: fila chica debajo del trazo (ver about.css, .about-ov__intro
   cae en flujo normal). En desktop: columna propia que se reparte toda la
   altura título+statement (ver grid-areas en about.css). */
.hwords__decor {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hwords__lottie {
  opacity: 0;
  transition: opacity 0.6s ease;
  flex-shrink: 0;
}

.hwords__lottie.is-visible {
  opacity: 1;
}

.hwords__lottie--tooth {
  width: 110px;
  height: 110px;
}

.hwords__lottie--jaw {
  width: 200px;
  height: 112px;
}

@media (max-width: 600px) {
  .hwords {
    margin-bottom: 36px;
  }

  .hwords__stroke {
    height: 20px;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hwords__letter {
    opacity: 1 !important;
    transform: none !important;
  }
}
