:root {
  --rf-bg: #f7f4ee;
  --rf-surface: rgba(255, 255, 255, 0.82);
  --rf-surface-strong: #ffffff;
  --rf-ink: #101010;
  --rf-muted: #68625b;
  --rf-line: rgba(16, 16, 16, 0.1);
  --rf-soft-line: rgba(255, 255, 255, 0.35);
  --rf-radius-lg: 32px;
  --rf-radius-md: 20px;
  --rf-shadow: 0 24px 80px rgba(26, 19, 8, 0.13);
  --rf-shadow-soft: 0 14px 40px rgba(26, 19, 8, 0.08);
  --rf-max: 1180px;
}

.rf-wrap,
.rf-course-shell {
  color: var(--rf-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rf-wrap {
  max-width: var(--rf-max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) 18px;
}

.rf-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--rf-radius-lg);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(135deg, #fffaf0, #ece5db 55%, #ded4c6);
  box-shadow: var(--rf-shadow-soft);
  padding: clamp(34px, 7vw, 92px);
  margin-bottom: 28px;
}

.rf-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  border: 1px solid rgba(16, 16, 16, 0.1);
  background: rgba(255, 255, 255, 0.26);
}

.rf-hero-compact {
  padding: clamp(28px, 4vw, 56px);
}

.rf-kicker {
  margin: 0 0 10px;
  color: var(--rf-muted);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rf-hero h1,
.rf-course-topbar h1,
.rf-lesson-panel h2,
.rf-course-body h2 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.rf-hero h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 8vw, 7rem);
}

.rf-hero p:not(.rf-kicker) {
  max-width: 680px;
  color: var(--rf-muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.rf-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.rf-course-card {
  overflow: hidden;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
  background: var(--rf-surface-strong);
  box-shadow: var(--rf-shadow-soft);
}

.rf-course-card-large {
  min-height: 500px;
}

.rf-course-image {
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 16, 16, 0.96), rgba(56, 50, 43, 0.9)),
    #101010;
  color: #fff;
  text-decoration: none;
}

.rf-course-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.rf-course-card:hover .rf-course-image img {
  transform: scale(1.045);
}

.rf-course-image span {
  font-size: 6rem;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.rf-course-body {
  padding: 26px;
}

.rf-course-body h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.rf-course-body p {
  color: var(--rf-muted);
  line-height: 1.55;
}

.rf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--rf-ink);
  border-radius: 999px;
  background: var(--rf-ink);
  color: #fff;
  cursor: pointer;
  font-weight: 760;
  line-height: 1;
  padding: 13px 22px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rf-button:hover,
.rf-button:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(16, 16, 16, 0.16);
}

.rf-button-ghost {
  background: transparent;
  color: var(--rf-ink);
}

.rf-button-ghost:hover,
.rf-button-ghost:focus {
  background: var(--rf-ink);
  color: #fff;
}

.rf-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--rf-muted);
  font-size: 0.9rem;
  margin: 14px 0 18px;
}

.rf-card-meta span {
  border: 1px solid var(--rf-line);
  border-radius: 999px;
  padding: 7px 10px;
}

.rf-progress {
  margin: 20px 0 8px;
}

.rf-progress-top {
  display: flex;
  justify-content: space-between;
  color: var(--rf-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.rf-progress-top strong {
  color: var(--rf-ink);
}

.rf-progress-bar {
  overflow: hidden;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.08);
}

.rf-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--rf-ink);
  transition: width 0.35s ease;
}

.rf-empty,
.rf-login-notice {
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
  background: var(--rf-surface-strong);
  box-shadow: var(--rf-shadow-soft);
  padding: clamp(24px, 5vw, 60px);
}

.rf-login-notice h2 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  letter-spacing: -0.06em;
}

.rf-course-shell {
  min-height: 100vh;
  background: var(--rf-bg);
}

.rf-course-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: blur(22px);
  padding: 14px clamp(16px, 4vw, 42px);
}

.rf-course-topbar h1 {
  font-size: clamp(1.1rem, 2.5vw, 2.2rem);
}

.rf-course-topbar .rf-kicker {
  margin-bottom: 3px;
}

.rf-mini-progress {
  width: min(240px, 32vw);
  color: var(--rf-muted);
  font-size: 0.85rem;
  font-weight: 760;
  text-align: right;
}

.rf-mini-progress .rf-progress-bar {
  height: 7px;
  margin-top: 8px;
}

.rf-feed {
  height: calc(100vh - 82px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.rf-lesson {
  min-height: calc(100vh - 82px);
  scroll-snap-align: start;
  padding: clamp(14px, 3vw, 34px);
}

.rf-lesson-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(18px, 3vw, 36px);
  width: min(1440px, 100%);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
}

.rf-lesson-media,
.rf-lesson-panel {
  overflow: hidden;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
  background: var(--rf-surface-strong);
  box-shadow: var(--rf-shadow-soft);
}

.rf-lesson-media {
  display: grid;
  min-height: 400px;
  place-items: center;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.18), transparent 40%),
    #111;
}

.rf-media-el {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  object-fit: cover;
}

.rf-iframe {
  background: #050505;
}

.rf-audio-stage {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 400px;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 40%),
    #111;
}

.rf-audio-stage audio {
  width: min(520px, 80%);
}

.rf-media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 400px;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #111, #2c2720);
}

.rf-media-placeholder span {
  font-size: clamp(2.2rem, 8vw, 8rem);
  font-weight: 850;
  letter-spacing: -0.09em;
  opacity: 0.85;
}

.rf-lesson-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 52px);
}

.rf-lesson-count {
  width: max-content;
  border: 1px solid var(--rf-line);
  border-radius: 999px;
  color: var(--rf-muted);
  font-size: 0.8rem;
  font-weight: 760;
  margin-bottom: 18px;
  padding: 7px 12px;
}

.rf-lesson-panel h2 {
  font-size: clamp(2.3rem, 6vw, 6rem);
}

.rf-lesson-content {
  color: var(--rf-muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.65;
  margin-top: 18px;
}

.rf-lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.rf-lesson.is-completed .rf-complete-button {
  background: transparent;
  color: var(--rf-ink);
}

.rf-submission-box {
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-md);
  background: rgba(247, 244, 238, 0.74);
  margin-top: 24px;
  padding: 18px;
}

.rf-submission-box h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.rf-submission-prompt {
  color: var(--rf-muted);
}

.rf-submission-form label {
  display: block;
  color: var(--rf-muted);
  font-size: 0.92rem;
  font-weight: 680;
  margin: 14px 0;
}

.rf-submission-form textarea,
.rf-submission-form input[type="url"],
.rf-submission-form input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--rf-line);
  border-radius: 16px;
  background: #fff;
  color: var(--rf-ink);
  font: inherit;
  margin-top: 7px;
  padding: 12px 13px;
}

.rf-status-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--rf-line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.rf-status-card span,
.rf-status-card p {
  color: var(--rf-muted);
  margin: 0;
}

.rf-form-message {
  color: var(--rf-muted);
  font-size: 0.92rem;
  margin-top: 12px;
}

.rf-form-message.is-error {
  color: #a6361f;
}

.rf-form-message.is-success {
  color: #166534;
}

@media (max-width: 900px) {
  .rf-course-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .rf-mini-progress {
    width: 100%;
    text-align: left;
  }

  .rf-feed {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .rf-lesson {
    min-height: auto;
    scroll-snap-align: none;
  }

  .rf-lesson-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .rf-lesson-media,
  .rf-media-el,
  .rf-media-placeholder,
  .rf-audio-stage {
    min-height: 48vh;
  }

  .rf-lesson-panel h2 {
    font-size: clamp(2.4rem, 15vw, 4.6rem);
  }
}

@media (max-width: 520px) {
  .rf-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .rf-course-grid {
    grid-template-columns: 1fr;
  }

  .rf-lesson {
    padding: 12px;
  }

  .rf-lesson-panel {
    padding: 22px;
  }

  .rf-lesson-actions .rf-button {
    width: 100%;
  }
}

/* Reunioon Flow v0.2 — reel-first course view */
.rf-course-shell-reel {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.72), transparent 32%),
    var(--rf-bg);
}

.rf-reel-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 48px;
  box-sizing: border-box;
  padding: 8px max(12px, env(safe-area-inset-left)) 8px max(12px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(16, 16, 16, 0.06);
  background: rgba(247, 244, 238, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.admin-bar .rf-reel-topbar {
  top: 32px;
}

.rf-reel-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--rf-ink);
  line-height: 1;
}

.rf-reel-title span {
  flex: 0 0 auto;
  color: var(--rf-muted);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rf-reel-title strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--rf-ink);
  font-size: 0.95rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rf-mini-progress-reel {
  flex: 0 0 min(190px, 35vw);
  width: min(190px, 35vw);
  color: var(--rf-muted);
  font-size: 0.76rem;
  font-weight: 760;
  text-align: right;
}

.rf-mini-progress-reel .rf-progress-bar {
  height: 4px;
  margin-top: 4px;
  background: rgba(16, 16, 16, 0.1);
}

.rf-feed-reel {
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.admin-bar .rf-feed-reel {
  height: calc(100dvh - 32px);
}

.rf-lesson-reel {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  padding: clamp(58px, 8vh, 74px) clamp(12px, 3vw, 32px) clamp(14px, 3vw, 32px);
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.admin-bar .rf-lesson-reel {
  min-height: calc(100dvh - 32px);
  height: calc(100dvh - 32px);
}

.rf-lesson-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 860px);
  height: 100%;
  max-height: calc(100dvh - 88px);
  overflow: hidden;
  border: 1px solid var(--rf-line);
  border-radius: clamp(22px, 3vw, 34px);
  background: rgba(255,255,255,0.88);
  box-shadow: var(--rf-shadow-soft);
}

.admin-bar .rf-lesson-card {
  max-height: calc(100dvh - 120px);
}

.rf-lesson-media-inline {
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--rf-line);
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  height: clamp(180px, 36vh, 420px);
  background: #0b0b0b;
}

.rf-lesson-media-inline .rf-media-el,
.rf-lesson-media-inline .rf-media-placeholder,
.rf-lesson-media-inline .rf-audio-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.rf-lesson-media-inline .rf-audio-stage {
  min-height: 180px;
}

.rf-lesson-scroll {
  overflow: auto;
  padding: clamp(22px, 4vw, 50px);
  scrollbar-width: thin;
}

.rf-lesson-reel.has-no-media .rf-lesson-scroll {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rf-lesson-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.rf-lesson-state {
  width: max-content;
  border: 1px solid rgba(22, 101, 52, 0.22);
  border-radius: 999px;
  color: #166534;
  background: rgba(22, 101, 52, 0.06);
  font-size: 0.78rem;
  font-weight: 760;
  padding: 7px 12px;
}

.rf-lesson-card .rf-lesson-count {
  margin: 0;
}

.rf-lesson-card h2 {
  max-width: 720px;
  font-size: clamp(2.3rem, 8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.rf-lesson-content {
  max-width: 620px;
}

.rf-lesson-card .rf-lesson-content > *:first-child {
  margin-top: 0;
}

.rf-lesson-card .rf-lesson-content > *:last-child {
  margin-bottom: 0;
}

.rf-lesson-actions-reel {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 12px clamp(16px, 3vw, 28px);
  border-top: 1px solid var(--rf-line);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rf-lesson-actions-reel .rf-button {
  min-height: 38px;
  padding: 10px 16px;
  font-size: 0.86rem;
}

.rf-submission-box {
  max-width: 640px;
}

.rf-submission-form textarea {
  min-height: 92px;
  resize: vertical;
}

/* Stable cards: descriptions should never stretch grids unpredictably. */
.rf-course-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.rf-course-body h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
  .rf-feed-reel {
    height: 100dvh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
  }

  .admin-bar .rf-feed-reel {
    height: calc(100dvh - 32px);
  }

  .rf-lesson-reel {
    min-height: 100dvh;
    height: 100dvh;
    padding-top: 58px;
    scroll-snap-align: start;
  }

  .admin-bar .rf-lesson-reel {
    min-height: calc(100dvh - 32px);
    height: calc(100dvh - 32px);
  }
}

@media (max-width: 782px) {
  .admin-bar .rf-reel-topbar {
    top: 46px;
  }

  .admin-bar .rf-feed-reel {
    height: calc(100dvh - 46px);
  }

  .admin-bar .rf-lesson-reel {
    min-height: calc(100dvh - 46px);
    height: calc(100dvh - 46px);
  }

  .admin-bar .rf-lesson-card {
    max-height: calc(100dvh - 104px);
  }
}

@media (max-width: 640px) {
  .rf-reel-topbar {
    height: 44px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .rf-reel-title {
    gap: 7px;
  }

  .rf-reel-title span {
    font-size: 0.58rem;
  }

  .rf-reel-title strong {
    font-size: 0.82rem;
  }

  .rf-mini-progress-reel {
    flex-basis: 86px;
    width: 86px;
  }

  .rf-lesson-reel {
    padding: 44px 0 0;
  }

  .rf-lesson-card {
    width: 100%;
    max-height: none;
    height: calc(100dvh - 44px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .admin-bar .rf-lesson-card {
    max-height: none;
    height: calc(100dvh - 90px);
  }

  .rf-lesson-media-inline {
    height: min(34vh, 260px);
  }

  .rf-lesson-scroll {
    padding: 22px 18px;
  }

  .rf-lesson-card h2 {
    font-size: clamp(2.35rem, 17vw, 4.4rem);
  }

  .rf-lesson-content {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .rf-submission-box {
    padding: 14px;
  }

  .rf-lesson-actions-reel {
    padding: 10px 12px;
  }

  .rf-lesson-actions-reel .rf-button {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-height: 680px) {
  .rf-lesson-media-inline {
    height: min(28vh, 220px);
  }

  .rf-lesson-scroll {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .rf-lesson-card h2 {
    font-size: clamp(2rem, 8vh, 4.4rem);
  }

  .rf-lesson-content {
    font-size: 0.95rem;
    line-height: 1.45;
  }
}

/* Reunioon Flow v0.3 — collection, packs and improved media */
.rf-section-heading {
  margin: 34px 0 18px;
}

.rf-section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.rf-player-dashboard,
.rf-vitrine-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: end;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.92), transparent 38%),
    linear-gradient(135deg, #fffdf8, #eee7dc 54%, #d8cdbc);
  box-shadow: var(--rf-shadow-soft);
  margin-bottom: 28px;
  padding: clamp(26px, 5vw, 72px);
}

.rf-vitrine-hero {
  display: block;
}

.rf-player-dashboard::after,
.rf-vitrine-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(16,16,16,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
}

.rf-player-dashboard h1,
.rf-vitrine-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
}

.rf-player-dashboard p:not(.rf-kicker),
.rf-vitrine-hero p:not(.rf-kicker) {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: var(--rf-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.rf-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rf-stat-card {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(16,16,16,0.08);
  border-radius: 22px;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px;
}

.rf-stat-card span {
  color: var(--rf-muted);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rf-stat-card strong {
  color: var(--rf-ink);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.rf-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.rf-collection-set,
.rf-course-pack {
  overflow: hidden;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
  background: var(--rf-surface-strong);
  box-shadow: var(--rf-shadow-soft);
}

.rf-set-cover {
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #111, #312b24);
  color: #fff;
  text-decoration: none;
}

.rf-set-cover img,
.rf-pack-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rf-set-cover span,
.rf-pack-media span {
  font-size: 6rem;
  font-weight: 880;
  letter-spacing: -0.09em;
}

.rf-set-body,
.rf-pack-body {
  padding: 22px;
}

.rf-set-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.rf-set-head h3,
.rf-pack-label h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.rf-set-number {
  flex: 0 0 auto;
  border: 1px solid var(--rf-line);
  border-radius: 999px;
  color: var(--rf-ink);
  font-size: 0.9rem;
  padding: 8px 12px;
}

.rf-clamp {
  display: -webkit-box;
  overflow: hidden;
  color: var(--rf-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.55;
}

.rf-progress-compact {
  margin: 16px 0 8px;
}

.rf-progress-compact .rf-progress-bar {
  height: 7px;
}

.rf-mini-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 8px;
  margin: 16px 0 18px;
}

.rf-mini-card {
  position: relative;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border: 1px solid var(--rf-line);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(255,255,255,0.86), rgba(241,236,226,0.76));
  color: var(--rf-muted);
  font-size: 0.78rem;
  font-weight: 820;
}

.rf-mini-card.is-unlocked {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.95), transparent 34%),
    linear-gradient(145deg, #111, #3b342c);
  color: #fff;
  box-shadow: 0 10px 24px rgba(16,16,16,0.16);
}

.rf-mini-card small {
  position: absolute;
  right: 4px;
  bottom: 3px;
  opacity: 0.8;
}

.rf-mini-card.has-grade-state::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.rf-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.rf-course-pack {
  display: grid;
  grid-template-rows: auto 1fr;
}

.rf-pack-envelope {
  position: relative;
  min-height: 330px;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-bottom: 1px solid var(--rf-line);
  background:
    linear-gradient(145deg, #111, #2c261f 58%, #17120d);
  color: #fff;
  text-decoration: none;
}

.rf-pack-envelope::before,
.rf-pack-envelope::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  opacity: 0.72;
  pointer-events: none;
}

.rf-pack-envelope::before {
  background: linear-gradient(32deg, rgba(255,255,255,0.18) 0 49.5%, transparent 50%);
}

.rf-pack-envelope::after {
  background: linear-gradient(-32deg, rgba(255,255,255,0.12) 0 49.5%, transparent 50%);
}

.rf-pack-flap {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), transparent 46%);
  clip-path: polygon(0 0, 100% 0, 50% 45%);
  opacity: 0.72;
}

.rf-pack-media {
  position: absolute;
  inset: 34px 34px 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.rf-pack-label {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.rf-pack-label p {
  margin: 0 0 8px;
  color: rgba(255,255,255,0.72);
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rf-pack-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rf-card-lesson .rf-lesson-card {
  isolation: isolate;
}

.rf-media-layout-contained {
  width: min(92%, 680px);
  justify-self: center;
  align-self: center;
  margin: clamp(16px, 3vw, 28px) auto 0;
  border: 1px solid var(--rf-line);
  border-radius: 26px;
}

.rf-media-layout-wide {
  margin: 0;
}

.rf-media-layout-edge {
  margin: 0 calc(clamp(22px, 4vw, 50px) * -1);
  border-right: 0;
  border-left: 0;
}

.rf-lesson-media-inline .rf-oembed,
.rf-lesson-media-inline .rf-oembed iframe {
  width: 100%;
  height: 100%;
}

.rf-lesson-media-inline .rf-oembed iframe,
.rf-lesson-media-inline iframe.rf-media-el {
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 100%;
}

.rf-lesson-media-inline img.rf-media-el,
.rf-lesson-media-inline video.rf-media-el {
  display: block;
  object-position: center center;
}

.rf-media-layout-contained .rf-media-el {
  object-fit: contain;
}

.rf-media-layout-wide .rf-media-el,
.rf-media-layout-edge .rf-media-el {
  object-fit: cover;
}

.rf-lesson-bg-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #080808;
}

.rf-lesson-bg-media .rf-media-el,
.rf-lesson-bg-media .rf-oembed,
.rf-lesson-bg-media iframe,
.rf-lesson-bg-media video,
.rf-lesson-bg-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.rf-lesson-bg-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.20), rgba(0,0,0,0.58));
}

.media-layout-background .rf-lesson-card {
  color: #fff;
  background: #111;
}

.media-layout-background .rf-kicker,
.media-layout-background .rf-lesson-content,
.media-layout-background .rf-lesson-count,
.media-layout-background .rf-submission-prompt {
  color: rgba(255,255,255,0.78);
}

.media-layout-background .rf-lesson-actions-reel,
.media-layout-background .rf-submission-box {
  border-color: rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.42);
}

/* Gutenberg/content alignment inside lesson text. */
.rf-lesson-content img,
.rf-lesson-content video,
.rf-lesson-content iframe,
.rf-lesson-content figure {
  max-width: 100%;
}

.rf-lesson-content .aligncenter,
.rf-lesson-content figure.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.rf-lesson-content .alignwide,
.rf-lesson-content .alignfull {
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.rf-lesson-content .wp-block-image img,
.rf-lesson-content .wp-block-video video,
.rf-lesson-content .wp-block-embed iframe {
  display: block;
  width: 100%;
  border-radius: 20px;
}

@media (max-width: 760px) {
  .rf-player-dashboard {
    grid-template-columns: 1fr;
  }

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

  .rf-pack-envelope {
    min-height: 300px;
  }

  .rf-pack-media {
    inset: 28px 28px 108px;
  }

  .rf-media-layout-edge {
    margin-right: -18px;
    margin-left: -18px;
  }
}

@media (max-width: 520px) {
  .rf-player-dashboard,
  .rf-vitrine-hero {
    border-radius: 28px;
    padding: 24px;
  }

  .rf-stats-grid {
    gap: 8px;
  }

  .rf-stat-card {
    min-height: 78px;
    border-radius: 18px;
    padding: 13px;
  }

  .rf-stat-card strong {
    font-size: 1.8rem;
  }

  .rf-collection-grid,
  .rf-pack-grid {
    grid-template-columns: 1fr;
  }

  .rf-pack-envelope {
    min-height: 280px;
  }

  .rf-pack-media {
    inset: 24px 24px 102px;
    border-radius: 20px;
  }
}

/* Reunioon Flow v0.4 — sobres visuales y reverso de tarjetas. */
.rf-course-pack {
  background: rgba(255, 255, 255, 0.9);
}

.rf-pack-envelope {
  min-height: 360px;
  border-bottom: 0;
  background: linear-gradient(145deg, #111, #342d25);
}

.rf-pack-media {
  inset: 0;
  z-index: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.22), transparent 36%),
    linear-gradient(145deg, #191512, #3a3228 60%, #111);
}

.rf-pack-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.025);
}

.rf-pack-media span {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.86);
  text-shadow: 0 18px 46px rgba(0,0,0,0.42);
}

.rf-pack-envelope::before,
.rf-pack-envelope::after,
.rf-pack-flap {
  z-index: 1;
  pointer-events: none;
}

.rf-pack-envelope::before {
  inset: 0;
  height: auto;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.20) 38%, rgba(0,0,0,0.76) 100%);
}

.rf-pack-envelope::after {
  inset: auto 0 0;
  height: 44%;
  opacity: 0.38;
  background:
    linear-gradient(30deg, rgba(255,255,255,0.22) 0 49.5%, transparent 50%),
    linear-gradient(-30deg, rgba(255,255,255,0.14) 0 49.5%, transparent 50%);
}

.rf-pack-flap {
  opacity: 0.35;
  background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02) 50%, transparent 51%);
}

.rf-pack-label {
  position: relative;
  z-index: 2;
  padding: 28px;
  text-shadow: 0 12px 34px rgba(0,0,0,0.62);
}

.rf-pack-label h2 {
  color: #fff;
  max-width: 9ch;
}

.rf-pack-label p {
  color: rgba(255,255,255,0.78);
}

.rf-pack-body {
  gap: 18px;
  padding: 24px;
}

.rf-mini-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(46px, 56px));
  align-items: start;
  gap: 10px;
}

.rf-mini-card {
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  background: #17130f;
  box-shadow: 0 10px 26px rgba(16,16,16,0.12);
  transform: translateZ(0);
}

.rf-mini-card-front,
.rf-mini-card-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.rf-mini-card-front {
  z-index: 1;
  background: linear-gradient(145deg, #111, #3b342c);
}

.rf-mini-card-back {
  z-index: 2;
  color: rgba(20,20,20,0.76);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.92) 0 15%, transparent 16%),
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.72), transparent 26%),
    repeating-linear-gradient(45deg, rgba(17,17,17,0.08) 0 2px, transparent 2px 7px),
    linear-gradient(145deg, #eee7da, #d9cfc0 58%, #f7f3ec);
}

.rf-mini-card-back::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(17,17,17,0.16);
  border-radius: 9px;
}

.rf-card-back-symbol {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,17,17,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.rf-mini-card-img,
.rf-mini-card .rf-mini-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rf-mini-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,0.32), transparent 34%),
    linear-gradient(145deg, #111, #3b342c);
  font-size: 1.05rem;
  font-weight: 900;
}

.rf-mini-card.is-locked .rf-mini-card-front {
  opacity: 0;
  transform: scale(0.96);
}

.rf-mini-card.is-locked .rf-mini-card-back {
  opacity: 1;
  transform: scale(1);
}

.rf-mini-card.is-unlocked .rf-mini-card-front {
  opacity: 1;
  transform: scale(1);
}

.rf-mini-card.is-unlocked .rf-mini-card-back {
  opacity: 0;
  transform: scale(1.04);
}

.rf-mini-card em,
.rf-mini-card small {
  z-index: 3;
}

.rf-mini-card em {
  position: absolute;
  left: 5px;
  bottom: 5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  color: #fff;
  font-style: normal;
  font-size: 0.68rem;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rf-mini-card.is-locked em {
  background: rgba(255,255,255,0.7);
  color: rgba(17,17,17,0.72);
}

.rf-mini-card small {
  right: 5px;
  bottom: 5px;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.rf-mini-card.is-locked small {
  color: rgba(17,17,17,0.62);
  text-shadow: none;
}

.rf-mini-card.is-completed {
  border-color: rgba(255,255,255,0.58);
}

.rf-mini-card.is-completed .rf-mini-card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 0 58%, rgba(255,255,255,0.18) 59% 100%);
}

@media (max-width: 760px) {
  .rf-pack-envelope {
    min-height: 330px;
  }

  .rf-pack-media {
    inset: 0;
    border-radius: 0;
  }
}

@media (max-width: 520px) {
  .rf-pack-envelope {
    min-height: 300px;
  }

  .rf-pack-media {
    inset: 0;
    border-radius: 0;
  }

  .rf-pack-label {
    padding: 24px;
  }

  .rf-mini-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  }
}

/* Reunioon Flow v0.5 — sobres limpios y backend visual */
.rf-course-pack-clean {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--rf-radius-lg);
  background: var(--rf-surface-strong);
}

.rf-course-pack-clean .rf-pack-cover {
  position: relative;
  min-height: clamp(230px, 52vw, 360px);
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--rf-line);
  background: linear-gradient(145deg, #111, #342d25);
  color: #fff;
  text-decoration: none;
}

.rf-course-pack-clean .rf-pack-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.04) 38%, rgba(0,0,0,0.28) 100%),
    linear-gradient(32deg, rgba(255,255,255,0.12) 0 49.5%, transparent 50%),
    linear-gradient(-32deg, rgba(255,255,255,0.08) 0 49.5%, transparent 50%);
}

.rf-course-pack-clean .rf-pack-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.22), transparent 36%),
    linear-gradient(145deg, #191512, #3a3228 60%, #111);
}

.rf-course-pack-clean .rf-pack-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.rf-course-pack-clean .rf-pack-media span {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.86);
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  text-shadow: 0 18px 46px rgba(0,0,0,0.42);
}

.rf-pack-status {
  position: absolute;
  z-index: 3;
  left: 22px;
  top: 22px;
  max-width: calc(100% - 44px);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,0.36);
  border-radius: 999px;
  background: rgba(0,0,0,0.38);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.18);
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.rf-course-pack-clean .rf-pack-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 280px;
  padding: clamp(22px, 5vw, 34px);
}

.rf-course-pack-clean .rf-pack-body h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--rf-ink);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(2.1rem, 8vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.rf-course-pack-clean .rf-card-meta {
  margin-top: auto;
}

.rf-course-pack-clean .rf-button {
  width: 100%;
}

.rf-course-pack-clean .rf-clamp {
  -webkit-line-clamp: 3;
}

@media (max-width: 520px) {
  .rf-course-pack-clean .rf-pack-cover {
    min-height: 300px;
  }

  .rf-course-pack-clean .rf-pack-body {
    min-height: 280px;
    padding: 24px;
  }

  .rf-pack-status {
    left: 18px;
    top: 18px;
  }
}

/* Reunioon Flow v0.7 — tarjetas dominantes, overlay glass y desbloqueo por reverso */
.rf-card-experience.rf-lesson-reel {
  padding: clamp(52px, 7vh, 68px) clamp(10px, 2.4vw, 26px) clamp(10px, 2.4vw, 26px);
}

.rf-card-experience .rf-lesson-card {
  display: block;
  width: min(100%, 920px);
  max-height: calc(100dvh - 82px);
  min-height: 0;
  height: 100%;
  background: #0b0a09;
  color: #fff;
  isolation: isolate;
  perspective: 1600px;
}

.rf-card-front,
.rf-card-back-large {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  transition: opacity 260ms ease, transform 520ms cubic-bezier(.2,.8,.2,1), filter 260ms ease;
}

.rf-card-front {
  z-index: 1;
  background: #080808;
}

.rf-card-back-large {
  z-index: 2;
  display: grid;
  place-items: center;
  color: #17130f;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,0.78) 0 10%, transparent 11%),
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.62), transparent 30%),
    repeating-linear-gradient(45deg, rgba(18,18,18,0.085) 0 2px, transparent 2px 9px),
    linear-gradient(145deg, #f2eadc, #d7cbbb 58%, #faf7ef);
}

.rf-card-back-large::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(17,17,17,0.18);
  border-radius: clamp(18px, 2.6vw, 28px);
  pointer-events: none;
}

.rf-card-back-large::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(17,17,17,0.07);
  border-radius: clamp(14px, 2vw, 22px);
  pointer-events: none;
}

.rf-card-back-pattern {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.rf-card-back-mark {
  width: clamp(72px, 18vw, 136px);
  height: clamp(72px, 18vw, 136px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,17,17,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  color: rgba(17,17,17,0.72);
  font-size: clamp(2.7rem, 11vw, 7rem);
  font-weight: 950;
  letter-spacing: -0.1em;
  line-height: 1;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.18), 0 24px 80px rgba(16,16,16,0.10);
}

.rf-card-back-number {
  position: absolute;
  right: 28px;
  top: 26px;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,17,17,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.52);
  font-weight: 900;
}

.rf-card-back-copy {
  position: absolute;
  left: clamp(22px, 4vw, 46px);
  right: clamp(22px, 4vw, 46px);
  bottom: clamp(24px, 4vw, 48px);
  z-index: 1;
}

.rf-card-back-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.2rem, 9vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.rf-card-back-copy p:not(.rf-kicker) {
  max-width: 420px;
  color: rgba(17,17,17,0.62);
  font-size: 1rem;
  line-height: 1.45;
}

.rf-lesson.is-unlocked .rf-card-back-large,
.rf-lesson.is-completed .rf-card-back-large {
  opacity: 0;
  transform: rotateY(-12deg) scale(0.98);
  pointer-events: none;
}

.rf-lesson.is-locked .rf-card-front {
  opacity: 0;
  transform: rotateY(10deg) scale(0.98);
  pointer-events: none;
}

.rf-lesson.is-locked .rf-card-back-large {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
}

.rf-lesson.is-just-unlocked .rf-card-front {
  animation: rfCardReveal 700ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes rfCardReveal {
  from { opacity: 0; transform: rotateY(18deg) scale(0.96); }
  to { opacity: 1; transform: rotateY(0deg) scale(1); }
}

.rf-card-main-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.09), transparent 38%),
    linear-gradient(145deg, #0a0a0a, #1d1914);
}

.rf-card-main-media .rf-media-focus {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.rf-card-main-media .rf-media-el,
.rf-card-main-media .rf-oembed,
.rf-card-main-media .rf-oembed iframe,
.rf-card-main-media .rf-media-placeholder,
.rf-card-main-media .rf-audio-stage {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.rf-card-main-media .rf-media-placeholder {
  display: grid;
  place-items: center;
}

.rf-media-mode-reel .rf-media-focus,
.rf-media-mode-fullscreen .rf-media-focus {
  width: 100%;
  height: 100%;
}

.rf-media-mode-reel img,
.rf-media-mode-reel video,
.rf-media-mode-reel iframe,
.rf-media-mode-fullscreen img,
.rf-media-mode-fullscreen video,
.rf-media-mode-fullscreen iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rf-media-mode-fullscreen iframe,
.rf-media-mode-fullscreen .rf-oembed iframe {
  background: #050505;
}

.rf-media-mode-cine {
  padding: clamp(18px, 4vw, 56px);
}

.rf-media-mode-cine::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), transparent 44%),
    linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.72));
}

.rf-media-mode-cine .rf-media-focus {
  width: min(100%, 980px);
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: clamp(18px, 3vw, 30px);
  background: #050505;
  box-shadow: 0 28px 100px rgba(0,0,0,0.32);
}

.rf-media-mode-cine .rf-media-el,
.rf-media-mode-cine .rf-oembed,
.rf-media-mode-cine .rf-oembed iframe,
.rf-media-mode-cine video,
.rf-media-mode-cine img,
.rf-media-mode-cine iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rf-media-mode-object {
  padding: clamp(24px, 5vw, 70px);
}

.rf-media-mode-object .rf-media-focus {
  width: min(100%, 760px);
  height: min(76%, 760px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: clamp(18px, 3vw, 34px);
  background: rgba(0,0,0,0.20);
  box-shadow: 0 28px 100px rgba(0,0,0,0.24);
}

.rf-media-mode-object img,
.rf-media-mode-object video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rf-media-mode-object .rf-audio-stage {
  min-height: 260px;
}

.rf-card-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.38) 0%, transparent 24%, transparent 60%, rgba(0,0,0,0.62) 100%),
    radial-gradient(circle at 50% 46%, transparent 38%, rgba(0,0,0,0.28) 100%);
}

.rf-card-top-line,
.rf-card-title-chip,
.rf-card-quick-actions {
  position: absolute;
  z-index: 4;
}

.rf-card-top-line {
  top: clamp(14px, 2vw, 24px);
  left: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255,255,255,0.86);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-shadow: 0 4px 16px rgba(0,0,0,0.42);
}

.rf-card-top-line strong {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px 10px;
  color: #fff;
  font-size: 0.68rem;
}

.rf-card-title-chip {
  left: clamp(16px, 3vw, 34px);
  right: clamp(84px, 12vw, 132px);
  bottom: clamp(18px, 3vw, 34px);
  color: #fff;
  text-shadow: 0 8px 28px rgba(0,0,0,0.52);
}

.rf-card-title-chip .rf-kicker {
  color: rgba(255,255,255,0.76);
  margin-bottom: 8px;
}

.rf-card-title-chip h2 {
  max-width: 11ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
}

.rf-card-quick-actions {
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rf-round-button,
.rf-overlay-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(0,0,0,0.24);
  transition: transform 180ms ease, background 180ms ease;
}

.rf-round-button:hover,
.rf-round-button:focus,
.rf-overlay-close:hover,
.rf-overlay-close:focus {
  background: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

.rf-info-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 13, 11, 0.46);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  transition: opacity 200ms ease;
}

.rf-lesson.is-info-open .rf-info-overlay {
  opacity: 1;
  pointer-events: auto;
}

.rf-overlay-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  font-size: 1.4rem;
  line-height: 1;
}

.rf-info-panel {
  width: min(92%, 720px);
  max-height: min(82dvh, 760px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: clamp(22px, 3vw, 34px);
  background: rgba(255,255,255,0.78);
  color: var(--rf-ink);
  box-shadow: 0 34px 140px rgba(0,0,0,0.32);
  padding: clamp(22px, 4vw, 44px);
}

.rf-info-panel .rf-kicker,
.rf-info-panel .rf-lesson-content,
.rf-info-panel .rf-submission-prompt {
  color: var(--rf-muted);
}

.rf-info-panel h2 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.rf-info-panel .rf-lesson-content {
  max-width: 650px;
}

.rf-lesson-actions-overlay {
  margin-top: 24px;
}

.rf-lesson.is-completed .rf-round-button.rf-complete-button {
  background: rgba(255,255,255,0.86);
  color: #111;
}

@media (max-width: 640px) {
  .rf-card-experience.rf-lesson-reel {
    padding: 44px 0 0;
  }

  .rf-card-experience .rf-lesson-card {
    width: 100%;
    height: calc(100dvh - 44px);
    max-height: none;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .admin-bar .rf-card-experience .rf-lesson-card {
    height: calc(100dvh - 90px);
  }

  .rf-media-mode-cine {
    padding: 16px;
  }

  .rf-media-mode-cine .rf-media-focus {
    width: 100%;
    border-radius: 18px;
  }

  .rf-media-mode-object {
    padding: 18px;
  }

  .rf-card-title-chip {
    right: 86px;
    bottom: 18px;
  }

  .rf-card-title-chip h2 {
    font-size: clamp(2.1rem, 14vw, 4.4rem);
  }

  .rf-round-button,
  .rf-overlay-close {
    width: 44px;
    height: 44px;
  }

  .rf-info-panel {
    width: calc(100% - 26px);
    max-height: 78dvh;
    padding: 22px;
  }

  .rf-card-back-copy h2 {
    font-size: clamp(2.2rem, 14vw, 4.6rem);
  }
}

@media (max-height: 680px) {
  .rf-card-title-chip h2 {
    font-size: clamp(1.8rem, 9vh, 4.2rem);
  }

  .rf-info-panel h2 {
    font-size: clamp(2rem, 9vh, 4.2rem);
  }
}

/* Reunioon Flow v0.7 — overlay full-card limpio y scrollbar integrada */
.rf-card-experience .rf-info-overlay {
  display: block;
  place-items: unset;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.42), transparent 36%),
    radial-gradient(circle at 82% 92%, rgba(255,255,255,0.24), transparent 38%),
    linear-gradient(135deg, rgba(248,244,237,0.66), rgba(239,232,221,0.46) 44%, rgba(18,15,12,0.26));
  backdrop-filter: blur(30px) saturate(1.12);
  -webkit-backdrop-filter: blur(30px) saturate(1.12);
}

.rf-card-experience .rf-info-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2.5vw, 26px);
  width: auto;
  max-height: none;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--rf-ink);
  box-shadow: none;
  padding: clamp(24px, 4.8vw, 64px);
  padding-right: clamp(22px, 5.2vw, 78px);
}

.rf-card-experience .rf-info-head,
.rf-card-experience .rf-info-scroll,
.rf-card-experience .rf-lesson-actions-overlay {
  width: min(100%, 760px);
}

.rf-card-experience .rf-info-head {
  padding-right: 54px;
}

.rf-card-experience .rf-info-head .rf-kicker {
  color: rgba(17,17,17,0.56);
}

.rf-card-experience .rf-info-panel h2 {
  color: var(--rf-ink);
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.rf-card-experience .rf-info-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 2px clamp(8px, 1.4vw, 14px) 2px 0;
  color: var(--rf-muted);
  scrollbar-width: thin;
  scrollbar-color: rgba(16,16,16,0.34) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 22px), transparent 100%);
}

.rf-card-experience .rf-info-scroll::-webkit-scrollbar {
  width: 7px;
}

.rf-card-experience .rf-info-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.rf-card-experience .rf-info-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(16,16,16,0.28);
}

.rf-card-experience .rf-info-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(16,16,16,0.42);
}

.rf-card-experience .rf-info-panel .rf-lesson-content {
  max-width: 680px;
  color: rgba(17,17,17,0.68);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.58;
}

.rf-card-experience .rf-info-panel .rf-lesson-content p {
  margin-top: 0;
}

.rf-card-experience .rf-info-panel .rf-lesson-content a {
  color: var(--rf-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rf-card-experience .rf-info-panel .rf-submission-box,
.rf-card-experience .rf-info-panel .rf-status-card {
  border-color: rgba(16,16,16,0.12);
  background: rgba(255,255,255,0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rf-card-experience .rf-info-panel .rf-submission-form textarea,
.rf-card-experience .rf-info-panel .rf-submission-form input[type="url"],
.rf-card-experience .rf-info-panel .rf-submission-form input[type="file"] {
  border-color: rgba(16,16,16,0.12);
  background: rgba(255,255,255,0.46);
}

.rf-card-experience .rf-lesson-actions-overlay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-top: 2px;
}

.rf-card-experience .rf-overlay-close {
  top: clamp(14px, 2vw, 22px);
  right: clamp(14px, 2vw, 22px);
  z-index: 12;
  border-color: rgba(16,16,16,0.12);
  background: rgba(255,255,255,0.34);
  color: var(--rf-ink);
  box-shadow: 0 14px 42px rgba(0,0,0,0.12);
}

.rf-card-experience .rf-overlay-close:hover,
.rf-card-experience .rf-overlay-close:focus {
  background: rgba(255,255,255,0.52);
}

@media (max-width: 640px) {
  .rf-card-experience .rf-info-panel {
    padding: 20px 18px 18px;
    padding-right: 18px;
    gap: 14px;
  }

  .rf-card-experience .rf-info-head,
  .rf-card-experience .rf-info-scroll,
  .rf-card-experience .rf-lesson-actions-overlay {
    width: 100%;
  }

  .rf-card-experience .rf-info-head {
    padding-right: 52px;
  }

  .rf-card-experience .rf-info-panel h2 {
    font-size: clamp(2.2rem, 13vw, 4.8rem);
  }

  .rf-card-experience .rf-info-scroll {
    padding-right: 6px;
  }
}

@media (max-height: 680px) {
  .rf-card-experience .rf-info-panel {
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .rf-card-experience .rf-info-panel h2 {
    font-size: clamp(2rem, 9vh, 4.4rem);
  }
}

/* Reunioon Flow v0.7.1 — ajuste fino de alineación del overlay */
.rf-card-experience .rf-lesson-card,
.rf-card-experience .rf-card-front,
.rf-card-experience .rf-card-back-large,
.rf-card-experience .rf-info-overlay,
.rf-card-experience .rf-info-panel {
  box-sizing: border-box;
}

.rf-card-experience .rf-lesson-card {
  overflow: hidden;
}

.rf-card-experience .rf-card-front {
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  transform: translateZ(0);
}

.rf-card-experience .rf-info-overlay {
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background-clip: padding-box;
  transform: translateZ(0);
}

.rf-card-experience .rf-info-panel {
  inset: 0;
  border-radius: inherit;
  transform: translateZ(0);
}

/* Mantiene el contenido alineado con la tarjeta frontal, no como subpanel independiente. */
.rf-card-experience .rf-info-head,
.rf-card-experience .rf-info-scroll,
.rf-card-experience .rf-lesson-actions-overlay {
  margin-left: 0;
  margin-right: auto;
}

/* Reunioon Flow v0.8 — lenguaje de cartas, XP, reto y overlay inset */
.rf-card-experience .rf-lesson-card {
  --rf-card-radius: clamp(24px, 3vw, 34px);
  --rf-accent-green: #3bd778;
  width: min(100%, 540px);
  height: min(calc(100dvh - 86px), 820px);
  min-height: 640px;
  border-radius: var(--rf-card-radius);
  border: 2px solid rgba(255,255,255,0.85);
  outline: 2px solid rgba(22, 122, 255, 0.75);
  outline-offset: -2px;
  background: #050505;
  box-shadow: 0 34px 110px rgba(0,0,0,0.24);
}

.rf-card-experience .rf-card-front {
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 126px;
  background: #050505;
}

.rf-card-experience .rf-card-main-media {
  position: relative;
  inset: auto;
  grid-row: 2;
  min-height: 0;
  border-bottom: 1px solid rgba(255,255,255,0.13);
}

.rf-card-experience .rf-card-vignette {
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 18%, transparent 70%, rgba(0,0,0,0.18) 100%),
    radial-gradient(circle at 50% 48%, transparent 46%, rgba(0,0,0,0.14) 100%);
}

.rf-card-experience .rf-card-top-line {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 5;
  grid-row: 1;
  height: 56px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  background: rgba(0,0,0,0.72);
  color: rgba(255,255,255,0.92);
  text-shadow: none;
}

.rf-card-experience .rf-card-state-pill,
.rf-card-experience .rf-lesson-state {
  border: 1px solid rgba(255,255,255,0.54);
  border-radius: 999px;
  background: rgba(0,0,0,0.12);
  padding: 6px 11px;
  line-height: 1;
  font-size: 0.72rem;
  color: #fff;
}

.rf-lesson.is-unlocked .rf-card-state-pill.is-unlocked-label,
.rf-lesson.is-unlocked .rf-lesson-state.is-unlocked-label,
.rf-lesson.is-completed .rf-card-state-pill,
.rf-lesson.is-completed .rf-lesson-state {
  color: var(--rf-accent-green);
  border-color: rgba(59,215,120,0.78);
  background: rgba(59,215,120,0.08);
}

.rf-card-experience .rf-card-bottom-panel {
  position: relative;
  z-index: 5;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr 1.15fr 58px;
  gap: 20px;
  align-items: stretch;
  min-height: 126px;
  padding: 18px 22px 18px 28px;
  background: rgba(0,0,0,0.88);
  color: #fff;
}

.rf-card-experience .rf-card-title-chip {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-shadow: none;
}

.rf-card-experience .rf-card-title-chip .rf-kicker {
  margin: 0 0 8px;
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.rf-card-experience .rf-card-title-chip h2 {
  max-width: 8.5ch;
  color: #fff;
  font-size: clamp(1.7rem, 4.8vw, 2.55rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.rf-card-experience .rf-card-stat-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-content: center;
  padding: 0 18px;
  border-left: 1px solid rgba(255,255,255,0.42);
  border-right: 1px solid rgba(255,255,255,0.42);
}

.rf-card-experience .rf-card-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: rgba(255,255,255,0.86);
  font-size: clamp(0.70rem, 1.25vw, 0.82rem);
  line-height: 1.15;
}

.rf-card-experience .rf-card-stat i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: var(--rf-accent-green);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
}

.rf-card-experience .rf-card-stat b {
  font-weight: 720;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rf-card-experience .rf-card-quick-actions {
  position: static;
  right: auto;
  bottom: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.rf-card-experience .rf-round-button,
.rf-card-experience .rf-overlay-close {
  width: 46px;
  height: 46px;
  border-color: rgba(255,255,255,0.56);
  background: rgba(255,255,255,0.18);
  font-size: 1.35rem;
}

.rf-card-experience .rf-round-button.rf-info-toggle {
  color: #fff;
}

.rf-lesson.is-unlocked .rf-card-experience .rf-round-button.rf-complete-button,
.rf-lesson.is-completed .rf-card-experience .rf-round-button.rf-complete-button,
.rf-card-experience .rf-lesson.is-unlocked .rf-round-button.rf-complete-button,
.rf-card-experience .rf-lesson.is-completed .rf-round-button.rf-complete-button,
.rf-lesson.is-unlocked .rf-round-button.rf-complete-button,
.rf-lesson.is-completed .rf-round-button.rf-complete-button {
  color: #08120d;
  border-color: rgba(59,215,120,0.85);
  background: rgba(59,215,120,0.92);
  box-shadow: 0 14px 40px rgba(59,215,120,0.24);
}

.rf-card-experience .rf-info-overlay {
  inset: clamp(10px, 1.5vw, 16px);
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: calc(var(--rf-card-radius) - 10px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.46), transparent 36%),
    linear-gradient(135deg, rgba(246,242,234,0.70), rgba(230,224,214,0.54) 48%, rgba(19,16,14,0.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.36), 0 18px 80px rgba(0,0,0,0.12);
}

.rf-card-experience .rf-info-panel {
  inset: 0;
  border-radius: inherit;
  padding: clamp(22px, 4vw, 46px);
  padding-right: clamp(22px, 4.6vw, 60px);
}

.rf-card-experience .rf-overlay-close {
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.46);
}

.rf-card-experience .rf-attempt-note {
  display: block;
  margin-top: 8px;
  color: rgba(17,17,17,0.58);
  font-size: 0.82rem;
}

.rf-card-experience .rf-attempt-locked {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(17,17,17,0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.35);
}

.rf-card-experience .rf-attempt-history {
  margin: 12px 0;
  color: rgba(17,17,17,0.62);
}

.rf-card-experience .rf-attempt-history summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--rf-ink);
}

.rf-card-experience .rf-attempt-history ol {
  margin: 8px 0 0;
  padding-left: 18px;
}

.rf-card-experience .rf-attempt-history li {
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .rf-card-experience.rf-lesson-reel {
    padding: 44px 10px 10px;
  }

  .rf-card-experience .rf-lesson-card {
    width: 100%;
    height: calc(100dvh - 64px);
    min-height: 560px;
    max-height: none;
    border-radius: 28px;
    border: 2px solid rgba(0,0,0,0.9);
    outline: 2px solid rgba(22,122,255,0.70);
  }

  .admin-bar .rf-card-experience .rf-lesson-card {
    height: calc(100dvh - 108px);
  }

  .rf-card-experience .rf-card-front {
    grid-template-rows: 50px minmax(0, 1fr) 118px;
  }

  .rf-card-experience .rf-card-top-line {
    height: 50px;
    padding: 0 20px;
  }

  .rf-card-experience .rf-card-bottom-panel {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 1.05fr) 48px;
    gap: 12px;
    min-height: 118px;
    padding: 15px 16px 15px 20px;
  }

  .rf-card-experience .rf-card-title-chip h2 {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  .rf-card-experience .rf-card-stat-list {
    gap: 4px;
    padding: 0 10px;
  }

  .rf-card-experience .rf-card-stat {
    gap: 6px;
    font-size: 0.68rem;
  }

  .rf-card-experience .rf-card-stat i {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    font-size: 0.66rem;
  }

  .rf-card-experience .rf-round-button,
  .rf-card-experience .rf-overlay-close {
    width: 42px;
    height: 42px;
    font-size: 1.22rem;
  }

  .rf-card-experience .rf-info-overlay {
    inset: 10px;
    border-radius: 22px;
  }

  .rf-card-experience .rf-info-panel {
    padding: 18px 16px 16px;
    padding-right: 16px;
  }
}

@media (max-width: 390px) {
  .rf-card-experience .rf-card-bottom-panel {
    grid-template-columns: minmax(0, 0.95fr) minmax(106px, 1fr) 44px;
    gap: 9px;
    padding-left: 16px;
  }

  .rf-card-experience .rf-card-stat-list {
    padding: 0 8px;
  }

  .rf-card-experience .rf-card-stat b {
    max-width: 88px;
  }
}

/* Reunioon Flow v0.8.2 — tarjeta full-content + overlays glass proporcionales */
.rf-card-experience.rf-lesson-reel {
  padding: clamp(54px, 7vh, 74px) clamp(12px, 2.6vw, 30px) clamp(16px, 2.6vw, 30px);
}

.rf-card-experience .rf-lesson-card {
  --rf-card-radius: clamp(24px, 3vw, 36px);
  width: min(64dvh, 700px, calc(100vw - 56px));
  height: min(calc(100dvh - 104px), 940px);
  min-height: min(680px, calc(100dvh - 104px));
  max-height: none;
  border-radius: var(--rf-card-radius);
  overflow: hidden;
}

.admin-bar .rf-card-experience .rf-lesson-card {
  height: min(calc(100dvh - 136px), 900px);
  min-height: min(640px, calc(100dvh - 136px));
}

.rf-card-experience .rf-card-front {
  display: block;
  position: absolute;
  inset: 0;
  grid-template-rows: none;
  overflow: hidden;
  background: #050505;
}

/* La media vuelve a ser el contenido dominante: cubre toda la tarjeta. */
.rf-card-experience .rf-card-main-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  grid-row: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: inherit;
  background: #050505;
}

.rf-card-experience .rf-card-main-media .rf-media-focus,
.rf-card-experience .rf-media-mode-cine .rf-media-focus,
.rf-card-experience .rf-media-mode-object .rf-media-focus,
.rf-card-experience .rf-media-mode-reel .rf-media-focus,
.rf-card-experience .rf-media-mode-fullscreen .rf-media-focus {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: #050505;
  box-shadow: none;
}

.rf-card-experience .rf-media-mode-cine,
.rf-card-experience .rf-media-mode-object,
.rf-card-experience .rf-media-mode-reel,
.rf-card-experience .rf-media-mode-fullscreen {
  padding: 0;
}

.rf-card-experience .rf-media-mode-cine::before {
  display: none;
}

.rf-card-experience .rf-card-main-media img,
.rf-card-experience .rf-card-main-media video,
.rf-card-experience .rf-card-main-media iframe,
.rf-card-experience .rf-card-main-media .rf-media-el,
.rf-card-experience .rf-card-main-media .rf-oembed,
.rf-card-experience .rf-card-main-media .rf-oembed iframe,
.rf-card-experience .rf-card-main-media .rf-media-placeholder,
.rf-card-experience .rf-card-main-media .rf-audio-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
}

.rf-card-experience .rf-media-mode-cine img,
.rf-card-experience .rf-media-mode-cine video,
.rf-card-experience .rf-media-mode-cine iframe,
.rf-card-experience .rf-media-mode-cine .rf-media-el,
.rf-card-experience .rf-media-mode-cine .rf-oembed,
.rf-card-experience .rf-media-mode-cine .rf-oembed iframe {
  object-fit: cover;
}

.rf-card-experience .rf-card-vignette {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.46) 0%, rgba(0,0,0,0.12) 22%, rgba(0,0,0,0.08) 58%, rgba(0,0,0,0.70) 100%),
    radial-gradient(circle at 50% 48%, transparent 42%, rgba(0,0,0,0.22) 100%);
}

/* Overlays de carta: la interfaz flota sobre la media, no le roba espacio. */
.rf-card-experience .rf-card-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 56px;
  padding: 0 clamp(18px, 3vw, 30px);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(0,0,0,0.68), rgba(0,0,0,0.36));
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.rf-card-experience .rf-card-bottom-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(140px, 1.08fr) 54px;
  gap: clamp(14px, 2.4vw, 24px);
  align-items: stretch;
  min-height: clamp(132px, 19vh, 168px);
  padding: clamp(16px, 2.5vh, 22px) clamp(16px, 2.8vw, 28px);
  border-top: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(0,0,0,0.34), rgba(0,0,0,0.78));
  color: #fff;
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
}

.rf-card-experience .rf-card-title-chip {
  min-width: 0;
  gap: clamp(7px, 1.2vh, 12px);
  justify-content: flex-start;
  padding-top: 1px;
}

.rf-card-experience .rf-card-title-chip .rf-kicker {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.68rem, 1.6vh, 0.90rem);
  font-weight: 880;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.rf-card-experience .rf-card-title-chip h2 {
  display: -webkit-box;
  max-width: 9.5ch;
  max-height: 2.05em;
  overflow: hidden;
  margin: 0;
  color: #fff;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(1.55rem, 4.4vh, 3.1rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.rf-card-experience .rf-card-stat-list {
  min-width: 0;
  padding: 0 clamp(10px, 1.8vw, 18px);
  border-left: 1px solid rgba(255,255,255,0.34);
  border-right: 1px solid rgba(255,255,255,0.34);
  align-content: center;
}

.rf-card-experience .rf-card-stat {
  min-width: 0;
  font-size: clamp(0.68rem, 1.35vh, 0.80rem);
}

.rf-card-experience .rf-card-stat b {
  max-width: 100%;
}

.rf-card-experience .rf-card-quick-actions {
  justify-content: center;
  align-items: center;
}

/* Overlay de info mantiene borde intencional dentro de la carta. */
.rf-card-experience .rf-info-overlay {
  inset: clamp(10px, 1.8vw, 18px);
  border-radius: calc(var(--rf-card-radius) - clamp(8px, 1.4vw, 14px));
}

@media (min-width: 900px) {
  .rf-card-experience.rf-lesson-reel {
    padding-top: clamp(58px, 7vh, 76px);
  }

  .rf-card-experience .rf-lesson-card {
    width: min(66dvh, 720px, calc(100vw - 80px));
    height: min(calc(100dvh - 108px), 960px);
  }
}

@media (max-width: 640px) {
  .rf-card-experience.rf-lesson-reel {
    padding: 44px 10px 10px;
  }

  .rf-card-experience .rf-lesson-card {
    width: calc(100vw - 20px);
    height: calc(100dvh - 66px);
    min-height: 0;
    border-radius: 28px;
  }

  .admin-bar .rf-card-experience .rf-lesson-card {
    height: calc(100dvh - 108px);
    min-height: 0;
  }

  .rf-card-experience .rf-card-top-line {
    height: 50px;
    padding: 0 18px;
  }

  .rf-card-experience .rf-card-bottom-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(112px, 1fr) 46px;
    min-height: 132px;
    gap: 10px;
    padding: 14px 14px 14px 18px;
  }

  .rf-card-experience .rf-card-title-chip {
    gap: 8px;
  }

  .rf-card-experience .rf-card-title-chip h2 {
    max-width: 8.8ch;
    font-size: clamp(1.45rem, 7.3vw, 2.28rem);
  }

  .rf-card-experience .rf-card-stat-list {
    gap: 4px;
    padding: 0 8px;
  }

  .rf-card-experience .rf-card-stat {
    gap: 6px;
    font-size: 0.66rem;
  }

  .rf-card-experience .rf-card-stat i {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    font-size: 0.64rem;
  }

  .rf-card-experience .rf-card-stat b {
    max-width: 88px;
  }

  .rf-card-experience .rf-round-button,
  .rf-card-experience .rf-overlay-close {
    width: 42px;
    height: 42px;
  }

  .rf-card-experience .rf-info-overlay {
    inset: 9px;
    border-radius: 21px;
  }
}

@media (max-height: 700px) {
  .rf-card-experience .rf-card-bottom-panel {
    min-height: 118px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .rf-card-experience .rf-card-title-chip h2 {
    font-size: clamp(1.35rem, 4.2vh, 2.4rem);
  }

  .rf-card-experience .rf-card-stat {
    font-size: 0.64rem;
  }
}

@media (max-width: 380px) {
  .rf-card-experience .rf-card-bottom-panel {
    grid-template-columns: minmax(0, 1fr) minmax(98px, 0.92fr) 42px;
    gap: 8px;
    padding-left: 14px;
    padding-right: 12px;
  }

  .rf-card-experience .rf-card-title-chip h2 {
    font-size: clamp(1.32rem, 7vw, 2.05rem);
  }

  .rf-card-experience .rf-card-stat b {
    max-width: 74px;
  }
}


/* Reunioon Flow v0.8.3 — borde gris oscuro + modo Hero contenido / player seguro */
.rf-card-experience .rf-lesson-card {
  --rf-card-border-dark: rgba(24, 24, 24, 0.94);
  --rf-card-top-overlay: 56px;
  --rf-card-bottom-overlay: clamp(132px, 19vh, 168px);
  border: 2px solid var(--rf-card-border-dark);
  outline: none;
  box-shadow: 0 34px 110px rgba(0,0,0,0.24), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

/* Hero contenido: el reproductor vive entre el overlay superior e inferior para que controles de YouTube/Vimeo/MP4 no queden tapados. */
.rf-card-experience .rf-card-main-media.rf-media-mode-player,
.rf-card-experience .rf-card-main-media.rf-media-mode-cine {
  top: var(--rf-card-top-overlay);
  right: 0;
  bottom: var(--rf-card-bottom-overlay);
  left: 0;
  height: auto;
  border-radius: 0;
  background: #050505;
  padding: 0;
}

.rf-card-experience .rf-card-main-media.rf-media-mode-player .rf-media-focus,
.rf-card-experience .rf-card-main-media.rf-media-mode-cine .rf-media-focus {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #050505;
  box-shadow: none;
}

.rf-card-experience .rf-card-main-media.rf-media-mode-player .rf-media-el,
.rf-card-experience .rf-card-main-media.rf-media-mode-player .rf-oembed,
.rf-card-experience .rf-card-main-media.rf-media-mode-player .rf-oembed iframe,
.rf-card-experience .rf-card-main-media.rf-media-mode-player iframe,
.rf-card-experience .rf-card-main-media.rf-media-mode-player video,
.rf-card-experience .rf-card-main-media.rf-media-mode-player img,
.rf-card-experience .rf-card-main-media.rf-media-mode-cine .rf-media-el,
.rf-card-experience .rf-card-main-media.rf-media-mode-cine .rf-oembed,
.rf-card-experience .rf-card-main-media.rf-media-mode-cine .rf-oembed iframe,
.rf-card-experience .rf-card-main-media.rf-media-mode-cine iframe,
.rf-card-experience .rf-card-main-media.rf-media-mode-cine video,
.rf-card-experience .rf-card-main-media.rf-media-mode-cine img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 0;
  background: #050505;
}

.rf-card-experience.media-mode-player .rf-card-vignette,
.rf-card-experience.media-mode-cine .rf-card-vignette {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.16) 0%, transparent 18%, transparent 72%, rgba(0,0,0,0.20) 100%);
}

@media (max-width: 640px) {
  .rf-card-experience .rf-lesson-card {
    --rf-card-top-overlay: 50px;
    --rf-card-bottom-overlay: 132px;
    border: 2px solid var(--rf-card-border-dark);
    outline: none;
  }
}

@media (max-height: 700px) {
  .rf-card-experience .rf-lesson-card {
    --rf-card-bottom-overlay: 118px;
  }
}

/* Reunioon Flow v0.9 — videos WordPress embebidos + serie visual */
.rf-visual-series {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
  touch-action: pan-y;
}

.rf-visual-series-track,
.rf-visual-series-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rf-visual-series-slide {
  display: grid;
  place-items: center;
  margin: 0;
  opacity: 0;
  transform: translateX(18px) scale(1.015);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.rf-visual-series-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.rf-visual-series-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rf-media-mode-object .rf-visual-series-slide img,
.rf-media-mode-player .rf-visual-series-slide img,
.rf-media-mode-cine .rf-visual-series-slide img {
  object-fit: contain;
}

.rf-series-ui {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(12px, 2vw, 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: auto;
}

.rf-series-counter {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1;
  padding: 5px 9px;
}

.rf-series-segments {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: min(260px, 64vw);
}

.rf-series-segment {
  width: clamp(20px, 4.5vw, 36px);
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  padding: 0;
  transition: background 180ms ease, transform 180ms ease, width 180ms ease;
}

.rf-series-segment.is-active {
  width: clamp(32px, 6.5vw, 52px);
  background: rgba(255,255,255,0.88);
}

.rf-series-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(0,0,0,0.26);
  color: #fff;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0.76;
  transition: opacity 180ms ease, background 180ms ease, transform 180ms ease;
}

.rf-series-arrow:hover,
.rf-series-arrow:focus {
  opacity: 1;
  background: rgba(0,0,0,0.42);
  transform: translateY(-50%) scale(1.03);
}

.rf-series-prev {
  left: clamp(10px, 2vw, 18px);
}

.rf-series-next {
  right: clamp(10px, 2vw, 18px);
}

/* Videos directos de WordPress viven como reproductor HTML5, no como enlaces de descarga. */
.rf-card-main-media video.rf-media-el {
  background: #050505;
}

.rf-media-mode-player video.rf-media-el,
.rf-media-mode-cine video.rf-media-el {
  object-fit: contain;
}

@media (max-width: 640px) {
  .rf-series-arrow {
    display: none;
  }

  .rf-series-ui {
    bottom: 10px;
  }

  .rf-series-counter {
    font-size: 0.68rem;
  }
}

.rf-card-experience .rf-card-main-media .rf-series-ui {
  bottom: calc(var(--rf-card-bottom-overlay, 140px) + 12px);
}

.rf-card-experience .rf-card-main-media.rf-media-mode-player .rf-series-ui,
.rf-card-experience .rf-card-main-media.rf-media-mode-cine .rf-series-ui {
  bottom: 12px;
}

/* Reunioon Flow + Visual FX integration */
.rf-card-experience.has-visual-fx .rf-card-main-media .rfvfx-direct,
.rf-card-experience.has-visual-fx .rf-card-main-media .rfvfx-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
}

.rf-card-experience.has-visual-fx .rf-card-main-media .rfvfx-bg-surface {
  border-radius: inherit;
}

.rf-card-experience.has-visual-fx .rf-card-main-media .rf-media-focus {
  background: #07070a;
}

.rf-card-experience.has-visual-fx.has-no-media .rf-media-placeholder {
  display: none;
}

/* v1.0 card border cleanup */
.rf-card-experience .rf-lesson-card {
  border-color: #18181c !important;
  outline: 0 !important;
}

.rf-card-experience .rf-card-front {
  border-color: rgba(255,255,255,0.08) !important;
  outline: 0 !important;
}

.rf-card-experience .rf-card-main-media img,
.rf-card-experience .rf-card-main-media video,
.rf-card-experience .rf-card-main-media iframe {
  outline: 0 !important;
}

/* Reunioon Flow v1.1.1 — Texto animado tipo social card */
.rf-card-experience.media-type-animated_text .rf-card-main-media {
  background:
    radial-gradient(circle at 18% 16%, rgba(103,232,137,0.22), transparent 34%),
    radial-gradient(circle at 82% 70%, rgba(143,98,255,0.22), transparent 36%),
    #07070a;
}

.rf-card-experience .rf-animated-text {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: calc(var(--rf-card-top-overlay, 56px) + 14px) clamp(16px, 4.4vw, 44px) calc(var(--rf-card-bottom-overlay, 140px) + 18px);
  color: #fff;
  text-align: center;
  pointer-events: auto;
}

.rf-card-experience .rf-animated-text-stage {
  position: relative;
  width: min(94%, 560px);
  min-height: clamp(300px, 50vh, 520px);
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vh, 46px) clamp(20px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: clamp(24px, 4vw, 38px);
  background: rgba(4,4,7,0.24);
  backdrop-filter: blur(8px) saturate(1.18);
  -webkit-backdrop-filter: blur(8px) saturate(1.18);
  box-shadow: 0 30px 90px rgba(0,0,0,0.20);
  overflow: hidden;
}

.rf-card-experience .rf-animated-text-stage::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.16), transparent 26%),
    radial-gradient(circle at 80% 85%, rgba(103,232,137,0.13), transparent 32%);
  filter: blur(16px);
  opacity: .72;
  pointer-events: none;
}

.rf-card-experience .rf-animated-text-label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(0,0,0,0.20);
  color: rgba(255,255,255,0.68);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .15em;
  line-height: 1;
  padding: 0 10px;
  text-transform: uppercase;
}

.rf-card-experience .rf-animated-text-phrase {
  position: absolute;
  inset: clamp(50px, 8vh, 76px) clamp(18px, 4vw, 46px) clamp(42px, 7vh, 64px);
  z-index: 2;
  display: grid;
  place-items: center;
  max-width: 100%;
  opacity: 0;
  transform: translateY(18px) scale(.97);
  filter: blur(10px);
  color: #fff;
  font-size: clamp(2.1rem, 5.6vh, 4.7rem);
  font-weight: 920;
  line-height: .91;
  letter-spacing: -.07em;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-shadow: 0 4px 28px rgba(0,0,0,.42);
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(.2,.8,.2,1),
    filter 520ms ease;
}

.rf-card-experience .rf-animated-text-phrase.is-medium {
  font-size: clamp(1.85rem, 4.9vh, 4rem);
  line-height: .94;
}

.rf-card-experience .rf-animated-text-phrase.is-long {
  font-size: clamp(1.55rem, 4.1vh, 3.35rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.rf-card-experience .rf-animated-text-phrase.is-xlong {
  font-size: clamp(1.28rem, 3.35vh, 2.75rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.rf-card-experience .rf-animated-text-phrase.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.rf-card-experience .rf-animated-text-ui {
  position: absolute;
  left: 50%;
  bottom: calc(var(--rf-card-bottom-overlay, 140px) + 22px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: auto;
}

.rf-card-experience .rf-animated-text-counter {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(0,0,0,0.24);
  color: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .68rem;
  font-weight: 820;
  line-height: 1;
  padding: 5px 9px;
}

.rf-card-experience .rf-animated-text-segments {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: min(320px, 70vw);
}

.rf-card-experience .rf-animated-text-segment {
  width: clamp(14px, 3.4vw, 28px);
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.26);
  transition: width 180ms ease, background 180ms ease;
}

.rf-card-experience .rf-animated-text-segment.is-active {
  width: clamp(28px, 5.4vw, 48px);
  background: rgba(103,232,137,0.92);
}

.rf-card-experience.media-type-animated_text .rf-card-vignette {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.10) 28%, rgba(0,0,0,0.12) 64%, rgba(0,0,0,0.72) 100%),
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(0,0,0,0.18) 100%);
}

@media (max-width: 640px) {
  .rf-card-experience .rf-animated-text {
    padding: calc(var(--rf-card-top-overlay, 50px) + 14px) 14px calc(var(--rf-card-bottom-overlay, 132px) + 16px);
  }

  .rf-card-experience .rf-animated-text-stage {
    width: min(94%, 430px);
    min-height: clamp(300px, 50vh, 500px);
    padding: 20px;
  }

  .rf-card-experience .rf-animated-text-phrase {
    inset: 54px 16px 46px;
    font-size: clamp(1.9rem, 9vw, 3.5rem);
    line-height: .94;
  }

  .rf-card-experience .rf-animated-text-phrase.is-medium {
    font-size: clamp(1.62rem, 7.6vw, 3rem);
  }

  .rf-card-experience .rf-animated-text-phrase.is-long {
    font-size: clamp(1.36rem, 6.4vw, 2.45rem);
  }

  .rf-card-experience .rf-animated-text-phrase.is-xlong {
    font-size: clamp(1.12rem, 5.2vw, 2rem);
  }
}


/* Reunioon Flow v1.2 — identidad blanco / negro / hueso + verde */
:root {
  --rf-bg: #f6f2ea;
  --rf-bone: #f6f2ea;
  --rf-bone-2: #ede7dc;
  --rf-white: #ffffff;
  --rf-ink: #050505;
  --rf-ink-soft: #111111;
  --rf-muted: #6e675f;
  --rf-line: rgba(5, 5, 5, 0.085);
  --rf-soft-line: rgba(255, 255, 255, 0.36);
  --rf-green: #36e878;
  --rf-green-dark: #0d7a3a;
  --rf-green-glass: rgba(54, 232, 120, 0.14);
  --rf-green-line: rgba(54, 232, 120, 0.55);
  --rf-xp: #f4c95d;
  --rf-rare-blue: #6aa7ff;
  --rf-special-violet: #c783ff;
  --rf-shadow: 0 24px 80px rgba(5, 5, 5, 0.11);
  --rf-shadow-soft: 0 14px 46px rgba(5, 5, 5, 0.08);
}

.rf-wrap,
.rf-course-shell-reel {
  background:
    radial-gradient(circle at 50% -12%, rgba(255,255,255,0.82), transparent 32%),
    linear-gradient(180deg, #fbfaf7 0%, var(--rf-bone) 52%, #f0ebe2 100%);
}

.rf-player-dashboard,
.rf-vitrine-hero,
.rf-hero {
  border-color: rgba(5,5,5,0.095);
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,0.86), transparent 30%),
    radial-gradient(circle at 8% 0%, rgba(255,255,255,0.78), transparent 34%),
    linear-gradient(135deg, #fffefa 0%, #f6f2ea 54%, #e9e2d6 100%);
  box-shadow: 0 20px 70px rgba(5,5,5,0.08);
}

.rf-player-dashboard::after,
.rf-vitrine-hero::after,
.rf-hero::after {
  border-color: rgba(5,5,5,0.06);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.07));
}

.rf-player-dashboard .rf-kicker,
.rf-vitrine-hero .rf-kicker,
.rf-section-heading .rf-kicker,
.rf-hero .rf-kicker {
  color: rgba(5,5,5,0.58);
}

.rf-stat-card {
  border-color: rgba(5,5,5,0.07);
  background: rgba(255,255,255,0.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 12px 30px rgba(5,5,5,0.035);
}

.rf-stat-card strong {
  color: var(--rf-ink);
}

.rf-stat-card:nth-child(2) strong,
.rf-stat-card:nth-child(3) strong {
  color: var(--rf-green-dark);
}

.rf-progress-bar {
  background: rgba(5,5,5,0.08);
}

.rf-progress-bar span,
.rf-mini-progress-reel .rf-progress-bar span,
.rf-progress-compact .rf-progress-bar span {
  background: linear-gradient(90deg, var(--rf-green-dark), var(--rf-green));
}

.rf-button {
  border-color: var(--rf-ink);
  background: var(--rf-ink);
}

.rf-button:hover,
.rf-button:focus {
  box-shadow: 0 12px 32px rgba(5,5,5,0.18), 0 0 0 4px var(--rf-green-glass);
}

.rf-course-pack-clean,
.rf-collection-set,
.rf-course-card {
  border-color: rgba(5,5,5,0.075);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 22px 70px rgba(5,5,5,0.08);
}

.rf-course-pack-clean .rf-pack-cover,
.rf-set-cover {
  background: #050505;
}

.rf-course-pack-clean .rf-pack-cover::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.02) 38%, rgba(0,0,0,0.18) 100%),
    linear-gradient(32deg, rgba(255,255,255,0.10) 0 49.5%, transparent 50%),
    linear-gradient(-32deg, rgba(255,255,255,0.06) 0 49.5%, transparent 50%);
}

.rf-pack-status {
  border-color: rgba(255,255,255,0.34);
  background: rgba(5,5,5,0.44);
  color: #fff;
}

.rf-course-pack-clean .rf-pack-body h2,
.rf-set-head h3,
.rf-section-heading h2 {
  color: var(--rf-ink);
}

.rf-card-meta span,
.rf-set-number {
  border-color: rgba(5,5,5,0.10);
  background: rgba(255,255,255,0.54);
  color: rgba(5,5,5,0.68);
}

.rf-reel-topbar {
  border-bottom-color: rgba(5,5,5,0.07);
  background: rgba(246,242,234,0.76);
}

/* Reversos: ahora usan negro/hueso/verde para alinear la colección con la carta del curso. */
.rf-card-back-large {
  color: #f6f2ea;
  background:
    radial-gradient(circle at 50% 44%, rgba(54,232,120,0.17) 0 9%, transparent 10%),
    radial-gradient(circle at 20% 16%, rgba(255,255,255,0.12), transparent 24%),
    radial-gradient(circle at 84% 82%, rgba(54,232,120,0.11), transparent 28%),
    repeating-conic-gradient(from 18deg at 50% 50%, rgba(255,255,255,0.08) 0 9deg, transparent 9deg 18deg),
    linear-gradient(145deg, #050505, #111111 58%, #050505);
}

.rf-card-back-large::before {
  inset: 18px;
  border-color: rgba(246,242,234,0.16);
}

.rf-card-back-large::after {
  inset: 38px;
  border-color: rgba(54,232,120,0.16);
}

.rf-card-back-mark {
  border-color: rgba(54,232,120,0.36);
  background: rgba(246,242,234,0.05);
  color: var(--rf-green);
  box-shadow:
    inset 0 0 0 10px rgba(255,255,255,0.04),
    0 24px 80px rgba(54,232,120,0.08);
}

.rf-card-back-number {
  border-color: rgba(246,242,234,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(246,242,234,0.88);
}

.rf-card-back-copy .rf-kicker,
.rf-card-back-copy p:not(.rf-kicker) {
  color: rgba(246,242,234,0.68);
}

.rf-card-back-copy h2 {
  color: #fff;
}

.rf-mini-card-back {
  color: rgba(246,242,234,0.82);
  background:
    radial-gradient(circle at 50% 50%, rgba(54,232,120,0.20) 0 13%, transparent 14%),
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.12), transparent 24%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #050505, #151515 58%, #070707);
}

.rf-mini-card-back::before {
  border-color: rgba(246,242,234,0.16);
}

.rf-mini-card.is-locked em {
  background: rgba(246,242,234,0.12);
  color: rgba(246,242,234,0.78);
}

.rf-card-back-symbol {
  border-color: rgba(54,232,120,0.36);
  background: rgba(255,255,255,0.05);
  color: var(--rf-green);
}

.rf-mini-card.is-unlocked {
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 10px 26px rgba(5,5,5,0.16);
}

.rf-mini-card.is-completed {
  border-color: var(--rf-green-line);
  box-shadow: 0 10px 26px rgba(5,5,5,0.16), 0 0 0 3px var(--rf-green-glass);
}

.rf-mini-card.has-grade-state::after {
  background: var(--rf-green);
  box-shadow: 0 0 10px rgba(54,232,120,0.5);
}

/* Tarjetas principales: negro + verde como señal de vida. */
.rf-card-experience .rf-lesson-card {
  --rf-card-border-dark: rgba(5, 5, 5, 0.96);
  --rf-accent-green: var(--rf-green);
  border-color: var(--rf-card-border-dark) !important;
  background: #050505;
  box-shadow: 0 34px 110px rgba(5,5,5,0.20), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.rf-card-experience .rf-card-top-line,
.rf-card-experience .rf-card-bottom-panel {
  background: rgba(5,5,5,0.72);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}

.rf-card-experience .rf-card-top-line {
  border-bottom-color: rgba(255,255,255,0.14);
}

.rf-card-experience .rf-card-bottom-panel {
  border-top-color: rgba(255,255,255,0.16);
}

.rf-card-experience .rf-card-state-pill,
.rf-card-experience .rf-lesson-state {
  color: rgba(246,242,234,0.92);
  border-color: rgba(246,242,234,0.32);
}

.rf-lesson.is-unlocked .rf-card-state-pill.is-unlocked-label,
.rf-lesson.is-unlocked .rf-lesson-state.is-unlocked-label,
.rf-lesson.is-completed .rf-card-state-pill,
.rf-lesson.is-completed .rf-lesson-state {
  color: var(--rf-green);
  border-color: var(--rf-green-line);
  background: var(--rf-green-glass);
}

.rf-card-experience .rf-round-button.rf-info-toggle {
  border-color: rgba(246,242,234,0.36);
  background: rgba(255,255,255,0.16);
}

.rf-lesson.is-unlocked .rf-round-button.rf-complete-button,
.rf-lesson.is-completed .rf-round-button.rf-complete-button {
  color: #051108;
  border-color: rgba(54,232,120,0.82);
  background: linear-gradient(180deg, #5df59a, var(--rf-green));
  box-shadow: 0 14px 40px rgba(54,232,120,0.26);
}

.rf-card-experience .rf-card-stat i {
  background: rgba(54,232,120,0.12);
  color: var(--rf-green);
}

.rf-card-experience .rf-stat-xp i,
.rf-card-experience .rf-stat-xp b {
  color: var(--rf-xp);
}

.rf-card-experience .rf-stat-rarity i {
  color: var(--rf-green);
}

.rf-card-experience.rf-rarity-rara .rf-stat-rarity i,
.rf-mini-card.rf-rarity-rara .rf-card-back-symbol,
.rf-lesson.rf-rarity-rara .rf-card-back-mark {
  color: var(--rf-rare-blue);
}

.rf-card-experience.rf-rarity-epica .rf-stat-rarity i,
.rf-mini-card.rf-rarity-epica .rf-card-back-symbol,
.rf-lesson.rf-rarity-epica .rf-card-back-mark,
.rf-card-experience.rf-rarity-especial .rf-stat-rarity i,
.rf-mini-card.rf-rarity-especial .rf-card-back-symbol,
.rf-lesson.rf-rarity-especial .rf-card-back-mark {
  color: var(--rf-special-violet);
}

.rf-card-experience.rf-rarity-rara .rf-lesson-card {
  box-shadow: 0 34px 110px rgba(5,5,5,0.20), 0 0 0 1px rgba(106,167,255,0.16) inset;
}

.rf-card-experience.rf-rarity-epica .rf-lesson-card,
.rf-card-experience.rf-rarity-especial .rf-lesson-card {
  box-shadow: 0 34px 110px rgba(5,5,5,0.20), 0 0 0 1px rgba(199,131,255,0.18) inset;
}

.rf-info-overlay {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.46), transparent 36%),
    linear-gradient(135deg, rgba(246,242,234,0.76), rgba(232,226,216,0.58) 48%, rgba(5,5,5,0.20));
}

.rf-card-experience .rf-info-panel {
  color: var(--rf-ink);
}

/* Modo móvil: mantiene el lenguaje pero baja el ruido visual. */
@media (max-width: 640px) {
  .rf-player-dashboard,
  .rf-vitrine-hero,
  .rf-hero {
    background:
      radial-gradient(circle at 86% 16%, rgba(255,255,255,0.78), transparent 34%),
      linear-gradient(135deg, #fffefa 0%, #f6f2ea 62%, #ede7dc 100%);
  }

  .rf-card-experience .rf-card-top-line,
  .rf-card-experience .rf-card-bottom-panel {
    background: rgba(5,5,5,0.76);
  }
}

/* Reunioon Flow v1.3 — login público limpio */
.rf-login-gate,
.rf-login-screen {
  min-height: calc(100dvh - 72px);
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px) 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.96), transparent 34%),
    linear-gradient(180deg, #fffefa 0%, #f6f2ea 58%, #efebe3 100%);
}

.rf-login-gate .rf-login-notice,
.rf-login-card {
  width: min(100%, 560px);
  border: 1px solid rgba(5,5,5,0.09);
  border-radius: clamp(28px, 4vw, 42px);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 24px 90px rgba(5,5,5,0.10);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  padding: clamp(30px, 6vw, 58px);
}

.rf-login-gate .rf-login-notice {
  text-align: left;
}

.rf-login-gate .rf-login-notice h2,
.rf-login-card h1 {
  margin: 0 0 14px;
  color: #050505;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.88;
  letter-spacing: -0.078em;
}

.rf-login-card-compact h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.rf-login-gate .rf-login-notice p:not(.rf-kicker),
.rf-login-card p:not(.rf-kicker) {
  margin: 0 0 24px;
  max-width: 440px;
  color: #6e675f;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.5;
}

.rf-login-intro {
  margin-bottom: 26px;
}

.rf-login-error {
  margin: 0 0 18px;
  border: 1px solid rgba(54,232,120,0.28);
  border-radius: 18px;
  background: rgba(54,232,120,0.10);
  color: #0d7a3a;
  padding: 12px 14px;
  font-weight: 760;
}

.rf-login-form {
  display: grid;
  gap: 18px;
}

.rf-login-form label {
  display: grid;
  gap: 8px;
  color: #6e675f;
  font-weight: 780;
}

.rf-login-form input[type="text"],
.rf-login-form input[type="password"] {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(5,5,5,0.13);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  color: #050505;
  font: inherit;
  font-size: 1rem;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rf-login-form input[type="text"]:focus,
.rf-login-form input[type="password"]:focus {
  border-color: rgba(54,232,120,0.74);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(54,232,120,0.14);
}

.rf-login-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.rf-login-remember {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px !important;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.rf-login-remember input {
  width: 17px;
  height: 17px;
  accent-color: #36e878;
}

.rf-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .rf-login-gate,
  .rf-login-screen {
    align-items: start;
    padding-top: clamp(22px, 8vw, 48px);
  }

  .rf-login-row {
    align-items: stretch;
    flex-direction: column;
  }

  .rf-login-row .rf-button {
    width: 100%;
  }
}


/* Reunioon Flow v1.4 — User Dock / Centro Flow */
.rf-user-dock,
.rf-user-dock * {
  box-sizing: border-box;
}

.rf-user-dock {
  --dock-green: #36e878;
  --dock-bg: rgba(5, 5, 5, .84);
  --dock-panel: rgba(10, 10, 11, .92);
  --dock-line: rgba(255,255,255,.12);
  --dock-text: #f6f2ea;
  --dock-muted: rgba(246,242,234,.62);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 9998;
  pointer-events: none;
  font-family: inherit;
}

.rf-user-dock-trigger {
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 72px;
  border: 1px solid rgba(54,232,120,.24);
  border-radius: 999px;
  background: rgba(5,5,5,.72);
  color: var(--dock-text);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 16px 44px rgba(0,0,0,.24);
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-items: center;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.rf-user-dock-trigger:hover,
.rf-user-dock.is-open .rf-user-dock-trigger {
  border-color: rgba(54,232,120,.72);
  background: rgba(5,5,5,.88);
}

.rf-user-dock.is-open .rf-user-dock-trigger {
  transform: translateY(-50%) translateX(278px) scale(.92);
}

.rf-dock-glyph {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  color: var(--dock-green);
  transform: rotate(90deg);
  font-weight: 900;
}

.rf-user-dock-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.rf-user-dock.is-open .rf-user-dock-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.rf-user-dock-panel {
  position: fixed;
  top: 50%;
  left: 12px;
  width: min(294px, calc(100vw - 28px));
  max-height: min(680px, calc(100dvh - 34px));
  transform: translate(-112%, -50%);
  opacity: 0;
  pointer-events: none;
  overflow: auto;
  border: 1px solid var(--dock-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(54,232,120,.12), transparent 34%),
    linear-gradient(180deg, rgba(20,20,22,.96), var(--dock-panel));
  color: var(--dock-text);
  box-shadow: 0 32px 92px rgba(0,0,0,.48);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
  transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
}

.rf-user-dock.is-open .rf-user-dock-panel {
  transform: translate(0, -50%);
  opacity: 1;
  pointer-events: auto;
}

.rf-dock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.rf-dock-kicker {
  margin: 0 0 6px;
  color: var(--dock-green);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 900;
}

.rf-dock-head h2 {
  margin: 0;
  color: var(--dock-text);
  font-size: 26px;
  line-height: .95;
  letter-spacing: -.055em;
}

.rf-dock-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--dock-text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.rf-dock-status {
  margin: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background: rgba(255,255,255,.055);
}

.rf-dock-status-guest p {
  margin: 0;
  color: var(--dock-muted);
  line-height: 1.45;
}

.rf-dock-xp {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rf-dock-xp span {
  color: var(--dock-muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10px;
  font-weight: 900;
}

.rf-dock-xp strong {
  color: var(--dock-green);
  font-size: 36px;
  line-height: .85;
  letter-spacing: -.055em;
}

.rf-dock-mini-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.rf-dock-mini-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dock-muted);
  font-size: 13px;
}

.rf-dock-mini-stats strong {
  color: var(--dock-text);
}

.rf-dock-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 14px 12px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--dock-green);
  color: #031106 !important;
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(54,232,120,.18);
}

.rf-dock-nav {
  display: grid;
  gap: 8px;
  padding: 4px 14px 14px;
}

.rf-dock-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  color: var(--dock-text) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.rf-dock-nav a:hover {
  transform: translateX(2px);
  border-color: rgba(54,232,120,.38);
  background: rgba(54,232,120,.08);
}

.rf-dock-nav a span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(54,232,120,.10);
  color: var(--dock-green);
  font-size: 12px;
}

.rf-dock-nav a em {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--dock-green);
  color: #031106;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.rf-dock-foot {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.rf-dock-foot a {
  color: rgba(246,242,234,.68) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .rf-user-dock-trigger {
    left: 8px;
    width: 34px;
    height: 64px;
  }

  .rf-user-dock.is-open .rf-user-dock-trigger {
    transform: translateY(-50%) translateX(calc(min(294px, calc(100vw - 28px)) - 2px)) scale(.9);
  }

  .rf-user-dock-panel {
    left: 8px;
    width: min(304px, calc(100vw - 22px));
    border-radius: 24px;
  }
}

/* Reunioon Flow v1.5 — contraste de info, velocidades y dock coherente */
.rf-card-experience .rf-info-overlay {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.18), transparent 36%),
    radial-gradient(circle at 92% 92%, rgba(54,232,120,0.16), transparent 32%),
    linear-gradient(135deg, rgba(7,7,8,0.68), rgba(8,8,8,0.52) 48%, rgba(0,0,0,0.74));
  border-color: rgba(255,255,255,0.30);
}

.rf-card-experience .rf-info-panel,
.rf-card-experience .rf-info-panel .rf-kicker,
.rf-card-experience .rf-info-panel .rf-lesson-content,
.rf-card-experience .rf-info-panel .rf-submission-prompt,
.rf-card-experience .rf-info-panel .rf-status-card,
.rf-card-experience .rf-info-panel .rf-status-card p,
.rf-card-experience .rf-info-panel .rf-submission-box,
.rf-card-experience .rf-info-panel .rf-submission-box p,
.rf-card-experience .rf-info-panel .rf-attempt-history,
.rf-card-experience .rf-info-panel .rf-attempt-note,
.rf-card-experience .rf-info-panel .rf-attempt-locked,
.rf-card-experience .rf-info-panel p,
.rf-card-experience .rf-info-panel li,
.rf-card-experience .rf-info-panel summary {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 14px rgba(0,0,0,0.72), 0 1px 2px rgba(0,0,0,0.58);
}

.rf-card-experience .rf-info-panel h2 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.82), 0 1px 2px rgba(0,0,0,0.72);
}

.rf-card-experience .rf-info-panel .rf-kicker,
.rf-card-experience .rf-info-head .rf-kicker {
  color: rgba(255,255,255,0.76);
}

.rf-card-experience .rf-info-panel .rf-lesson-content a {
  color: #ffffff;
  text-decoration-color: rgba(54,232,120,0.64);
}

.rf-card-experience .rf-info-panel .rf-submission-form textarea,
.rf-card-experience .rf-info-panel .rf-submission-form input[type="url"],
.rf-card-experience .rf-info-panel .rf-submission-form input[type="file"] {
  color: #080808;
  text-shadow: none;
  background: rgba(255,255,255,0.86);
}

.rf-card-experience .rf-info-panel .rf-submission-form label,
.rf-card-experience .rf-info-panel .rf-submission-form strong {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.rf-card-experience .rf-overlay-close {
  color: #050505;
  text-shadow: none;
}

.rf-animated-speed-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(0,0,0,0.24);
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.rf-animated-speed-controls button {
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.58);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 2px 10px rgba(0,0,0,0.56);
}

.rf-animated-speed-controls button:hover,
.rf-animated-speed-controls button:focus-visible {
  color: #fff;
  outline: 0;
  background: rgba(255,255,255,0.10);
}

.rf-animated-speed-controls button.is-active {
  color: #061106;
  background: var(--rf-green, #36e878);
  text-shadow: none;
}

.rf-dock-nav a span {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 950;
  color: var(--dock-green) !important;
  background: rgba(54,232,120,.10) !important;
}

.rf-dock-nav a[href*="feedback"] span {
  color: #061106 !important;
  background: var(--dock-green) !important;
  font-size: 10px;
  letter-spacing: -.02em;
}

/* Reunioon Flow v1.5.1 — dock contrast and refined scrollbars */
.rf-user-dock-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(246,242,234,.22) transparent;
}

.rf-user-dock-panel::-webkit-scrollbar,
.rf-card-experience .rf-info-scroll::-webkit-scrollbar,
.rf-lesson-flow::-webkit-scrollbar,
.rf-flow-page::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.rf-user-dock-panel::-webkit-scrollbar-track,
.rf-card-experience .rf-info-scroll::-webkit-scrollbar-track,
.rf-lesson-flow::-webkit-scrollbar-track,
.rf-flow-page::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.rf-user-dock-panel::-webkit-scrollbar-thumb,
.rf-card-experience .rf-info-scroll::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(246,242,234,.26);
  background-clip: content-box;
}

.rf-lesson-flow::-webkit-scrollbar-thumb,
.rf-flow-page::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(10,10,10,.26);
  background-clip: content-box;
}

.rf-user-dock-panel::-webkit-scrollbar-thumb:hover,
.rf-card-experience .rf-info-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(54,232,120,.42);
  background-clip: content-box;
}

.rf-lesson-flow::-webkit-scrollbar-thumb:hover,
.rf-flow-page::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: rgba(10,10,10,.38);
  background-clip: content-box;
}

.rf-dock-nav a,
.rf-dock-nav a:visited,
.rf-dock-nav a:active,
.rf-dock-nav a:focus {
  color: var(--dock-text) !important;
  background: rgba(255,255,255,.055) !important;
}

.rf-dock-nav a:hover,
.rf-dock-nav a:focus-visible {
  color: #ffffff !important;
  background: rgba(54,232,120,.10) !important;
}

.rf-dock-nav a span {
  color: var(--dock-green) !important;
  background: rgba(54,232,120,.16) !important;
  border: 1px solid rgba(54,232,120,.14);
}

.rf-dock-nav a:first-child {
  border-color: rgba(54,232,120,.18);
}

.rf-dock-nav a:first-child span {
  color: #061106 !important;
  background: var(--dock-green) !important;
}

@supports (scrollbar-color: auto) {
  html,
  body,
  .rf-flow-page,
  .rf-lesson-flow {
    scrollbar-width: thin;
    scrollbar-color: rgba(10,10,10,.28) transparent;
  }
}


/* Reunioon Flow v1.5.2 — stronger readability on + overlay and locked card backs */
.rf-card-experience .rf-info-panel,
.rf-card-experience .rf-info-head,
.rf-card-experience .rf-info-scroll,
.rf-card-experience .rf-info-panel .rf-lesson-content,
.rf-card-experience .rf-info-panel .rf-submission-prompt {
  color: rgba(255,255,255,0.94) !important;
}

.rf-card-experience .rf-info-panel h2,
.rf-card-experience .rf-info-panel h3,
.rf-card-experience .rf-info-panel strong,
.rf-card-experience .rf-info-panel label,
.rf-card-experience .rf-info-panel .rf-kicker,
.rf-card-experience .rf-info-head .rf-kicker {
  color: #ffffff !important;
  text-shadow: 0 3px 18px rgba(0,0,0,0.78), 0 1px 2px rgba(0,0,0,0.82);
}

.rf-card-experience .rf-info-panel p,
.rf-card-experience .rf-info-panel li,
.rf-card-experience .rf-info-panel span,
.rf-card-experience .rf-info-panel summary,
.rf-card-experience .rf-info-panel .rf-lesson-content p {
  color: rgba(255,255,255,0.92) !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.72), 0 1px 2px rgba(0,0,0,0.58);
}

.rf-card-experience .rf-info-panel .rf-lesson-state,
.rf-card-experience .rf-info-panel .is-unlocked-label,
.rf-card-experience .rf-info-panel .is-completed-label {
  color: var(--rf-green, #36e878) !important;
  border-color: rgba(54,232,120,.72) !important;
  background: rgba(54,232,120,.12) !important;
}

.rf-card-experience .rf-info-panel .rf-lesson-actions .rf-button,
.rf-card-experience .rf-info-panel .rf-lesson-actions .rf-button:visited {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.34) !important;
  background: rgba(0,0,0,0.50) !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.72);
  box-shadow: 0 14px 36px rgba(0,0,0,0.18);
}

.rf-card-experience .rf-info-panel .rf-lesson-actions .rf-button:not(.rf-button-ghost) {
  color: #061106 !important;
  border-color: rgba(54,232,120,0.82) !important;
  background: var(--rf-green, #36e878) !important;
  text-shadow: none !important;
  box-shadow: 0 16px 44px rgba(54,232,120,0.25);
}

.rf-card-experience .rf-info-panel .rf-lesson-actions .rf-button:hover,
.rf-card-experience .rf-info-panel .rf-lesson-actions .rf-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(54,232,120,0.78) !important;
  background: rgba(54,232,120,0.18) !important;
  color: #ffffff !important;
  outline: none;
}

.rf-card-experience .rf-info-panel .rf-lesson-actions .rf-button:not(.rf-button-ghost):hover,
.rf-card-experience .rf-info-panel .rf-lesson-actions .rf-button:not(.rf-button-ghost):focus-visible {
  color: #061106 !important;
  background: var(--rf-green, #36e878) !important;
}

.rf-card-back-large {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(54,232,120,0.20) 0 8%, transparent 18%),
    radial-gradient(circle at 82% 84%, rgba(54,232,120,0.16), transparent 32%),
    repeating-conic-gradient(from -12deg at 50% 48%, rgba(255,255,255,0.10) 0deg 5deg, transparent 5deg 15deg),
    linear-gradient(145deg, #050505, #111111 56%, #050505) !important;
}

.rf-card-back-large::before {
  border-color: rgba(54,232,120,0.22) !important;
}

.rf-card-back-large::after {
  border-color: rgba(255,255,255,0.08) !important;
}

.rf-card-back-mark {
  color: var(--rf-green, #36e878) !important;
  border-color: rgba(54,232,120,0.28) !important;
  background: rgba(54,232,120,0.12) !important;
  text-shadow: 0 0 28px rgba(54,232,120,0.38);
  box-shadow: inset 0 0 0 10px rgba(54,232,120,0.06), 0 24px 80px rgba(54,232,120,0.12) !important;
}

.rf-card-back-number {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.22) !important;
  background: rgba(255,255,255,0.12) !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.68);
}

.rf-card-back-copy .rf-kicker,
.rf-card-back-copy h2,
.rf-card-back-copy p,
.rf-card-back-copy p:not(.rf-kicker) {
  color: #ffffff !important;
  text-shadow: 0 4px 24px rgba(0,0,0,0.88), 0 1px 2px rgba(0,0,0,0.80);
}

.rf-card-back-copy .rf-kicker {
  color: rgba(255,255,255,0.76) !important;
}

.rf-card-back-copy p:not(.rf-kicker) {
  color: rgba(255,255,255,0.86) !important;
}

.rf-mini-card.is-locked .rf-mini-card-back {
  background:
    radial-gradient(circle at 50% 44%, rgba(54,232,120,.20) 0 10%, transparent 18%),
    repeating-conic-gradient(from -12deg at 50% 50%, rgba(255,255,255,.10) 0deg 6deg, transparent 6deg 18deg),
    linear-gradient(145deg, #050505, #111111 58%, #050505) !important;
  color: #ffffff !important;
}

.rf-mini-card.is-locked em,
.rf-mini-card.is-locked small {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.78);
}

/* Reunioon Flow v1.5.3 — ajuste desktop para vitrinas y colección
   En pantallas anchas las tarjetas no deben estirarse a todo el viewport.
   Mantienen tamaño de sobre/set y se ordenan como una vitrina real. */
@media (min-width: 960px) {
  .rf-collection-grid,
  .rf-pack-grid {
    grid-template-columns: repeat(auto-fill, minmax(390px, 560px));
    justify-content: start;
    align-items: start;
    gap: clamp(22px, 2vw, 34px);
  }

  .rf-collection-set,
  .rf-course-pack,
  .rf-course-pack-clean {
    width: 100%;
    max-width: 560px;
  }

  .rf-set-cover {
    min-height: 300px;
  }

  .rf-course-pack-clean .rf-pack-cover {
    min-height: 300px;
  }

  .rf-course-pack-clean .rf-pack-body,
  .rf-set-body {
    min-height: 250px;
    padding: clamp(24px, 2.2vw, 32px);
  }

  .rf-course-pack-clean .rf-pack-body h2,
  .rf-set-head h3 {
    font-size: clamp(2.2rem, 3vw, 3.6rem);
    line-height: .92;
  }

  .rf-course-pack-clean .rf-clamp,
  .rf-collection-set .rf-clamp {
    max-width: 460px;
  }

  .rf-mini-card-grid {
    grid-template-columns: repeat(auto-fill, 52px);
    justify-content: start;
    align-items: start;
    gap: 9px;
  }

  .rf-mini-card {
    width: 52px;
    max-width: 52px;
  }
}

@media (min-width: 1400px) {
  .rf-collection-grid,
  .rf-pack-grid {
    grid-template-columns: repeat(auto-fill, minmax(420px, 600px));
  }

  .rf-collection-set,
  .rf-course-pack,
  .rf-course-pack-clean {
    max-width: 600px;
  }

  .rf-set-cover,
  .rf-course-pack-clean .rf-pack-cover {
    min-height: 320px;
  }
}
