.dictado-single-page,
.dictado-hub {
  --fd-blue: #2571a3;
  --fd-deep: #073b5b;
  --fd-yellow: #f7c948;
  --fd-mint: #dff5ef;
  --fd-coral: #ff7a59;
  --fd-paper: #fffaf0;
  --fd-ink: #18324a;
  color: var(--fd-ink);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.fichas-dictados-hub main.content-page article.article-full > h1 {
  display: none;
}

.dictado-single-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 18px 72px;
}

.fichas-dictado-breadcrumbs {
  margin: 12px auto 14px;
  max-width: 1120px;
}

.dictado-demo-fichas {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(18px, 3vw, 34px) 0 72px;
}

.dictado-demo-fichas * {
  box-sizing: border-box;
}

.dictado-demo-hero,
.dictado-hub-hero {
  align-items: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(247, 201, 72, .34), transparent 26%),
    linear-gradient(135deg, #f6fbff 0%, #eef8f4 100%);
  border: 1px solid rgba(37, 113, 163, .16);
  border-radius: 30px;
  display: grid;
  gap: 28px;
  margin-bottom: 26px;
  overflow: hidden;
  padding: clamp(26px, 5vw, 54px);
  position: relative;
}

.dictado-demo-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
}

.dictado-hub-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr);
}

.dictado-demo-hero::after,
.dictado-hub-hero::after {
  background: var(--fd-yellow);
  border-radius: 999px;
  content: "";
  height: 10px;
  left: 42px;
  position: absolute;
  right: 42px;
  top: 0;
}

.dictado-demo-kicker,
.dictado-hub-kicker,
.dictado-demo-section-label,
.dictado-section-heading span {
  color: var(--fd-blue);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dictado-demo-kicker,
.dictado-hub-kicker {
  background: rgba(37, 113, 163, .1);
  border: 1px solid rgba(37, 113, 163, .18);
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 14px;
  padding: 8px 13px;
}

.dictado-demo-title,
.dictado-hub-hero h1 {
  color: var(--fd-deep);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 18px;
}

.dictado-demo-copy,
.dictado-hub-hero p {
  color: #38546a;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

.dictado-demo-copy strong {
  color: var(--fd-blue);
}

.dictado-demo-mascot {
  align-items: center;
  background: var(--fd-deep);
  border-radius: 26px;
  color: #fff;
  display: grid;
  gap: 16px;
  justify-items: center;
  min-height: 260px;
  padding: 28px;
  text-align: center;
}

.dictado-demo-mascot-icon {
  align-items: center;
  background: var(--fd-yellow);
  border: 8px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  color: var(--fd-deep);
  display: grid;
  font-size: 62px;
  font-weight: 900;
  height: 128px;
  justify-items: center;
  line-height: 1;
  width: 128px;
}

.dictado-demo-mascot strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.dictado-demo-level-panel {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(37, 113, 163, .14);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(7, 59, 91, .08);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 14px 16px 14px 18px;
  position: sticky;
  top: calc(var(--fichas-header-height, 0px) + var(--fichas-breadcrumb-height, 0px) + 12px);
  z-index: 55;
}

.dictado-demo-level-panel p {
  color: #526b7f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  text-align: right;
}

.dictado-demo-progress-badge {
  align-items: center;
  background: linear-gradient(135deg, #fff8dc 0%, #fff 58%, #e4f5f0 100%);
  border: 1px solid rgba(247, 201, 72, .58);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(8, 51, 79, .12);
  color: var(--fd-deep);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 10px;
  line-height: 1;
  overflow: visible;
  padding: 10px 14px;
  position: relative;
  white-space: nowrap;
}

.dictado-demo-progress-badge .progress-points {
  color: var(--fd-blue);
}

.dictado-demo-progress-badge .progress-bar {
  background: rgba(8, 51, 79, .13);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  width: 92px;
}

.dictado-demo-progress-badge .progress-fill {
  background: linear-gradient(90deg, #2ab27b, var(--fd-yellow));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width .38s ease;
}

.dictado-demo-progress-badge.is-pulse {
  animation: dictadoLevelPulse .58s ease;
}

.dictado-demo-progress-badge.is-level-up {
  animation: dictadoLevelBounce .85s cubic-bezier(.2, 1.35, .35, 1);
  border-color: rgba(247, 201, 72, .96);
  box-shadow: 0 18px 42px rgba(247, 201, 72, .32), 0 12px 28px rgba(8, 51, 79, .16);
}

.dictado-demo-level-toast {
  background: var(--fd-yellow);
  border-radius: 999px;
  bottom: calc(100% + 10px);
  box-shadow: 0 12px 24px rgba(8, 51, 79, .18);
  color: var(--fd-deep);
  font-size: 13px;
  font-weight: 900;
  left: 50%;
  line-height: 1;
  padding: 9px 14px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  animation: dictadoLevelToast 1.8s ease forwards;
}

.dictado-demo-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

.dictado-demo-panel {
  background: #fff;
  border: 1px solid rgba(37, 113, 163, .16);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(7, 59, 91, .08);
  padding: clamp(20px, 3vw, 30px);
}

.dictado-demo-panel h2 {
  color: var(--fd-deep);
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.dictado-demo-progress {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  margin: 0 0 18px;
}

.dictado-demo-progress-step {
  align-items: center;
  background: #f2f7fa;
  border: 1px solid rgba(37, 113, 163, .16);
  border-radius: 999px;
  color: #5f7384;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 8px 10px;
}

.dictado-demo-progress-step.is-active {
  background: var(--fd-yellow);
  border-color: rgba(247, 201, 72, .85);
  color: var(--fd-deep);
}

.dictado-demo-progress-step.is-done {
  background: var(--fd-mint);
  border-color: rgba(8, 115, 95, .24);
  color: #08735f;
}

.dictado-demo-speed {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.dictado-demo-speed-btn {
  background: linear-gradient(180deg, #fff 0%, #f8fcff 100%);
  border: 1px solid rgba(37, 113, 163, .16);
  border-radius: 21px;
  color: var(--fd-deep);
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 128px;
  padding: 14px 10px 13px;
  text-align: center;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.dictado-demo-speed-btn:hover {
  transform: translateY(-1px);
}

.dictado-demo-animal {
  align-items: end;
  display: grid;
  height: 64px;
  justify-items: center;
  margin: 0 auto 4px;
  width: 76px;
}

.dictado-demo-animal svg {
  display: block;
  filter: drop-shadow(0 10px 12px rgba(7, 59, 91, .12));
  height: 100%;
  max-width: 100%;
  transition: transform .18s ease;
}

.dictado-demo-speed-btn:hover .dictado-demo-animal svg,
.dictado-demo-speed-btn.is-active .dictado-demo-animal svg {
  transform: translateY(-3px) scale(1.04);
}

.dictado-demo-speed-btn b {
  font-size: 15px;
}

.dictado-demo-speed-btn small {
  color: #63798b;
  font-size: 12px;
  font-weight: 700;
}

.dictado-demo-speed-btn.is-active {
  background: linear-gradient(180deg, #fff8dc 0%, #fff 100%);
  border-color: var(--fd-yellow);
  box-shadow: 0 10px 24px rgba(247, 201, 72, .22);
}

.dictado-demo-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.dictado-demo-step {
  align-items: center;
  background: #f7fbfd;
  border: 1px solid rgba(37, 113, 163, .12);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 14px;
}

.dictado-demo-step span {
  align-items: center;
  background: var(--fd-mint);
  border-radius: 14px;
  color: #08735f;
  display: grid;
  font-weight: 900;
  height: 42px;
  justify-items: center;
  width: 42px;
}

.dictado-demo-controls {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dictado-demo-button {
  align-items: center;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 54px;
  padding: 15px 18px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  width: 100%;
}

.dictado-demo-button:hover {
  transform: translateY(-1px);
}

.dictado-demo-button.is-playing {
  box-shadow: 0 0 0 5px rgba(247, 201, 72, .22), 0 12px 28px rgba(37, 113, 163, .2);
  transform: translateY(-1px);
}

.dictado-demo-button:disabled {
  cursor: not-allowed;
  filter: grayscale(.35);
  opacity: .55;
  transform: none;
}

.dictado-demo-button-primary {
  background: var(--fd-blue);
  box-shadow: 0 12px 28px rgba(37, 113, 163, .24);
  color: #fff;
}

.dictado-demo-button-yellow {
  background: var(--fd-yellow);
  color: var(--fd-deep);
}

.dictado-demo-button-mint {
  background: linear-gradient(135deg, var(--fd-mint), #f7fbfd);
  border: 1px solid rgba(8, 115, 95, .16);
  color: #08735f;
}

.dictado-demo-button-soft {
  background: #eef7fb;
  color: var(--fd-deep);
}

.dictado-demo-teacher {
  background: linear-gradient(135deg, #fff8dc, #fffdf3);
  border: 1px solid rgba(247, 201, 72, .56);
  border-radius: 18px;
  margin-top: 16px;
  padding: 16px;
}

.dictado-demo-teacher strong {
  color: var(--fd-deep);
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.dictado-demo-teacher p {
  color: #38546a;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.dictado-demo-phrase-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.dictado-demo-phrase {
  align-items: center;
  background: var(--fd-paper);
  border: 1px solid rgba(247, 201, 72, .42);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 12px 14px;
}

.dictado-demo-phrase.is-current {
  border-color: rgba(255, 122, 89, .62);
  box-shadow: 0 0 0 4px rgba(247, 201, 72, .16), 0 14px 28px rgba(7, 59, 91, .08);
}

.dictado-demo-phrase b {
  color: var(--fd-deep);
  font-size: 14px;
}

.dictado-demo-mini {
  background: #fff;
  border: 1px solid rgba(37, 113, 163, .18);
  border-radius: 999px;
  color: var(--fd-blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  white-space: nowrap;
}

.dictado-demo-mini.is-current {
  background: var(--fd-yellow);
  border-color: var(--fd-coral);
  box-shadow: 0 0 0 0 rgba(255, 122, 89, .34), 0 0 0 5px rgba(247, 201, 72, .22);
  color: var(--fd-deep);
  animation: dictadoListenPulse 1.45s ease-in-out infinite;
  transform: translateY(-1px);
}

.dictado-demo-after-phrases {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.dictado-demo-text-toggle[aria-expanded="true"] {
  background: #fff8dc;
  border-color: rgba(247, 201, 72, .62);
  color: var(--fd-deep);
}

.dictado-demo-full-text {
  background: linear-gradient(135deg, #ffffff, #fffaf0);
  border: 1px solid rgba(37, 113, 163, .16);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(7, 59, 91, .06);
  color: var(--fd-deep);
  margin-top: 14px;
  padding: 16px;
}

.dictado-demo-full-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}

.dictado-demo-full-text ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.dictado-demo-full-text li {
  color: #40586d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.dictado-demo-writing {
  display: grid;
  gap: 16px;
}

.dictado-demo-writing textarea {
  background:
    linear-gradient(#fff, #fff) padding-box,
    repeating-linear-gradient(0deg, transparent 0, transparent 38px, rgba(37, 113, 163, .16) 39px, transparent 40px) border-box;
  border: 2px solid rgba(37, 113, 163, .2);
  border-radius: 22px;
  color: var(--fd-deep);
  font: inherit;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
  min-height: 260px;
  outline: none;
  padding: 18px 20px;
  resize: vertical;
  width: 100%;
}

.dictado-demo-writing textarea:focus {
  border-color: var(--fd-yellow);
  box-shadow: 0 0 0 5px rgba(247, 201, 72, .22);
}

.dictado-demo-actions-row {
  display: grid;
  gap: 10px;
  grid-template-columns: .75fr 1.1fr .8fr;
}

.dictado-demo-result {
  background: #f7fbfd;
  border: 1px dashed rgba(37, 113, 163, .28);
  border-radius: 18px;
  color: #38546a;
  display: none;
  font-size: 16px;
  line-height: 1.6;
  padding: 16px;
}

.dictado-demo-result.is-visible {
  display: block;
}

.dictado-demo-result strong {
  color: var(--fd-deep);
}

.dictado-demo-result-title {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dictado-demo-score-pill {
  background: var(--fd-blue);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
}

.dictado-demo-correction {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.dictado-demo-word {
  border-radius: 999px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 12px;
}

.dictado-demo-word.is-correct {
  background: #dff5ef;
  color: #08735f;
}

.dictado-demo-word.is-close {
  background: #fff3c4;
  color: #86620a;
}

.dictado-demo-word.is-missing {
  background: #ffe4de;
  color: #a43d28;
}

.dictado-demo-word.is-extra {
  background: #edf2f7;
  color: #586b7b;
}

.dictado-demo-legend {
  color: #63798b;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 8px 12px;
  margin-top: 8px;
}

.dictado-demo-legend span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.dictado-demo-legend i {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.dictado-demo-legend .ok {
  background: #3ab795;
}

.dictado-demo-legend .close {
  background: #f7c948;
}

.dictado-demo-legend .miss {
  background: #ff7a59;
}

.dictado-demo-medals {
  background:
    radial-gradient(circle at 12% 18%, rgba(247, 201, 72, .25), transparent 24%),
    linear-gradient(135deg, #073b5b, #2571a3);
  border-radius: 28px;
  color: #fff;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 36px);
}

.dictado-demo-medals .dictado-demo-section-label,
.dictado-demo-medals h2,
.dictado-demo-medals p {
  color: #fff;
}

.dictado-demo-medals h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin: 0 0 10px;
}

.dictado-demo-medal-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0;
}

.dictado-demo-medal {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  color: rgba(255, 255, 255, .8);
  min-height: 132px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.dictado-demo-medal.is-earned {
  background: #fff;
  border-color: rgba(247, 201, 72, .55);
  color: var(--fd-deep);
  box-shadow: 0 14px 28px rgba(7, 59, 91, .14);
}

.dictado-demo-medal-art {
  align-items: center;
  display: grid;
  height: 64px;
  justify-items: center;
  margin-bottom: 12px;
  position: relative;
  width: 64px;
}

.dictado-demo-medal-art svg {
  display: block;
  height: 64px;
  width: 64px;
}

.dictado-demo-medal:not(.is-earned) .dictado-demo-medal-art {
  filter: grayscale(1);
  opacity: .62;
}

.dictado-demo-medal b {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.dictado-demo-medal small {
  color: inherit;
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  opacity: .78;
}

.dictado-demo-restart {
  max-width: 280px;
}

.dictado-single-footer {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, .98), rgba(255, 255, 255, .98)),
    radial-gradient(circle at 95% 12%, rgba(247, 201, 72, .28), transparent 30%);
  border: 1px solid rgba(37, 113, 163, .15);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(7, 59, 91, .1);
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr);
  margin: 28px 0 0;
  overflow: hidden;
  padding: clamp(22px, 3.2vw, 34px);
  position: relative;
  width: 100%;
}

.dictado-single-page .dictado-single-footer {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, .98), rgba(255, 255, 255, .98)),
    radial-gradient(circle at 95% 12%, rgba(247, 201, 72, .28), transparent 30%) !important;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  padding: clamp(22px, 3.2vw, 34px) !important;
  width: 100% !important;
}

.dictado-single-footer::before {
  background: linear-gradient(90deg, var(--fd-mint), var(--fd-yellow), var(--fd-coral));
  content: "";
  height: 6px;
  inset: 0 0 auto;
  position: absolute;
}

.dictado-single-footer-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 8px;
}

.dictado-single-footer h2 {
  color: var(--fd-deep);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
  margin: 0;
}

.dictado-single-footer p {
  color: #526b7f;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  max-width: 420px;
}

.dictado-single-links {
  align-content: center;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  min-width: 0;
}

.dictado-single-links a,
.dictado-hub-links a,
.dictado-topic-card,
.dictado-course-card {
  text-decoration: none;
}

.dictado-single-links a,
.dictado-hub-links a {
  background: #fff;
  border: 1px solid rgba(37, 113, 163, .16);
  border-radius: 999px;
  color: var(--fd-blue);
  box-shadow: 0 10px 24px rgba(7, 59, 91, .07);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 16px;
}

.dictado-single-links a {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dictado-single-links a:hover,
.dictado-single-links a:focus-visible {
  border-color: rgba(247, 201, 72, .8);
  box-shadow: 0 14px 30px rgba(7, 59, 91, .12);
  transform: translateY(-2px);
}

.dictado-hub {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(20px, 4vw, 46px) 18px 72px;
}

.dictado-hub-stats {
  display: grid;
  gap: 12px;
}

.dictado-hub-stats div {
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(37, 113, 163, .14);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(7, 59, 91, .07);
  display: grid;
  padding: 18px;
}

.dictado-hub-stats strong {
  color: var(--fd-deep);
  font-size: 26px;
  line-height: 1;
}

.dictado-hub-stats span {
  color: #526b7f;
  font-size: 13px;
  font-weight: 800;
  margin-top: 5px;
}

.dictado-hub-section {
  margin-top: clamp(26px, 5vw, 46px);
}

.dictado-section-heading {
  margin-bottom: 18px;
}

.dictado-section-heading h2 {
  color: var(--fd-deep);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 8px 0 0;
}

.dictado-course-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dictado-course-card {
  background: #fff;
  border: 1px solid rgba(37, 113, 163, .16);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(7, 59, 91, .08);
  color: var(--fd-deep);
  display: grid;
  gap: 10px;
  min-height: 198px;
  padding: 24px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dictado-course-card:hover,
.dictado-card:hover,
.dictado-topic-card:hover {
  border-color: rgba(247, 201, 72, .82);
  box-shadow: 0 18px 40px rgba(7, 59, 91, .12);
  transform: translateY(-2px);
}

.dictado-course-card span {
  align-items: center;
  background: var(--fd-mint);
  border-radius: 16px;
  color: #08735f;
  display: grid;
  font-size: 24px;
  font-weight: 900;
  height: 54px;
  justify-items: center;
  width: 54px;
}

.dictado-course-card:nth-child(2n) span,
.dictado-course-card:nth-child(5n) span {
  background: #fff3c4;
  color: #9a6a02;
}

.dictado-course-card:nth-child(3n) span,
.dictado-course-card:nth-child(6n) span {
  background: #ffe4de;
  color: #ba4a2f;
}

.dictado-course-card strong {
  font-size: 25px;
}

.dictado-course-card small {
  color: #526b7f;
  font-size: 15px;
  font-weight: 700;
}

.dictado-course-card b {
  color: var(--fd-blue);
  font-size: 16px;
  margin-top: auto;
}

.dictado-topic-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dictado-topic-card {
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #f6fbff 100%);
  border: 1px solid rgba(37, 113, 163, .16);
  border-radius: 20px;
  color: var(--fd-deep);
  display: flex;
  justify-content: space-between;
  min-height: 86px;
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dictado-topic-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.dictado-topic-card span {
  background: var(--fd-yellow);
  border-radius: 999px;
  color: var(--fd-deep);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  white-space: nowrap;
}

.dictado-hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.dictado-card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dictado-card {
  background: #fff;
  border: 1px solid rgba(37, 113, 163, .16);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(7, 59, 91, .08);
  min-height: 205px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dictado-card__link {
  color: inherit;
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 20px;
  text-decoration: none;
}

.dictado-card__top,
.dictado-card__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dictado-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 10px;
}

.dictado-pill--course {
  background: var(--fd-blue);
  color: #fff;
}

.dictado-pill--soft {
  background: #fff3c4;
  color: #86620a;
}

.dictado-card strong {
  color: var(--fd-deep);
  font-size: 22px;
  line-height: 1.12;
}

.dictado-card__focus {
  color: #526b7f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.dictado-card__meta {
  margin-top: auto;
}

.dictado-card__meta span {
  background: #eef7fb;
  border-radius: 999px;
  color: var(--fd-blue);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 9px;
}

.dictado-course-block {
  margin-top: 24px;
}

.dictado-course-block h3 {
  color: var(--fd-deep);
  font-size: 26px;
  margin: 0 0 14px;
}

.dictado-empty {
  background: #fff;
  border: 1px dashed rgba(37, 113, 163, .24);
  border-radius: 18px;
  color: #526b7f;
  font-weight: 700;
  padding: 18px;
}

.fichas-burst {
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.fichas-star,
.fichas-confetti {
  height: 6px;
  opacity: 0;
  position: absolute;
  width: 6px;
}

.fichas-star {
  animation: dictadoStarPop .8s ease forwards;
  background: radial-gradient(circle, #fef08a 0%, #f59e0b 60%, transparent 65%);
  border-radius: 50%;
}

.fichas-star--level {
  animation: dictadoLevelStar 1.1s ease forwards;
  height: 10px;
  width: 10px;
}

.fichas-confetti {
  animation: dictadoConfetti 1.2s ease forwards;
  background: #34d399;
  border-radius: 2px;
  height: 10px;
  transform: rotate(var(--rot, 15deg));
  width: 8px;
}

.fichas-confetti--level {
  animation-duration: 1.55s;
  height: 13px;
  width: 9px;
}

@keyframes dictadoLevelPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes dictadoListenPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 89, .35), 0 0 0 5px rgba(247, 201, 72, .22); }
  70% { box-shadow: 0 0 0 10px rgba(255, 122, 89, 0), 0 0 0 5px rgba(247, 201, 72, .22); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0), 0 0 0 5px rgba(247, 201, 72, .22); }
}

@keyframes dictadoLevelBounce {
  0% { transform: scale(1); }
  24% { transform: scale(1.14) rotate(-1.5deg); }
  48% { transform: scale(.98) rotate(1.5deg); }
  72% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes dictadoLevelToast {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.92); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  78% { opacity: 1; transform: translate(-50%, -2px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -16px) scale(.96); }
}

@keyframes dictadoStarPop {
  0% { opacity: 0; transform: scale(.6); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.4); }
}

@keyframes dictadoConfetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(var(--rot, 0deg)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot-end, 180deg)) scale(.85); }
}

@keyframes dictadoLevelStar {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.6) rotate(80deg); }
}

@media (max-width: 980px) {
  .dictado-course-grid,
  .dictado-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dictado-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .dictado-demo-hero,
  .dictado-demo-grid,
  .dictado-hub-hero,
  .dictado-single-footer {
    grid-template-columns: 1fr;
  }

  .dictado-demo-hero,
  .dictado-hub-hero {
    border-radius: 24px;
    padding: 30px 20px;
  }

  .dictado-demo-mascot {
    min-height: 210px;
  }

  .dictado-demo-level-panel {
    align-items: center;
    border-radius: 20px;
    gap: 0;
    padding: 8px;
    top: calc(var(--fichas-header-height, 0px) + var(--fichas-breadcrumb-height, 0px) + 6px);
  }

  .dictado-demo-level-panel p {
    display: none;
  }

  .dictado-demo-progress-badge {
    font-size: 11px;
    gap: 7px;
    justify-content: center;
    padding: 8px 10px;
    width: 100%;
  }

  .dictado-demo-progress-badge .progress-bar {
    width: min(76px, 22vw);
  }

  .dictado-demo-panel,
  .dictado-demo-speed-btn,
  .dictado-demo-result,
  .dictado-demo-medals {
    scroll-margin-top: calc(var(--fichas-header-height, 0px) + var(--fichas-breadcrumb-height, 0px) + 78px);
  }

  .dictado-demo-phrase {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .dictado-demo-mini {
    width: 100%;
  }

  .dictado-demo-speed,
  .dictado-demo-actions-row,
  .dictado-demo-medal-grid,
  .dictado-course-grid,
  .dictado-card-grid,
  .dictado-topic-grid {
    grid-template-columns: 1fr;
  }

  .dictado-single-links {
    grid-template-columns: 1fr;
  }

  .dictado-demo-medal {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dictado-demo-progress-badge.is-pulse,
  .dictado-demo-progress-badge.is-level-up,
  .dictado-demo-level-toast,
  .dictado-demo-mini.is-current,
  .fichas-star,
  .fichas-confetti,
  .dictado-demo-animal svg {
    animation: none !important;
    transition: none !important;
  }
}
