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

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

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

.owo-edu-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--owo-edu-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(--owo-edu-shadow-soft);
  padding: clamp(34px, 7vw, 92px);
  margin-bottom: 28px;
}

.owo-edu-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);
}

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

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

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

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

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

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

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

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

.owo-edu-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;
}

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

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

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

.owo-edu-course-body {
  padding: 26px;
}

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

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

.owo-edu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--owo-edu-ink);
  border-radius: 999px;
  background: var(--owo-edu-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.owo-edu-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);
}

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

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

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

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

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

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

.owo-edu-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;
}

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

.owo-edu-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;
}

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

.owo-edu-iframe {
  background: #050505;
}

.owo-edu-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;
}

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

.owo-edu-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);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .owo-edu-lesson {
    padding: 12px;
  }

  .owo-edu-lesson-panel {
    padding: 22px;
  }

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

/* OWO Educación v0.2 — reel-first course view */
.owo-edu-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(--owo-edu-bg);
}

.owo-edu-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 .owo-edu-reel-topbar {
  top: 32px;
}

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

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

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

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

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

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

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

.owo-edu-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 .owo-edu-lesson-reel {
  min-height: calc(100dvh - 32px);
  height: calc(100dvh - 32px);
}

.owo-edu-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(--owo-edu-line);
  border-radius: clamp(22px, 3vw, 34px);
  background: rgba(255,255,255,0.88);
  box-shadow: var(--owo-edu-shadow-soft);
}

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

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

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

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

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

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

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

.owo-edu-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;
}

.owo-edu-lesson-card .owo-edu-lesson-count {
  margin: 0;
}

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

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

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

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

.owo-edu-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(--owo-edu-line);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .owo-edu-reel-title {
    gap: 7px;
  }

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

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

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

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

  .owo-edu-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 .owo-edu-lesson-card {
    max-height: none;
    height: calc(100dvh - 90px);
  }

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

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

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

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

  .owo-edu-submission-box {
    padding: 14px;
  }

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

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

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

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

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

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

/* OWO Educación v0.3 — collection, packs and improved media */
.owo-edu-section-heading {
  margin: 34px 0 18px;
}

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

.owo-edu-player-dashboard,
.owo-edu-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(--owo-edu-line);
  border-radius: var(--owo-edu-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(--owo-edu-shadow-soft);
  margin-bottom: 28px;
  padding: clamp(26px, 5vw, 72px);
}

.owo-edu-vitrine-hero {
  display: block;
}

.owo-edu-player-dashboard::after,
.owo-edu-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);
}

.owo-edu-player-dashboard h1,
.owo-edu-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;
}

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

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

.owo-edu-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;
}

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

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

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

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

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

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

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

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

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

.owo-edu-set-head h3,
.owo-edu-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;
}

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

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

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

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

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

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

.owo-edu-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);
}

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

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

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

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

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

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

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

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

.owo-edu-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;
}

.owo-edu-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;
}

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

.owo-edu-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;
}

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

.owo-edu-card-lesson .owo-edu-lesson-card {
  isolation: isolate;
}

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

.owo-edu-media-layout-wide {
  margin: 0;
}

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

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

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

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

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

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

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

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

.owo-edu-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 .owo-edu-lesson-card {
  color: #fff;
  background: #111;
}

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

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

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

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

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

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

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

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

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

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

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

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

  .owo-edu-stats-grid {
    gap: 8px;
  }

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

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

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

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

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

/* OWO Educación v0.4 — sobres visuales y reverso de tarjetas. */
.owo-edu-course-pack {
  background: rgba(255, 255, 255, 0.9);
}

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

.owo-edu-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);
}

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

.owo-edu-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);
}

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

.owo-edu-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%);
}

.owo-edu-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%);
}

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

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

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

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

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

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

.owo-edu-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);
}

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

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

.owo-edu-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);
}

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

.owo-edu-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;
}

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

.owo-edu-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;
}

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

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

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

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

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

.owo-edu-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);
}

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

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

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

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

.owo-edu-mini-card.is-completed .owo-edu-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) {
  .owo-edu-pack-envelope {
    min-height: 330px;
  }

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

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

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

  .owo-edu-pack-label {
    padding: 24px;
  }

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

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

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

.owo-edu-course-pack-clean .owo-edu-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%);
}

.owo-edu-course-pack-clean .owo-edu-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);
}

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

.owo-edu-course-pack-clean .owo-edu-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);
}

.owo-edu-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;
}

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

.owo-edu-course-pack-clean .owo-edu-pack-body h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--owo-edu-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;
}

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

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

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

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

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

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

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

.owo-edu-card-experience .owo-edu-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;
}

.owo-edu-card-front,
.owo-edu-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;
}

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

.owo-edu-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);
}

.owo-edu-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;
}

.owo-edu-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;
}

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

.owo-edu-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);
}

.owo-edu-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;
}

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

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

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

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

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

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

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

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

.owo-edu-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);
}

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

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

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

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

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

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

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

.owo-edu-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));
}

.owo-edu-media-mode-cine .owo-edu-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);
}

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

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

.owo-edu-media-mode-object .owo-edu-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);
}

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

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

.owo-edu-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%);
}

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

.owo-edu-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);
}

.owo-edu-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;
}

.owo-edu-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);
}

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

.owo-edu-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;
}

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

.owo-edu-round-button,
.owo-edu-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;
}

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

.owo-edu-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;
}

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

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

.owo-edu-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(--owo-edu-ink);
  box-shadow: 0 34px 140px rgba(0,0,0,0.32);
  padding: clamp(22px, 4vw, 44px);
}

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

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

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

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

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

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

  .owo-edu-card-experience .owo-edu-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 .owo-edu-card-experience .owo-edu-lesson-card {
    height: calc(100dvh - 90px);
  }

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

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

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

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

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

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

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

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

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

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

/* OWO Educación v0.7 — overlay full-card limpio y scrollbar integrada */
.owo-edu-card-experience .owo-edu-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);
}

.owo-edu-card-experience .owo-edu-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(--owo-edu-ink);
  box-shadow: none;
  padding: clamp(24px, 4.8vw, 64px);
  padding-right: clamp(22px, 5.2vw, 78px);
}

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

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

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

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

.owo-edu-card-experience .owo-edu-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(--owo-edu-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%);
}

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

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

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

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

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

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

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

.owo-edu-card-experience .owo-edu-info-panel .owo-edu-submission-box,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-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);
}

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

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

.owo-edu-card-experience .owo-edu-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(--owo-edu-ink);
  box-shadow: 0 14px 42px rgba(0,0,0,0.12);
}

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

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

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

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

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

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

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

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

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

.owo-edu-card-experience .owo-edu-lesson-card {
  overflow: hidden;
}

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

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

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

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

/* OWO Educación v0.8 — lenguaje de cartas, XP, reto y overlay inset */
.owo-edu-card-experience .owo-edu-lesson-card {
  --owo-edu-card-radius: clamp(24px, 3vw, 34px);
  --owo-edu-accent-green: #3bd778;
  width: min(100%, 540px);
  height: min(calc(100dvh - 86px), 820px);
  min-height: 640px;
  border-radius: var(--owo-edu-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);
}

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

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

.owo-edu-card-experience .owo-edu-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%);
}

.owo-edu-card-experience .owo-edu-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;
}

.owo-edu-card-experience .owo-edu-card-state-pill,
.owo-edu-card-experience .owo-edu-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;
}

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

.owo-edu-card-experience .owo-edu-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;
}

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

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

.owo-edu-card-experience .owo-edu-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;
}

.owo-edu-card-experience .owo-edu-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);
}

.owo-edu-card-experience .owo-edu-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;
}

.owo-edu-card-experience .owo-edu-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(--owo-edu-accent-green);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
}

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

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

.owo-edu-card-experience .owo-edu-round-button,
.owo-edu-card-experience .owo-edu-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;
}

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

.owo-edu-lesson.is-unlocked .owo-edu-card-experience .owo-edu-round-button.owo-edu-complete-button,
.owo-edu-lesson.is-completed .owo-edu-card-experience .owo-edu-round-button.owo-edu-complete-button,
.owo-edu-card-experience .owo-edu-lesson.is-unlocked .owo-edu-round-button.owo-edu-complete-button,
.owo-edu-card-experience .owo-edu-lesson.is-completed .owo-edu-round-button.owo-edu-complete-button,
.owo-edu-lesson.is-unlocked .owo-edu-round-button.owo-edu-complete-button,
.owo-edu-lesson.is-completed .owo-edu-round-button.owo-edu-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);
}

.owo-edu-card-experience .owo-edu-info-overlay {
  inset: clamp(10px, 1.5vw, 16px);
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: calc(var(--owo-edu-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);
}

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

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

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

.owo-edu-card-experience .owo-edu-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);
}

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

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

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

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

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

  .owo-edu-card-experience .owo-edu-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 .owo-edu-card-experience .owo-edu-lesson-card {
    height: calc(100dvh - 108px);
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.owo-edu-card-experience .owo-edu-lesson-card {
  --owo-edu-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(--owo-edu-card-radius);
  overflow: hidden;
}

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

.owo-edu-card-experience .owo-edu-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. */
.owo-edu-card-experience .owo-edu-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;
}

.owo-edu-card-experience .owo-edu-card-main-media .owo-edu-media-focus,
.owo-edu-card-experience .owo-edu-media-mode-cine .owo-edu-media-focus,
.owo-edu-card-experience .owo-edu-media-mode-object .owo-edu-media-focus,
.owo-edu-card-experience .owo-edu-media-mode-reel .owo-edu-media-focus,
.owo-edu-card-experience .owo-edu-media-mode-fullscreen .owo-edu-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;
}

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

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

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

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

.owo-edu-card-experience .owo-edu-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. */
.owo-edu-card-experience .owo-edu-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);
}

.owo-edu-card-experience .owo-edu-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);
}

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

.owo-edu-card-experience .owo-edu-card-title-chip .owo-edu-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;
}

.owo-edu-card-experience .owo-edu-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;
}

.owo-edu-card-experience .owo-edu-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


/* OWO Educación v0.8.3 — borde gris oscuro + modo Hero contenido / player seguro */
.owo-edu-card-experience .owo-edu-lesson-card {
  --owo-edu-card-border-dark: rgba(24, 24, 24, 0.94);
  --owo-edu-card-top-overlay: 56px;
  --owo-edu-card-bottom-overlay: clamp(132px, 19vh, 168px);
  border: 2px solid var(--owo-edu-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. */
.owo-edu-card-experience .owo-edu-card-main-media.owo-edu-media-mode-player,
.owo-edu-card-experience .owo-edu-card-main-media.owo-edu-media-mode-cine {
  top: var(--owo-edu-card-top-overlay);
  right: 0;
  bottom: var(--owo-edu-card-bottom-overlay);
  left: 0;
  height: auto;
  border-radius: 0;
  background: #050505;
  padding: 0;
}

.owo-edu-card-experience .owo-edu-card-main-media.owo-edu-media-mode-player .owo-edu-media-focus,
.owo-edu-card-experience .owo-edu-card-main-media.owo-edu-media-mode-cine .owo-edu-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;
}

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

.owo-edu-card-experience.media-mode-player .owo-edu-card-vignette,
.owo-edu-card-experience.media-mode-cine .owo-edu-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) {
  .owo-edu-card-experience .owo-edu-lesson-card {
    --owo-edu-card-top-overlay: 50px;
    --owo-edu-card-bottom-overlay: 132px;
    border: 2px solid var(--owo-edu-card-border-dark);
    outline: none;
  }
}

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

/* OWO Educación v0.9 — videos WordPress embebidos + serie visual */
.owo-edu-visual-series {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
  touch-action: pan-y;
}

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

.owo-edu-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;
}

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

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

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

.owo-edu-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;
}

.owo-edu-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;
}

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

.owo-edu-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;
}

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

.owo-edu-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;
}

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

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

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

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

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

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

  .owo-edu-series-ui {
    bottom: 10px;
  }

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

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

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

/* OWO Educación + Visual FX integration */
.owo-edu-card-experience.has-visual-fx .owo-edu-card-main-media .owo-vfx-direct,
.owo-edu-card-experience.has-visual-fx .owo-edu-card-main-media .owo-vfx-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
}

.owo-edu-card-experience.has-visual-fx .owo-edu-card-main-media .owo-vfx-bg-surface {
  border-radius: inherit;
}

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

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

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

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

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

/* OWO Educación v2.0.5 — Texto animado legible, sin hyphen y con mejor uso de la tarjeta */
.owo-edu-card-experience.media-type-animated_text .owo-edu-card-main-media {
  background:
    radial-gradient(circle at 18% 16%, rgba(103,232,137,0.20), transparent 34%),
    radial-gradient(circle at 82% 70%, rgba(143,98,255,0.18), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.035), transparent 42%),
    #07070a;
}

.owo-edu-card-experience .owo-edu-animated-text {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: calc(var(--owo-edu-card-top-overlay, 56px) + 10px) clamp(10px, 3.4vw, 30px) calc(var(--owo-edu-card-bottom-overlay, 140px) + 12px);
  color: #fff;
  text-align: center;
  pointer-events: auto;
}

.owo-edu-card-experience .owo-edu-animated-text-stage {
  position: relative;
  width: min(96%, 760px);
  height: min(82%, 640px);
  min-height: clamp(340px, 54vh, 600px);
  display: grid;
  place-items: center;
  padding: clamp(30px, 5vh, 58px) clamp(24px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: clamp(24px, 4vw, 40px);
  background: linear-gradient(145deg, rgba(8,8,10,0.46), rgba(5,5,7,0.24));
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 34px 100px rgba(0,0,0,0.24);
  overflow: hidden;
}

.owo-edu-card-experience .owo-edu-animated-text-stage::before {
  content: "";
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.15), transparent 27%),
    radial-gradient(circle at 78% 80%, rgba(103,232,137,0.14), transparent 34%);
  filter: blur(18px);
  opacity: .72;
  pointer-events: none;
}

.owo-edu-card-experience .owo-edu-animated-text-label {
  position: absolute;
  top: clamp(14px, 2.4vh, 22px);
  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.22);
  color: rgba(255,255,255,0.68);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1;
  padding: 0 10px;
  text-transform: uppercase;
}

.owo-edu-card-experience .owo-edu-animated-text-phrase {
  position: absolute;
  inset: clamp(54px, 9vh, 88px) clamp(20px, 5.2vw, 72px) clamp(42px, 8vh, 72px);
  z-index: 2;
  display: grid;
  place-items: center;
  max-width: 100%;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  filter: blur(8px);
  color: #fff;
  font-size: clamp(2.08rem, 4.75vh, 4.15rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.052em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0,0,0,.44);
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(.2,.8,.2,1),
    filter 520ms ease;
}

.owo-edu-card-experience .owo-edu-animated-text-phrase.is-medium {
  font-size: clamp(1.78rem, 4.25vh, 3.55rem);
  line-height: 1.05;
  letter-spacing: -.046em;
}

.owo-edu-card-experience .owo-edu-animated-text-phrase.is-long {
  font-size: clamp(1.48rem, 3.58vh, 2.95rem);
  line-height: 1.08;
  letter-spacing: -.038em;
}

.owo-edu-card-experience .owo-edu-animated-text-phrase.is-xlong {
  font-size: clamp(1.18rem, 2.95vh, 2.42rem);
  line-height: 1.12;
  letter-spacing: -.028em;
}

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

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

.owo-edu-card-experience .owo-edu-animated-text-counter {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border: 1px solid rgba(255,255,255,0.16);
  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: .66rem;
  font-weight: 820;
  line-height: 1;
  padding: 5px 9px;
}

.owo-edu-card-experience .owo-edu-animated-speed-controls {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.owo-edu-card-experience .owo-edu-animated-speed-controls button {
  width: auto;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.58);
  font-size: .62rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.owo-edu-card-experience .owo-edu-animated-speed-controls button.is-active {
  background: rgba(103,232,137,0.78);
  color: #061007;
}

.owo-edu-card-experience .owo-edu-animated-text-segments {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: min(340px, 72vw);
}

.owo-edu-card-experience .owo-edu-animated-text-segment {
  width: clamp(12px, 2.8vw, 24px);
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.owo-edu-card-experience .owo-edu-animated-text-segment.is-active {
  width: clamp(26px, 5.2vw, 48px);
  background: rgba(103,232,137,0.92);
}

.owo-edu-card-experience.media-type-animated_text .owo-edu-card-vignette {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.07) 28%, rgba(0,0,0,0.10) 64%, rgba(0,0,0,0.74) 100%),
    radial-gradient(circle at 50% 50%, transparent 46%, rgba(0,0,0,0.18) 100%);
}

@media (max-width: 640px) {
  .owo-edu-card-experience .owo-edu-animated-text {
    padding: calc(var(--owo-edu-card-top-overlay, 50px) + 8px) 10px calc(var(--owo-edu-card-bottom-overlay, 132px) + 12px);
  }

  .owo-edu-card-experience .owo-edu-animated-text-stage {
    width: min(96%, 460px);
    height: min(86%, 620px);
    min-height: clamp(340px, 54vh, 540px);
    padding: 24px 20px;
    border-radius: clamp(22px, 7vw, 34px);
  }

  .owo-edu-card-experience .owo-edu-animated-text-label {
    top: 14px;
    font-size: .62rem;
  }

  .owo-edu-card-experience .owo-edu-animated-text-phrase {
    inset: 56px 18px 48px;
    font-size: clamp(1.82rem, 8.2vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: -.05em;
  }

  .owo-edu-card-experience .owo-edu-animated-text-phrase.is-medium {
    font-size: clamp(1.54rem, 6.9vw, 2.62rem);
  }

  .owo-edu-card-experience .owo-edu-animated-text-phrase.is-long {
    font-size: clamp(1.28rem, 5.8vw, 2.12rem);
  }

  .owo-edu-card-experience .owo-edu-animated-text-phrase.is-xlong {
    font-size: clamp(1.05rem, 4.9vw, 1.72rem);
  }

  .owo-edu-card-experience .owo-edu-animated-text-ui {
    bottom: calc(var(--owo-edu-card-bottom-overlay, 132px) + 12px);
    gap: 6px;
  }
}


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

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

.owo-edu-player-dashboard,
.owo-edu-vitrine-hero,
.owo-edu-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);
}

.owo-edu-player-dashboard::after,
.owo-edu-vitrine-hero::after,
.owo-edu-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));
}

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

.owo-edu-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);
}

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

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

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

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

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

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

.owo-edu-course-pack-clean,
.owo-edu-collection-set,
.owo-edu-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);
}

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

.owo-edu-course-pack-clean .owo-edu-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%);
}

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

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

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

.owo-edu-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. */
.owo-edu-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);
}

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

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

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

.owo-edu-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);
}

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

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

.owo-edu-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);
}

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

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

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

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

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

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

/* Tarjetas principales: negro + verde como señal de vida. */
.owo-edu-card-experience .owo-edu-lesson-card {
  --owo-edu-card-border-dark: rgba(5, 5, 5, 0.96);
  --owo-edu-accent-green: var(--owo-edu-green);
  border-color: var(--owo-edu-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;
}

.owo-edu-card-experience .owo-edu-card-top-line,
.owo-edu-card-experience .owo-edu-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);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.owo-edu-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));
}

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

/* Modo móvil: mantiene el lenguaje pero baja el ruido visual. */
@media (max-width: 640px) {
  .owo-edu-player-dashboard,
  .owo-edu-vitrine-hero,
  .owo-edu-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%);
  }

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

/* OWO Educación v1.5.7 — login / registro integrado al lenguaje Centro Reunioon */
.owo-edu-login-gate,
.owo-edu-login-screen {
  min-height: calc(100dvh - 72px);
  width: 100%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px) 18px;
  background:
    radial-gradient(circle at 14% 22%, rgba(54,232,120,0.32), transparent 34%),
    radial-gradient(circle at 88% 74%, rgba(246,242,234,0.20), transparent 28%),
    linear-gradient(135deg, #020403 0%, #080a08 48%, #11120f 100%);
  color: #f6f2ea;
}

.owo-edu-login-ambient {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(8px);
  opacity: .72;
}

.owo-edu-login-ambient-a {
  inset: 0 auto auto -12%;
  width: 38vw;
  height: 38vw;
  min-width: 320px;
  min-height: 320px;
  background: radial-gradient(circle, rgba(54,232,120,.34), transparent 68%);
}

.owo-edu-login-ambient-b {
  right: -9%;
  bottom: -10%;
  width: 34vw;
  height: 34vw;
  min-width: 280px;
  min-height: 280px;
  background: radial-gradient(circle, rgba(246,242,234,.20), transparent 64%);
}

.owo-edu-login-shell {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  border: 1px solid rgba(246,242,234,.18);
  border-radius: clamp(32px, 4vw, 56px);
  background:
    radial-gradient(circle at 8% 12%, rgba(54,232,120,.18), transparent 34%),
    radial-gradient(circle at 98% 92%, rgba(246,242,234,.16), transparent 25%),
    linear-gradient(135deg, rgba(246,242,234,.18), rgba(246,242,234,.06));
  box-shadow: 0 38px 140px rgba(0,0,0,.42);
  backdrop-filter: blur(28px) saturate(1.22);
  -webkit-backdrop-filter: blur(28px) saturate(1.22);
  padding: clamp(28px, 5vw, 64px);
}

.owo-edu-login-hero {
  max-width: 740px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.owo-edu-login-hero h1 {
  margin: 0 0 18px;
  color: #f6f2ea;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: .86;
  letter-spacing: -.082em;
  text-wrap: balance;
}

.owo-edu-login-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(246,242,234,.72);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.46;
}

.owo-edu-login-hero-pills,
.owo-edu-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.owo-edu-login-hero-pills span,
.owo-edu-login-register-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(246,242,234,.14);
  border-radius: 999px;
  background: rgba(246,242,234,.08);
  color: rgba(246,242,234,.72);
  padding: 7px 12px;
  font-size: .84rem;
  font-weight: 860;
}

.owo-edu-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 24px);
  align-items: stretch;
}

.owo-edu-login-gate .owo-edu-login-notice,
.owo-edu-login-card {
  border: 1px solid rgba(246,242,234,.16);
  border-radius: clamp(24px, 3vw, 34px);
  background: linear-gradient(135deg, rgba(12,14,12,.72), rgba(246,242,234,.10));
  box-shadow: 0 22px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  padding: clamp(24px, 3vw, 38px);
}

.owo-edu-login-gate .owo-edu-login-notice {
  width: min(100%, 620px);
  text-align: left;
}

.owo-edu-login-gate .owo-edu-login-notice h2,
.owo-edu-login-card h1,
.owo-edu-login-card h2 {
  margin: 0 0 14px;
  color: #f6f2ea;
  font-size: clamp(2.4rem, 5vw, 5.3rem);
  line-height: .88;
  letter-spacing: -.078em;
}

.owo-edu-login-card h2 {
  font-size: clamp(2.6rem, 4vw, 4.8rem);
}

.owo-edu-login-card-compact h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.owo-edu-login-gate .owo-edu-login-notice p:not(.owo-edu-kicker),
.owo-edu-login-card p:not(.owo-edu-kicker) {
  margin: 0;
  max-width: 520px;
  color: rgba(246,242,234,.70);
  font-size: clamp(.98rem, 1.6vw, 1.12rem);
  line-height: 1.5;
}

.owo-edu-login-intro {
  margin-bottom: 24px;
}

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

.owo-edu-login-error {
  border-color: rgba(255,118,96,.34);
  background: rgba(255,118,96,.12);
}

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

.owo-edu-login-form label {
  display: grid;
  gap: 8px;
  color: rgba(246,242,234,.78);
  font-weight: 820;
}

.owo-edu-login-form input[type="text"],
.owo-edu-login-form input[type="email"],
.owo-edu-login-form input[type="password"] {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(246,242,234,.15);
  border-radius: 18px;
  background: rgba(5,5,5,.35);
  color: #f6f2ea;
  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;
}

.owo-edu-login-form input::placeholder {
  color: rgba(246,242,234,.42);
}

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

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

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

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

.owo-edu-login-link {
  display: inline-flex;
  margin-top: 18px;
  color: #36e878;
  font-weight: 860;
  text-decoration: none;
}

.owo-edu-login-register-note {
  border-radius: 18px;
  padding: 12px 14px;
  line-height: 1.35;
}

.owo-edu-button-wide {
  width: 100%;
  justify-content: center;
}

@media (max-width: 860px) {
  .owo-edu-login-grid {
    grid-template-columns: 1fr;
  }
}

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

  .owo-edu-login-shell {
    padding: 24px;
    border-radius: 32px;
  }

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

  .owo-edu-login-row .owo-edu-button,
  .owo-edu-login-actions .owo-edu-button {
    width: 100%;
    justify-content: center;
  }
}


/* Compatibilidad: si WooCommerce muestra su pantalla Acceder / Registrarse,
   se integra visualmente con Centro Reunioon en lugar de verse como layout estándar. */
body.woocommerce-account:not(.logged-in) .woocommerce {
  width: min(1120px, calc(100% - 36px));
  margin: clamp(34px, 7vw, 90px) auto;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid rgba(246,242,234,.18);
  border-radius: clamp(30px, 4vw, 52px);
  background:
    radial-gradient(circle at 10% 14%, rgba(54,232,120,.18), transparent 34%),
    radial-gradient(circle at 96% 92%, rgba(246,242,234,.14), transparent 25%),
    linear-gradient(135deg, rgba(246,242,234,.16), rgba(246,242,234,.05));
  box-shadow: 0 38px 140px rgba(0,0,0,.42);
  backdrop-filter: blur(28px) saturate(1.22);
  -webkit-backdrop-filter: blur(28px) saturate(1.22);
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

body.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
body.woocommerce-account:not(.logged-in) .woocommerce .u-column2 {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce h2 {
  margin: 0 0 18px !important;
  color: #f6f2ea !important;
  font-size: clamp(2.8rem, 6vw, 6rem) !important;
  line-height: .86 !important;
  letter-spacing: -.08em !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce form.login,
body.woocommerce-account:not(.logged-in) .woocommerce form.register {
  min-height: 100%;
  margin: 0 !important;
  padding: clamp(22px, 3vw, 34px) !important;
  border: 1px solid rgba(246,242,234,.16) !important;
  border-radius: 28px !important;
  background: linear-gradient(135deg, rgba(12,14,12,.74), rgba(246,242,234,.10)) !important;
  color: rgba(246,242,234,.76) !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce form.login input.input-text,
body.woocommerce-account:not(.logged-in) .woocommerce form.register input.input-text {
  min-height: 54px;
  border: 1px solid rgba(246,242,234,.15) !important;
  border-radius: 18px !important;
  background: rgba(5,5,5,.35) !important;
  color: #f6f2ea !important;
  padding: 0 16px !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce form.login .button,
body.woocommerce-account:not(.logged-in) .woocommerce form.register .button {
  min-height: 46px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #36e878 !important;
  color: #050505 !important;
  padding: 0 22px !important;
  font-weight: 900 !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce a {
  color: #36e878 !important;
  font-weight: 850;
}

@media (max-width: 860px) {
  body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set {
    grid-template-columns: 1fr;
  }
}

/* OWO Educación v1.4 — User Dock / Centro OWO */
.owo-edu-user-dock,
.owo-edu-user-dock * {
  box-sizing: border-box;
}

.owo-edu-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;
}

.owo-edu-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;
}

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

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

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

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

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

.owo-edu-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;
}

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

.owo-edu-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);
}

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

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

.owo-edu-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;
}

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

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

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

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

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

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

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

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

.owo-edu-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);
}

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

.owo-edu-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;
}

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

.owo-edu-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;
}

.owo-edu-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;
}

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

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

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

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

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

/* OWO Educación v1.5 — contraste de info, velocidades y dock coherente */
.owo-edu-card-experience .owo-edu-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);
}

.owo-edu-card-experience .owo-edu-info-panel,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-kicker,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-lesson-content,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-submission-prompt,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-status-card,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-status-card p,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-submission-box,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-submission-box p,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-attempt-history,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-attempt-note,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-attempt-locked,
.owo-edu-card-experience .owo-edu-info-panel p,
.owo-edu-card-experience .owo-edu-info-panel li,
.owo-edu-card-experience .owo-edu-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);
}

.owo-edu-card-experience .owo-edu-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);
}

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

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

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

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

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

.owo-edu-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);
}

.owo-edu-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);
}

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

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

.owo-edu-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;
}

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

/* OWO Educación v1.5.1 — dock contrast and refined scrollbars */
.owo-edu-user-dock-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(246,242,234,.22) transparent;
}

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

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

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

.owo-edu-lesson-stream::-webkit-scrollbar-thumb,
.owo-edu-learning-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;
}

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

.owo-edu-lesson-stream::-webkit-scrollbar-thumb:hover,
.owo-edu-learning-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;
}

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

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

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

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

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

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


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

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

.owo-edu-card-experience .owo-edu-info-panel p,
.owo-edu-card-experience .owo-edu-info-panel li,
.owo-edu-card-experience .owo-edu-info-panel span,
.owo-edu-card-experience .owo-edu-info-panel summary,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-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);
}

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

.owo-edu-card-experience .owo-edu-info-panel .owo-edu-lesson-actions .owo-edu-button,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-lesson-actions .owo-edu-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);
}

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

.owo-edu-card-experience .owo-edu-info-panel .owo-edu-lesson-actions .owo-edu-button:hover,
.owo-edu-card-experience .owo-edu-info-panel .owo-edu-lesson-actions .owo-edu-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;
}

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

.owo-edu-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;
}

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

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

.owo-edu-card-back-mark {
  color: var(--owo-edu-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;
}

.owo-edu-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);
}

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

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

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

.owo-edu-mini-card.is-locked .owo-edu-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;
}

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

/* OWO Educación 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) {
  .owo-edu-collection-grid,
  .owo-edu-pack-grid {
    grid-template-columns: repeat(auto-fill, minmax(390px, 560px));
    justify-content: start;
    align-items: start;
    gap: clamp(22px, 2vw, 34px);
  }

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

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

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

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

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

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

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

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

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

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

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

/* OWO Educación v1.6.2 — navegación LMS lateral sin perder tarjetas OWO */
.owo-edu-course-shell-lms {
  --owo-edu-lms-sidebar-w: clamp(250px, 23vw, 318px);
  background:
    radial-gradient(circle at 12% 18%, rgba(54, 232, 120, 0.13), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.07), transparent 28%),
    #050505;
}

.owo-edu-course-shell-lms .owo-edu-reel-topbar {
  background: rgba(5, 5, 5, 0.74);
  border-bottom-color: rgba(246, 242, 234, 0.12);
  color: #f6f2ea;
}

.owo-edu-course-shell-lms .owo-edu-reel-title strong,
.owo-edu-course-shell-lms .owo-edu-reel-title span,
.owo-edu-course-shell-lms .owo-edu-mini-progress-reel {
  color: #f6f2ea;
}

.owo-edu-course-shell-lms .owo-edu-reel-title span,
.owo-edu-course-shell-lms .owo-edu-mini-progress-reel {
  color: rgba(246, 242, 234, 0.66);
}

.owo-edu-lms-toggle {
  display: none;
  flex: 0 0 auto;
  border: 1px solid rgba(54, 232, 120, 0.35);
  border-radius: 999px;
  background: rgba(54, 232, 120, 0.12);
  color: #f6f2ea;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  padding: 8px 12px;
  cursor: pointer;
}

.owo-edu-lms-sidebar {
  position: fixed;
  z-index: 990;
  left: clamp(12px, 2vw, 26px);
  top: 64px;
  width: var(--owo-edu-lms-sidebar-w);
  height: calc(100dvh - 84px);
  box-sizing: border-box;
  color: #f6f2ea;
}

.admin-bar .owo-edu-lms-sidebar {
  top: 96px;
  height: calc(100dvh - 116px);
}

.owo-edu-lms-sidebar-inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(246, 242, 234, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 0%, rgba(54, 232, 120, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(25, 25, 24, 0.86), rgba(9, 9, 9, 0.92));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 18px;
}

.owo-edu-lms-sidebar-head {
  position: relative;
  padding-right: 34px;
}

.owo-edu-lms-sidebar-head .owo-edu-kicker {
  margin: 0 0 8px;
  color: var(--owo-edu-green, #36e878);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.owo-edu-lms-sidebar-head h2 {
  margin: 0;
  color: #f6f2ea;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.owo-edu-lms-close {
  display: none;
  position: absolute;
  right: -4px;
  top: -6px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(246, 242, 234, 0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #f6f2ea;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.owo-edu-lms-progress-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid rgba(246, 242, 234, 0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  padding: 12px;
}

.owo-edu-lms-progress-card span {
  color: rgba(246, 242, 234, 0.70);
  font-size: 0.82rem;
  font-weight: 760;
}

.owo-edu-lms-progress-card strong {
  color: var(--owo-edu-green, #36e878);
  font-size: 0.9rem;
}

.owo-edu-lms-progress-card .owo-edu-progress-bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: rgba(246, 242, 234, 0.10);
  overflow: hidden;
}

.owo-edu-lms-progress-card .owo-edu-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--owo-edu-green-dark, #1fb85b), var(--owo-edu-green, #36e878));
}

.owo-edu-lms-lessons {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(54,232,120,0.38) transparent;
}

.owo-edu-lms-lesson-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border: 1px solid rgba(246, 242, 234, 0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  color: #f6f2ea;
  text-decoration: none;
  padding: 9px 10px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.owo-edu-lms-lesson-link:hover,
.owo-edu-lms-lesson-link:focus {
  transform: translateY(-1px);
  border-color: rgba(54, 232, 120, 0.34);
  background: rgba(54, 232, 120, 0.08);
  outline: none;
}

span.owo-edu-lms-lesson-link {
  cursor: default;
  opacity: 0.58;
}

.owo-edu-lms-lesson-number,
.owo-edu-lms-lesson-icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 950;
}

.owo-edu-lms-lesson-number {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(246, 242, 234, 0.12);
  background: rgba(246, 242, 234, 0.06);
  color: rgba(246, 242, 234, 0.82);
  font-size: 0.82rem;
}

.owo-edu-lms-lesson-main {
  min-width: 0;
}

.owo-edu-lms-lesson-main b {
  display: block;
  overflow: hidden;
  color: #f6f2ea;
  font-size: 0.84rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owo-edu-lms-lesson-main em {
  display: block;
  margin-top: 4px;
  color: rgba(246, 242, 234, 0.58);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.owo-edu-lms-lesson-icon {
  width: 24px;
  height: 24px;
  color: rgba(246, 242, 234, 0.70);
}

.owo-edu-lms-lesson-link.is-current {
  border-color: rgba(54, 232, 120, 0.48);
  background: linear-gradient(135deg, rgba(54, 232, 120, 0.20), rgba(255,255,255,0.045));
  box-shadow: 0 0 0 1px rgba(54,232,120,0.08), 0 14px 34px rgba(54,232,120,0.08);
}

.owo-edu-lms-lesson-link.is-current .owo-edu-lms-lesson-number,
.owo-edu-lms-lesson-link.is-completed .owo-edu-lms-lesson-number {
  border-color: rgba(54, 232, 120, 0.40);
  background: rgba(54, 232, 120, 0.16);
  color: var(--owo-edu-green, #36e878);
}

.owo-edu-lms-lesson-link.is-completed .owo-edu-lms-lesson-icon,
.owo-edu-lms-lesson-link.is-current .owo-edu-lms-lesson-icon {
  color: var(--owo-edu-green, #36e878);
}

.owo-edu-lms-lesson-link.is-locked .owo-edu-lms-lesson-number,
.owo-edu-lms-lesson-link.is-locked .owo-edu-lms-lesson-icon {
  color: rgba(246, 242, 234, 0.38);
}

.owo-edu-lms-sidebar-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(246, 242, 234, 0.10);
  color: rgba(246, 242, 234, 0.62);
  font-size: 0.76rem;
  font-weight: 820;
  padding-top: 12px;
}

.owo-edu-lms-sidebar-foot strong {
  color: #f6f2ea;
}

.owo-edu-course-shell-lms .owo-edu-feed-reel {
  box-sizing: border-box;
  padding-left: calc(var(--owo-edu-lms-sidebar-w) + clamp(24px, 4vw, 58px));
}

.owo-edu-course-shell-lms .owo-edu-card-experience .owo-edu-lesson-card,
.owo-edu-course-shell-lms .owo-edu-lesson-card {
  width: min(100%, 860px);
}

.owo-edu-lms-overlay {
  display: none;
}

@media (max-width: 1120px) {
  .owo-edu-course-shell-lms {
    --owo-edu-lms-sidebar-w: 292px;
  }

  .owo-edu-course-shell-lms .owo-edu-feed-reel {
    padding-left: 0;
  }

  .owo-edu-lms-toggle,
  .owo-edu-lms-close {
    display: inline-grid;
    place-items: center;
  }

  .owo-edu-lms-sidebar {
    z-index: 1200;
    left: 12px;
    top: 62px;
    width: min(340px, calc(100vw - 24px));
    height: calc(100dvh - 84px);
    transform: translateX(calc(-100% - 20px));
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease;
  }

  .admin-bar .owo-edu-lms-sidebar {
    top: 94px;
    height: calc(100dvh - 116px);
  }

  .owo-edu-course-shell-lms.is-lms-open .owo-edu-lms-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .owo-edu-lms-overlay {
    position: fixed;
    inset: 0;
    z-index: 1190;
    display: block;
    opacity: 0;
    pointer-events: none;
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity 220ms ease;
  }

  .owo-edu-course-shell-lms.is-lms-open .owo-edu-lms-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 720px) {
  .owo-edu-course-shell-lms .owo-edu-reel-topbar {
    gap: 8px;
    height: 56px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .owo-edu-course-shell-lms .owo-edu-reel-title span {
    display: none;
  }

  .owo-edu-course-shell-lms .owo-edu-reel-title strong {
    max-width: 34vw;
    font-size: 0.82rem;
  }

  .owo-edu-lms-toggle {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 1180;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 15px;
    border-color: rgba(54, 232, 120, 0.58);
    background: linear-gradient(135deg, rgba(54, 232, 120, 0.94), rgba(28, 190, 92, 0.92));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(54, 232, 120, 0.18);
    color: #020302;
    font-size: 0.82rem;
    font-weight: 950;
  }

  .owo-edu-course-shell-lms.is-lms-open .owo-edu-lms-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .owo-edu-course-shell-lms .owo-edu-mini-progress-reel {
    flex-basis: 90px;
    width: 90px;
    font-size: 0.68rem;
  }

  .owo-edu-course-shell-lms .owo-edu-card-experience.owo-edu-lesson-reel {
    padding-top: 68px;
  }
}


/* OWO Educación v1.6.3 — toggle persistente de lecciones durante la vista de curso */
.owo-edu-lms-floating-toggle {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 1405;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(54, 232, 120, 0.58);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(54, 232, 120, 0.94), rgba(28, 190, 92, 0.92));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(54, 232, 120, 0.18);
  color: #020302;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 10px 15px;
}

.owo-edu-course-shell-lms:not(.is-lms-open) .owo-edu-lms-sidebar {
  transform: translateX(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
}

.owo-edu-course-shell-lms:not(.is-lms-open) .owo-edu-feed-reel {
  padding-left: 0;
}

.owo-edu-course-shell-lms.is-lms-open .owo-edu-feed-reel {
  padding-left: calc(var(--owo-edu-lms-sidebar-w) + clamp(24px, 4vw, 58px));
}

.owo-edu-course-shell-lms.is-lms-open .owo-edu-lms-floating-toggle {
  border-color: rgba(246, 242, 234, 0.18);
  background: rgba(246, 242, 234, 0.10);
  color: #f6f2ea;
}

.owo-edu-course-shell-lms.is-lms-open .owo-edu-lms-floating-toggle span:last-child::after {
  content: " abiertas";
  opacity: 0.8;
}

@media (max-width: 1120px) {
  .owo-edu-course-shell-lms.is-lms-open .owo-edu-feed-reel {
    padding-left: 0;
  }

  .owo-edu-course-shell-lms.is-lms-open .owo-edu-lms-floating-toggle {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 720px) {
  .owo-edu-lms-floating-toggle {
    left: max(14px, env(safe-area-inset-left));
    bottom: calc(16px + env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 10px 15px;
    font-size: 0.82rem;
  }
}

/* OWO Educación 1.6.15 — biblioteca separada, filtros y contraste */
.owo-edu-catalog-library {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
}

.owo-edu-library-hero {
  margin-bottom: 0;
}

.owo-edu-catalog-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(150px, .78fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}

.owo-edu-filter-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.owo-edu-filter-field span {
  color: rgba(255,255,255,.66);
  font-size: .72rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850;
}

.owo-edu-filter-field input,
.owo-edu-filter-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 0 14px;
  color: #f8f5ea;
  background: rgba(255,255,255,.07);
  outline: none;
  font-weight: 750;
}

.owo-edu-filter-field input::placeholder {
  color: rgba(255,255,255,.42);
}

.owo-edu-filter-field select option {
  color: #111;
}

.owo-edu-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.owo-edu-catalog-filters .owo-edu-button {
  min-height: 42px;
  padding: 0 16px;
}

.owo-edu-library-count {
  color: rgba(255,255,255,.72);
  font-weight: 750;
  letter-spacing: .02em;
}

.owo-edu-library-count strong {
  color: #39ff93;
}

.owo-edu-library-grid .owo-edu-course-pack-clean .owo-edu-card-meta {
  flex-wrap: wrap;
}

@media (max-width: 1020px) {
  .owo-edu-catalog-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .owo-edu-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .owo-edu-catalog-filters {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .owo-edu-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* OWO Educación 1.6.15 — contraste explícito para acciones de filtros */
.owo-edu-catalog-filters .owo-edu-filter-actions .owo-edu-button,
.owo-edu-catalog-filters .owo-edu-filter-actions .owo-edu-button:visited {
  min-height: 42px;
  color: #ffffff;
  background: #050505;
  border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.owo-edu-catalog-filters .owo-edu-filter-actions .owo-edu-button:hover,
.owo-edu-catalog-filters .owo-edu-filter-actions .owo-edu-button:focus-visible {
  color: #050505;
  background: #39ff93;
  border-color: #39ff93;
  box-shadow: 0 14px 34px rgba(57,255,147,.18);
}

.owo-edu-catalog-filters .owo-edu-filter-actions .owo-edu-button-ghost,
.owo-edu-catalog-filters .owo-edu-filter-actions .owo-edu-button-ghost:visited {
  color: #f8f5ea !important;
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.22) !important;
}

.owo-edu-catalog-filters .owo-edu-filter-actions .owo-edu-button-ghost:hover,
.owo-edu-catalog-filters .owo-edu-filter-actions .owo-edu-button-ghost:focus-visible {
  color: #050505 !important;
  background: #f8f5ea !important;
  border-color: #f8f5ea !important;
}



/* OWO Educación 1.6.16 — tarjetas de biblioteca uniformes
   Las tarjetas deben conservar la misma altura aunque el título del curso use una o dos líneas. */
.owo-edu-library-grid {
  align-items: stretch;
}

.owo-edu-library-grid .owo-edu-course-pack-clean {
  height: 100%;
  display: grid;
  grid-template-rows: clamp(230px, 23vw, 320px) minmax(330px, 1fr);
}

.owo-edu-library-grid .owo-edu-course-pack-clean .owo-edu-pack-cover {
  min-height: 0;
  height: 100%;
}

.owo-edu-library-grid .owo-edu-course-pack-clean .owo-edu-pack-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  min-height: 330px;
}

.owo-edu-library-grid .owo-edu-course-pack-clean .owo-edu-pack-body h2 {
  min-height: 1.92em;
}

.owo-edu-library-grid .owo-edu-course-pack-clean .owo-edu-clamp {
  min-height: 4.65em;
  line-height: 1.55;
}

.owo-edu-library-grid .owo-edu-course-pack-clean .owo-edu-card-meta {
  min-height: 48px;
  margin-top: 0;
  align-content: start;
}

.owo-edu-library-grid .owo-edu-course-pack-clean .owo-edu-button {
  align-self: end;
}

@media (max-width: 720px) {
  .owo-edu-library-grid .owo-edu-course-pack-clean {
    grid-template-rows: clamp(230px, 58vw, 310px) minmax(310px, 1fr);
  }

  .owo-edu-library-grid .owo-edu-course-pack-clean .owo-edu-pack-body {
    min-height: 310px;
  }
}


/* OWO Educación 2.0.4 — botón de ruta circular superior izquierda */
.owo-edu-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.owo-edu-lms-floating-toggle,
.owo-edu-lms-toggle.owo-edu-lms-floating-toggle {
  position: fixed;
  left: calc(max(18px, env(safe-area-inset-left)) + 0px);
  top: calc(max(18px, env(safe-area-inset-top)) + 0px);
  bottom: auto;
  z-index: 1505;
  display: inline-grid !important;
  place-items: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  gap: 0;
  border: 1px solid rgba(54, 232, 120, 0.48);
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 25%, rgba(54, 232, 120, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(8, 24, 15, 0.88), rgba(2, 3, 3, 0.88));
  color: var(--owo-edu-green, #36e878);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(54, 232, 120, 0.12),
    0 0 28px rgba(54, 232, 120, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.admin-bar .owo-edu-lms-floating-toggle,
.admin-bar .owo-edu-lms-toggle.owo-edu-lms-floating-toggle {
  top: calc(50px + env(safe-area-inset-top));
}

.owo-edu-lms-floating-toggle:hover,
.owo-edu-lms-floating-toggle:focus-visible {
  transform: translateY(-1px) scale(1.025);
  border-color: rgba(54, 232, 120, 0.76);
  color: #f6f2ea;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(54, 232, 120, 0.20),
    0 0 36px rgba(54, 232, 120, 0.20);
  outline: none;
}

.owo-edu-lms-toggle-icon,
.owo-edu-lms-toggle-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.owo-edu-lms-toggle-icon svg {
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.owo-edu-course-shell-lms.is-lms-open .owo-edu-lms-floating-toggle {
  border-color: rgba(246, 242, 234, 0.24);
  background:
    radial-gradient(circle at 38% 25%, rgba(246, 242, 234, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(28, 28, 27, 0.90), rgba(4, 4, 4, 0.92));
  color: #f6f2ea;
  opacity: 1;
  pointer-events: auto;
}

.owo-edu-course-shell-lms.is-lms-open .owo-edu-lms-floating-toggle span:last-child::after {
  content: none;
}

@media (max-width: 1120px) {
  .owo-edu-course-shell-lms.is-lms-open .owo-edu-lms-floating-toggle,
  .owo-edu-lms-floating-toggle,
  .owo-edu-lms-toggle.owo-edu-lms-floating-toggle {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .owo-edu-lms-floating-toggle,
  .owo-edu-lms-toggle.owo-edu-lms-floating-toggle {
    left: calc(max(12px, env(safe-area-inset-left)) + 0px);
    top: calc(max(12px, env(safe-area-inset-top)) + 0px);
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }

  .admin-bar .owo-edu-lms-floating-toggle,
  .admin-bar .owo-edu-lms-toggle.owo-edu-lms-floating-toggle {
    top: calc(44px + env(safe-area-inset-top));
  }

  .owo-edu-lms-toggle-icon,
  .owo-edu-lms-toggle-icon svg {
    width: 22px;
    height: 22px;
  }
}
