/* ============================================================
   Landings de ritmo (/ritmo/…)
   Se apoya en landing.css: .container, .section-title, .cta-button,
   .faq-*, .footer. Acá va solo lo propio de estas páginas.
   ============================================================ */

.ritmo-header {
  padding: 14px 0;
  background: #F6E9DC;
  border-bottom: 1px solid rgba(107, 74, 68, 0.1);
}

.ritmo-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ritmo-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6B4A44;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.ritmo-marca img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ritmo-header__link {
  color: #8A5A52;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.ritmo-header__link:hover {
  text-decoration: underline;
}

/* --- Hero + reproductor --- */
.ritmo-hero {
  padding: 56px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, #F6E9DC 0%, #F0DFD0 50%, #EAD5C4 100%);
}

.ritmo-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #6B4A44;
  margin-bottom: 16px;
}

.ritmo-hero__tagline {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #8A5A52;
  max-width: 560px;
  margin: 0 auto 32px;
}

.ritmo-player {
  max-width: 520px;
  margin: 0 auto 28px;
  padding: 28px 24px 22px;
  background: #FFFCFA;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(107, 74, 68, 0.12);
}

.rp-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: none;
  border-radius: 999px;
  background: #8A5A52;
  color: #FFFCFA;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(138, 90, 82, 0.25);
  transition: background-color 0.2s ease;
}

.rp-play:hover {
  background: #A67069;
}

.rp-play:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Triángulo de play; cuadrado mientras suena. */
.rp-play__icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent currentColor;
}

.ritmo-player.is-playing .rp-play__icon {
  width: 14px;
  height: 14px;
  border: none;
  background: currentColor;
  border-radius: 2px;
}

/* Pulso a negra mientras suena (--rp-beat lo pone el script). */
.ritmo-player.is-playing .rp-play {
  animation: rp-pulso var(--rp-beat, 0.5s) ease-out infinite;
}

@keyframes rp-pulso {
  0%   { box-shadow: 0 0 0 0 rgba(138, 90, 82, 0.45); }
  100% { box-shadow: 0 0 0 14px rgba(138, 90, 82, 0); }
}

.rp-tempos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.rp-tempo {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 84px;
  padding: 8px 14px;
  border: 1.5px solid rgba(138, 90, 82, 0.35);
  border-radius: 12px;
  background: transparent;
  color: #6B4A44;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.rp-tempo small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #8A7A74;
}

.rp-tempo[aria-pressed="true"] {
  background: #8A5A52;
  border-color: #8A5A52;
  color: #FFFCFA;
}

.rp-tempo[aria-pressed="true"] small {
  color: rgba(255, 252, 250, 0.85);
}

.rp-track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.95rem;
  cursor: pointer;
}

.rp-track input {
  width: 18px;
  height: 18px;
  accent-color: #8A5A52;
}

.rp-status {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #8A7A74;
}

.ritmo-cta-sub {
  margin-top: 12px;
  font-size: 0.88rem;
  color: #8A7A74;
}

/* --- Cuerpo --- */
.ritmo-seccion {
  padding: 56px 0;
}

.ritmo-seccion--clara {
  background: #FFFCFA;
}

.ritmo-cuerpo {
  max-width: 680px;
  margin: 0 auto;
}

.ritmo-cuerpo h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  color: #6B4A44;
  margin-bottom: 16px;
}

.ritmo-cuerpo p,
.ritmo-cuerpo li {
  font-size: 1.05rem;
  line-height: 1.75;
}

.ritmo-cuerpo p + p {
  margin-top: 14px;
}

.ritmo-cuerpo ol,
.ritmo-cuerpo ul {
  padding-left: 1.3em;
}

.ritmo-cuerpo li + li {
  margin-top: 10px;
}

.ritmo-cuerpo a {
  color: #8A5A52;
  font-weight: 600;
}

.ritmo-nota {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid rgba(138, 90, 82, 0.35);
  font-size: 0.95rem;
  color: #8A7A74;
}

.ritmo-otros {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.ritmo-otros a {
  padding: 10px 20px;
  border: 1.5px solid rgba(138, 90, 82, 0.35);
  border-radius: 999px;
  color: #6B4A44;
  font-weight: 600;
  text-decoration: none;
}

.ritmo-otros a:hover {
  background: rgba(138, 90, 82, 0.08);
}

.ritmo-final {
  padding: 64px 0;
  text-align: center;
}

@media (max-width: 600px) {
  .ritmo-hero {
    padding: 40px 0 48px;
  }
  .ritmo-hero h1 {
    font-size: 1.9rem;
  }
  .ritmo-player {
    padding: 24px 16px 18px;
  }
  .rp-tempo {
    min-width: 76px;
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ritmo-player.is-playing .rp-play {
    animation: none;
  }
}
