/* ============================================================
   DC LMS — JK Fisiología Integral
   Design system v2 (Cormorant Garamond + Inter)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   Design tokens
   Defined on body so Elementor vars (body.elementor-kit-6) are in scope.
   ============================================================ */
body {
  /* Brand */
  --gold:        #C7AF5D;
  --gold-dark:   #927822;
  --gold-light:  #E5D4A0;
  --gold-soft:   #F5EFD9;
  --teal:        #59B8AD;
  --teal-dark:   #509C92;
  --teal-soft:   #DCF0EE;
  --beige:       #A7A085;
  --beige-soft:  #E8E3D0;

  /* Neutrals */
  --ink:         #2A2D33;
  --ink-soft:    #393D44;
  --ink-mid:     #6B6F77;
  --ink-light:   #9CA0A8;
  --line:        #E4E0D5;
  --line-soft:   #EFEBE0;
  --bg:          #F7F3EA;
  --bg-warm:     #FBF8F0;
  --paper:       #FFFFFF;

  /* Status */
  --success:  #59B8AD;
  --warning:  #D49E3D;
  --danger:   #C16B5A;

  /* Type */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(57,61,68,.04), 0 1px 3px rgba(57,61,68,.06);
  --shadow-md:   0 2px 4px rgba(57,61,68,.04), 0 8px 24px rgba(57,61,68,.06);
  --shadow-lg:   0 4px 8px rgba(57,61,68,.04), 0 16px 40px rgba(57,61,68,.08);
  --shadow-gold: 0 8px 24px rgba(199,175,93,.18);

  --transition: 200ms cubic-bezier(0.4,0,0.2,1);

  /* Legacy aliases for login/auth forms */
  --dc-primary:  var(--gold);
  --dc-accent:   var(--teal);
  --dc-bg:       var(--bg);
  --dc-card-bg:  var(--paper);
  --dc-text:     var(--ink);
  --dc-muted:    var(--beige);
  --dc-border:   var(--line);
  --dc-btn-text: var(--ink);
  --dc-radius:   var(--r-md);
  --dc-shadow:   var(--shadow-md);
  --dc-gap:      1.5rem;
}

/* ============================================================
   Global theme override — hello-biz aplica border:1px solid #c36 y color:#c36
   a TODOS los button/[type=button]/[type=submit].
   Como nuestro CSS carga último (prioridad 9999 en wp_enqueue_scripts)
   este reset de un solo nivel de especificidad siempre gana.
   Solo reseteamos border y color base; el fondo lo dejan los estilos propios
   de cada componente (WC, LP, DC LMS).
   ============================================================ */
/* Excluimos botones de MEJS: ellos usan sprite SVG como background y no deben
   heredar los resets de color/border. El selector :not() evita colisiones. */
button:not(.mejs__button):not([class*="mejs"]),
[type="button"]:not(.mejs__button):not([class*="mejs"]),
[type="submit"]:not([class*="mejs"]),
[type="reset"]:not([class*="mejs"]) {
  border-color: transparent;
  color: inherit;
}
/* Hover rosado del tema cancelado, excepto MEJS */
button:not([class*="mejs"]):hover,
[type="button"]:not([class*="mejs"]):hover,
[type="submit"]:not([class*="mejs"]):hover {
  background-color: transparent;
  border-color: transparent;
  color: inherit;
}
/* Anular color rosa de los <a> del tema.
   'inherit' hereda el color del padre (normalmente --ink: #2A2D33). */
a { color: inherit; }

/* ============================================================
   WordPress theme overrides — hide theme chrome on LMS pages
   ============================================================ */
body:has(.dc-app) .site-header,
body:has(.dc-app) header.site-header,
body:has(.dc-app) #masthead,
body:has(.dc-app) .site-footer,
body:has(.dc-app) footer.site-footer,
body:has(.dc-app) #colophon,
body:has(.dc-app) .elementor-location-header,
body:has(.dc-app) .elementor-location-footer,
body:has(.dc-app) [data-elementor-type="header"],
body:has(.dc-app) [data-elementor-type="footer"] { display: none !important; }

body:has(.dc-app) { background: var(--bg); overflow: hidden; }
body:has(.dc-app) #page,
body:has(.dc-app) .site,
body:has(.dc-app) .site-content,
body:has(.dc-app) #content,
body:has(.dc-app) .entry-content { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }

/* ============================================================
   App shell (sidebar + main)
   ============================================================ */
.dc-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Sidebar
   ============================================================ */
.dc-sidebar {
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}
.dc-sidebar::-webkit-scrollbar { width: 4px; }
.dc-sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* Brand */
.dc-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 8px 20px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}
.dc-sidebar-brand img { max-height: 64px; width: auto; }
.dc-sidebar-brand-placeholder {
  width: 100%;
  height: 64px;
  border-radius: var(--r-md);
  background: var(--gold-soft);
  border: 1px dashed var(--gold-light);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.5px;
}

/* Nav section labels */
.dc-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-light);
  padding: 16px 12px 8px;
}

.dc-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dc-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  text-decoration: none;
}
.dc-nav-item:hover { background: var(--bg); color: var(--ink); }
.dc-nav-item.active { background: var(--ink-soft); color: var(--paper); }
.dc-nav-item.active .dc-nav-icon { color: var(--gold); }
.dc-nav-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-mid); }
.dc-nav-item.active .dc-nav-icon { color: var(--gold); }
.dc-nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

/* Sidebar footer — user card */
.dc-sidebar-footer {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid var(--line-soft);
}
.dc-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--bg-warm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.dc-user-card:hover { background: var(--gold-soft); }
.dc-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: grid; place-items: center;
  color: var(--paper);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.dc-user-meta { flex: 1; min-width: 0; }
.dc-user-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-user-meta span { font-size: 11px; color: var(--ink-mid); }

/* ============================================================
   Main area
   ============================================================ */
.dc-main {
  overflow-y: auto;
  height: 100vh;
  background: var(--bg);
}
.dc-main::-webkit-scrollbar { width: 10px; }
.dc-main::-webkit-scrollbar-track { background: transparent; }
.dc-main::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 2px solid var(--bg); }
.dc-main::-webkit-scrollbar-thumb:hover { background: var(--beige); }

/* Page padding */
.dc-page {
  padding: 32px 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Fade-in animation */
@keyframes dcFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: dcFadeIn 360ms cubic-bezier(0.4,0,0.2,1) both; }

/* ============================================================
   Typography
   ============================================================ */
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.h-display em { font-style: italic; color: var(--gold-dark); font-weight: 400; }

.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.text-muted { color: var(--ink-mid); }

/* ============================================================
   Buttons (new design)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.btn svg { width: 14px; height: 14px; }

.btn-primary { background: var(--ink-soft); color: var(--paper); }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-gold); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-soft); }

.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold-dark); }
.btn-outline:hover { background: var(--gold); color: var(--ink); }

.btn-sm  { padding: 7px 14px;  font-size: 12px; }
.btn-lg  { padding: 14px 24px; font-size: 14px; }

/* ============================================================
   Badges (new design)
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
}
.badge-active { background: var(--teal-soft); color: var(--teal-dark); }
.badge-active::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-dark); box-shadow: 0 0 0 3px rgba(89,184,173,.2);
}
.badge-gold    { background: var(--gold-soft);  color: var(--gold-dark); }
.badge-neutral { background: var(--bg-warm); color: var(--ink-mid); border: 1px solid var(--line); }
.badge-new     { background: var(--ink); color: var(--gold); }

/* ============================================================
   Cards (new design)
   ============================================================ */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: var(--transition);
  overflow: hidden;
}
.card-hover { cursor: pointer; }
.card-hover:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ============================================================
   Section header
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.section-header-text { flex: 1; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.section-header p { color: var(--ink-mid); font-size: 13px; margin-top: 4px; }
.section-link {
  font-size: 13px; font-weight: 600; color: var(--gold-dark);
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none;
}
.section-link:hover { color: var(--ink); }

/* ============================================================
   Progress bars
   ============================================================ */
.progress {
  height: 6px;
  background: var(--line-soft);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: var(--r-pill);
  transition: width 600ms ease;
}
.progress-fill.teal { background: linear-gradient(90deg, var(--teal), var(--teal-dark)); }

/* ============================================================
   Dashboard — Hero / Greeting
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.hero-greeting {
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink) 100%);
  color: var(--paper);
  padding: 32px;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.hero-greeting::before {
  content: ""; position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,175,93,.25), transparent 70%);
}
.hero-greeting::after {
  content: ""; position: absolute;
  bottom: -120px; left: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(89,184,173,.12), transparent 70%);
}
.hero-greeting > * { position: relative; z-index: 1; }
.hero-greeting .eyebrow { color: var(--gold); }
.hero-greeting h1 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 40px;
  line-height: 1.05; letter-spacing: -0.5px;
  margin-bottom: 12px; color: var(--paper);
}
.hero-greeting h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-greeting p { color: rgba(255,255,255,.7); max-width: 380px; margin-bottom: 20px; font-size: 14px; line-height: 1.55; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

.hero-stats { display: flex; gap: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--gold); line-height: 1; }
.hero-stat span { font-size: 11px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; display: block; }

/* Continue card */
.continue-card {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: 24px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.continue-card-thumb {
  position: relative; height: 120px;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(45deg, rgba(199,175,93,.08) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--gold-soft), var(--beige-soft));
  display: grid; place-items: center; overflow: hidden;
}
.continue-card-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(199,175,93,.3), transparent 50%);
}
.play-button {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); display: grid; place-items: center;
  box-shadow: var(--shadow-md); cursor: pointer; transition: var(--transition);
  position: relative; z-index: 1;
}
.play-button:hover { transform: scale(1.05); }
.play-button svg { width: 18px; height: 18px; color: var(--gold-dark); margin-left: 2px; }

.continue-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.continue-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-mid); }

/* ============================================================
   Quick access tiles
   ============================================================ */
.quick-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.quick-tile {
  position: relative; padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; transition: var(--transition);
  overflow: hidden; display: flex; flex-direction: column; gap: 16px; min-height: 160px;
  text-decoration: none; color: inherit;
}
.quick-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, transparent 60%, var(--gold-soft));
  opacity: 0; transition: var(--transition); pointer-events: none;
}
.quick-tile:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quick-tile:hover::after { opacity: 1; }

.quick-tile-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-dark);
  position: relative; z-index: 1;
}
.quick-tile-icon.teal  { background: var(--teal-soft); color: var(--teal-dark); }
.quick-tile-icon.dark  { background: var(--ink-soft); color: var(--gold); }
.quick-tile-icon svg   { width: 22px; height: 22px; }

.quick-tile-body { position: relative; z-index: 1; }
.quick-tile-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.quick-tile-meta  { font-size: 12px; color: var(--ink-mid); display: flex; align-items: center; gap: 6px; }

.quick-tile-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-light); background: var(--bg-warm);
  transition: var(--transition); z-index: 1;
}
.quick-tile:hover .quick-tile-arrow { background: var(--gold); color: var(--ink); transform: rotate(-45deg); }
.quick-tile-arrow svg { width: 14px; height: 14px; }

/* ============================================================
   Course cards
   ============================================================ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px;
}

.course-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column;
  text-decoration: none;
}
.course-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.course-thumb { height: 160px; position: relative; background: var(--bg-warm); overflow: hidden; }
.course-thumb-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }

/* Decorative thumbnail patterns */
.thumb-gold    { background: radial-gradient(circle at 20% 30%, rgba(199,175,93,.5), transparent 50%), radial-gradient(circle at 80% 70%, rgba(89,184,173,.3), transparent 50%), linear-gradient(135deg,#E5D4A0,#C7AF5D); }
.thumb-teal    { background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.4), transparent 60%), linear-gradient(135deg,#59B8AD,#509C92); }
.thumb-dark    { background: repeating-linear-gradient(60deg,rgba(255,255,255,.05) 0 12px,transparent 12px 24px), linear-gradient(135deg,#393D44,#2A2D33); }
.thumb-beige   { background: radial-gradient(circle at 30% 70%, rgba(199,175,93,.5), transparent 60%), linear-gradient(135deg,#E8E3D0,#A7A085); }
.thumb-teal-lt { background: radial-gradient(circle at 60% 40%, rgba(89,184,173,.4), transparent 60%), linear-gradient(135deg,#DCF0EE,#A7A085); }
.thumb-gold-dk { background: repeating-linear-gradient(45deg,rgba(255,255,255,.06) 0 10px,transparent 10px 20px), linear-gradient(135deg,#927822,#C7AF5D); }

.course-thumb-overlay {
  position: absolute; inset: 0; padding: 14px;
  display: flex; justify-content: space-between; align-items: flex-start; z-index: 1;
}
.course-thumb-tag {
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 600; letter-spacing: 0.3px; color: var(--ink);
}
.course-thumb-duration {
  background: rgba(42,45,51,.85); color: var(--paper);
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 600; display: flex; align-items: center; gap: 4px;
  backdrop-filter: blur(8px);
}

.course-body {
  padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.course-category { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold-dark); }
.course-title    { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.course-desc     { font-size: 12px; color: var(--ink-mid); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.course-progress-block { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.course-progress-meta  { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-mid); }
.course-progress-meta strong { color: var(--ink); }

.course-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line-soft); margin-top: auto; }
.course-footer-meta { display: flex; gap: 12px; font-size: 11px; color: var(--ink-mid); }
.course-footer-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Course lock state */
.course-card.locked { opacity: .85; }
.course-lock-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-mid);
  padding: 6px 0; margin-top: auto;
}

/* Individual course price display */
.course-price {
  font-size: 15px; font-weight: 700;
  color: var(--ink-soft); font-family: var(--font-sans);
}
.course-price .woocommerce-Price-amount { color: var(--ink-soft); }
.course-price ins { text-decoration: none; }
.course-price del { color: var(--ink-mid); font-size: 12px; font-weight: 400; margin-right: 4px; }

/* Make div-based course cards feel like links */
.course-card { cursor: default; }
.course-card .course-thumb-link { cursor: pointer; }
.course-thumb-link .course-thumb { border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }

/* ============================================================
   Filter bar
   ============================================================ */
.filter-bar { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.filter-chip {
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper);
  font-size: 12px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans);
}
.filter-chip:hover { border-color: var(--gold); }
.filter-chip.active { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--paper); }
.filter-chip-count { background: rgba(0,0,0,.08); padding: 1px 6px; border-radius: var(--r-pill); font-size: 10px; }
.filter-chip.active .filter-chip-count { background: rgba(255,255,255,.18); }
.filter-spacer { flex: 1; }
.sort-select {
  padding: 7px 30px 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B6F77' stroke-width='2'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-mid); margin-bottom: 16px; }
.crumbs a { color: var(--ink-mid); cursor: pointer; transition: var(--transition); text-decoration: none; }
.crumbs a:hover { color: var(--gold-dark); }
.crumbs .sep { color: var(--ink-light); }
.crumbs strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Subprogramas — horizontal list
   ============================================================ */
.subprogram-list { display: flex; flex-direction: column; gap: 16px; }

.subprogram-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: var(--transition);
  cursor: pointer;
  align-items: center;
  text-decoration: none;
}
.subprogram-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: none; }

.subprogram-thumb {
  height: 110px; border-radius: var(--r-md);
  position: relative; overflow: hidden;
}
.subprogram-thumb-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,.95); padding: 3px 8px;
  border-radius: var(--r-pill); font-size: 10px; font-weight: 600; color: var(--ink);
}

.subprogram-info h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  color: var(--ink); margin: 0 0 6px; line-height: 1.15;
}
.subprogram-info p {
  font-size: 13px; color: var(--ink-mid); line-height: 1.55;
  margin-bottom: 12px; max-width: 540px;
}
.subprogram-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.subprogram-stats { display: flex; gap: 16px; font-size: 11px; color: var(--ink-mid); }
.subprogram-stats span { display: inline-flex; align-items: center; gap: 4px; }
.subprogram-stats svg { width: 12px; height: 12px; color: var(--gold-dark); }
.subprogram-progress-mini { margin-top: 12px; max-width: 360px; }
.subprogram-progress-pct { font-size: 11px; color: var(--ink-mid); margin-top: 4px; }

.subprogram-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; min-width: 140px; }
.subprogram-cta-note { font-size: 11px; color: var(--ink-mid); }

/* ============================================================
   Course detail
   ============================================================ */
.detail-hero {
  background: linear-gradient(135deg, var(--ink-soft), var(--ink));
  color: var(--paper); padding: 36px 40px;
  border-radius: var(--r-xl); margin-bottom: 24px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px;
  position: relative; overflow: hidden;
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(199,175,93,.18), transparent 50%), radial-gradient(circle at 0% 100%, rgba(89,184,173,.10), transparent 50%);
}
.detail-hero > * { position: relative; }
.detail-hero .eyebrow { color: var(--gold); }
.detail-hero h1 { font-family: var(--font-display); font-size: 38px; font-weight: 500; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 12px; }
.detail-hero p  { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }

.detail-meta { display: flex; gap: 24px; margin: 20px 0; flex-wrap: wrap; }
.detail-meta-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.7); }
.detail-meta-item svg { width: 14px; height: 14px; color: var(--gold); }
.detail-meta-item strong { color: var(--paper); }

.detail-progress-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 24px; align-self: center;
}
.detail-progress-card h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 12px; }
.detail-progress-circle { width: 120px; height: 120px; margin: 0 auto 16px; position: relative; }
.detail-progress-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.detail-progress-circle .percent {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--paper);
}

.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: flex-start; }

/* Modules */
.module { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; overflow: hidden; transition: var(--transition); }
.module:hover { border-color: var(--gold-light); }
.module-header { display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; user-select: none; }
.module-number {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-dark);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  flex-shrink: 0; border: 1px solid var(--gold-light);
}
.module.complete .module-number { background: var(--teal-soft); color: var(--teal-dark); border-color: var(--teal); }
.module-info { flex: 1; min-width: 0; }
.module-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.25; margin-bottom: 2px; }
.module-meta  { font-size: 11px; color: var(--ink-mid); }
.module-progress-mini { width: 80px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.module-progress-mini .progress { width: 100%; }
.module-progress-mini span { font-size: 10px; color: var(--ink-mid); font-weight: 600; }
.module-toggle { color: var(--ink-mid); transition: var(--transition); }
.module-toggle svg { width: 16px; height: 16px; }
.module-lessons { border-top: 1px solid var(--line-soft); background: var(--bg-warm); display: none; }
.module.open .module-toggle { transform: rotate(180deg); color: var(--gold-dark); }
.module.open .module-lessons { display: block; }

/* Lessons */
.lesson { display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 76px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: var(--transition); }
.lesson:last-child { border-bottom: none; }
.lesson:hover { background: var(--gold-soft); }
.lesson-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink-mid); flex-shrink: 0; }
.lesson.complete .lesson-icon { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.lesson.current  .lesson-icon { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lesson-icon svg { width: 12px; height: 12px; }
.lesson-info { flex: 1; min-width: 0; }
.lesson-title { font-size: 13px; font-weight: 500; color: var(--ink); }
.lesson.complete .lesson-title { color: var(--ink-mid); }
.lesson-meta { font-size: 11px; color: var(--ink-mid); display: flex; align-items: center; gap: 10px; margin-top: 2px; }

/* Info cards (sidebar in detail) */
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; }
.info-card h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.info-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.info-list svg { width: 14px; height: 14px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   Membresía — plan cards
   ============================================================ */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }

.plan-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: var(--transition);
}
.plan-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.plan-card.featured { border-color: var(--gold); background: linear-gradient(135deg, var(--ink-soft), var(--ink)); color: var(--paper); }
.plan-card.featured .plan-price,
.plan-card.featured .plan-title { color: var(--paper); }
.plan-card.featured .plan-desc,
.plan-card.featured .plan-feature { color: rgba(255,255,255,.75); }
.plan-card.featured .plan-feature svg { color: var(--gold); }

.plan-title  { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); }
.plan-desc   { font-size: 13px; color: var(--ink-mid); line-height: 1.55; }
.plan-price  { font-family: var(--font-display); font-size: 36px; font-weight: 500; color: var(--ink); }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--ink-mid); margin-left: 2px; font-family: var(--font-sans); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan-feature  { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.plan-feature svg { width: 14px; height: 14px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }

/* Active membership card */
.membership-active {
  background: linear-gradient(135deg, var(--ink-soft), var(--ink));
  color: var(--paper); padding: 28px;
  border-radius: var(--r-xl); margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.membership-active::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,175,93,.25), transparent 70%);
}
.membership-active > * { position: relative; }
.membership-active .eyebrow { color: var(--gold); margin-bottom: 8px; }
.membership-active h2 { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin-bottom: 4px; }
.membership-active .renewal { font-size: 12px; color: rgba(255,255,255,.7); }
.membership-active-meta { display: flex; gap: 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.membership-active-meta p { font-size: 12px; color: rgba(255,255,255,.7); }
.membership-active-meta strong { display: block; color: var(--paper); font-size: 14px; font-weight: 600; }

/* ============================================================
   Profile page
   ============================================================ */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: flex-start; }

.profile-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 28px; text-align: center;
}
.profile-avatar-lg {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  margin: 0 auto 16px; display: grid; place-items: center;
  color: var(--paper); font-family: var(--font-display);
  font-weight: 600; font-size: 32px;
  border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--gold-light);
}
.profile-name  { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.profile-email { font-size: 12px; color: var(--ink-mid); margin-bottom: 16px; }
.profile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.profile-stat strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); }
.profile-stat span   { font-size: 10px; color: var(--ink-mid); text-transform: uppercase; letter-spacing: 1px; }

.profile-section {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 24px; margin-bottom: 16px;
}
.profile-section h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.profile-section .section-desc { font-size: 12px; color: var(--ink-mid); margin-bottom: 18px; }

/* Form fields */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 600; color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.8px; }
.field input, .field-full input {
  padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--bg-warm);
  font-family: var(--font-sans); font-size: 13px; color: var(--ink);
  transition: var(--transition); width: 100%;
}
.field input:focus, .field-full input:focus {
  outline: none; border-color: var(--gold);
  background: var(--paper); box-shadow: 0 0 0 3px rgba(199,175,93,.12);
}
.field-full { display: flex; flex-direction: column; gap: 6px; }
.field-full label { font-size: 11px; font-weight: 600; color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.8px; }

/* ============================================================
   Comunidad / Feed
   ============================================================ */
.feed-grid { display: flex; flex-direction: column; gap: 16px; }
.feed-post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.feed-post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.feed-post-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-light));
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
  color: var(--gold-dark); flex-shrink: 0;
}
.feed-post-meta strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.feed-post-meta small  { font-size: 11px; color: var(--ink-mid); }
.feed-post-content { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.feed-post-image { margin-top: 12px; border-radius: var(--r-md); max-width: 100%; }

.new-post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 24px; }
.new-post-card h2 { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.dc-textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-warm); font-family: var(--font-sans);
  font-size: 13px; color: var(--ink); resize: vertical; min-height: 100px;
  transition: var(--transition);
}
.dc-textarea:focus { outline: none; border-color: var(--gold); background: var(--paper); }
.dc-file-input { margin: 10px 0; font-size: 12px; color: var(--ink-mid); }

.dc-loading { text-align: center; padding: 20px; color: var(--ink-mid); font-size: 13px; }
.dc-error   { color: var(--danger); font-size: 12px; margin-top: 8px; }

/* ============================================================
   Empty state (new design)
   ============================================================ */
.dc-empty {
  text-align: center; padding: 60px 20px;
  color: var(--ink-mid);
  background: var(--paper); border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.dc-empty p { font-size: 14px; margin: 0; }

/* Membresía vencida — empty state */
.dc-expired-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.dc-expired-icon { font-size: 2.5rem; margin-bottom: 16px; }
.dc-expired-state h3 {
  font: 600 1.3rem var(--font-display);
  color: var(--ink);
  margin: 0 0 10px;
}
.dc-expired-state p {
  font-size: .9rem;
  color: var(--ink-mid);
  margin: 0 0 24px;
  max-width: 360px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ============================================================
   Login page — standalone design (no sidebar)
   ============================================================ */
.dc-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem 1rem;
  font-family: var(--font-sans);
}
.dc-login-wrap {
  width: 100%;
  max-width: 420px;
}
.dc-login-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.dc-login-logo img  { max-height: 60px; width: auto; }
.dc-login-logo__text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--ink);
}

.dc-login-card {
  background: var(--paper);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Tabs */
.dc-login-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.dc-login-tab {
  flex: 1;
  padding: 14px;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.dc-login-tab:hover { color: var(--ink); background: var(--bg-warm); }
.dc-login-tab--active { color: var(--gold-dark); border-bottom-color: var(--gold); background: transparent; }

/* Panels */
.dc-login-panel { display: none; padding: 24px; }
.dc-login-panel--active { display: block; }
.dc-login-form { display: flex; flex-direction: column; gap: 1rem; }

/* Form fields */
.dc-form-field { display: flex; flex-direction: column; gap: 6px; }
.dc-form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dc-form-field label { font-size: 11px; font-weight: 600; color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.8px; }
.dc-form-field input,
.dc-form-field select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-warm);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  width: 100%;
  transition: var(--transition);
}
.dc-form-field input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(199,175,93,.12);
}
.dc-form-hint { font-size: 11px; color: var(--ink-mid); }

/* Password toggle */
.dc-pw-wrap { position: relative; }
.dc-pw-wrap input { padding-right: 44px; }
.dc-pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--ink-mid); padding: 4px; line-height: 0;
  transition: var(--transition);
}
.dc-pw-toggle:hover { color: var(--gold-dark); }
.dc-pw-icon { width: 18px; height: 18px; stroke: currentColor; fill: none; display: block; }

/* Buttons (login page uses dc-btn aliases) */
.dc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: 1px solid transparent; text-decoration: none;
  white-space: nowrap; letter-spacing: 0.2px;
}
.dc-btn--block { width: 100%; justify-content: center; }
.dc-btn--sm    { padding: 7px 14px; font-size: 12px; }
.dc-btn--lg    { padding: 14px 24px; font-size: 14px; }

.dc-lms-page .dc-btn--primary,
.dc-login-card .dc-btn--primary { background: var(--ink-soft) !important; color: var(--paper) !important; border: none !important; }
.dc-lms-page .dc-btn--primary:hover,
.dc-login-card .dc-btn--primary:hover { background: var(--ink) !important; }

.dc-btn--outline { background: transparent; border-color: var(--gold); color: var(--gold-dark); }
.dc-btn--outline:hover { background: var(--gold); color: var(--ink); }

/* Error / success messages */
.dc-login-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: .65rem .9rem; border-radius: var(--r-md);
  font-size: 12px;
}
.dc-login-success {
  background: #f0fdf4; border: 1px solid #86efac; color: #166534;
  padding: .65rem .9rem; border-radius: var(--r-md);
  font-size: 12px; margin-bottom: .5rem;
}
.dc-login-success-banner {
  background: var(--teal-soft); color: var(--teal-dark);
  padding: .75rem 1.25rem; font-size: 13px; font-weight: 500;
  border-bottom: 1px solid var(--teal);
}

/* Forgot password */
.dc-forgot-link {
  background: none; border: none; color: var(--ink-mid);
  font-size: .82rem; font-family: var(--font-sans);
  cursor: pointer; padding: 0; text-decoration: underline;
  display: block; text-align: center; margin-top: .25rem;
}
.dc-forgot-link:hover { color: var(--gold-dark); background: none; }
.dc-forgot-panel { padding: 1.5rem; }
.dc-forgot-desc  { font-size: .88rem; color: var(--ink-mid); margin-bottom: 1rem; line-height: 1.5; }

/* ============================================================
   Perfil — password form (uses dc-* classes)
   ============================================================ */
.dc-perfil-pw-section { max-width: 520px; }

/* ============================================================
   Theme override — hello-biz sets border: 1px solid #c36; color: #c36
   on ALL button/[type=submit]/[type=button] elements.
   The selectors below use .dc-app as a parent to raise specificity
   above the theme's 0,1,0 level and force our design tokens.
   ============================================================ */

/* Reset every native button inside the app shell */
.dc-app button,
.dc-app [type="button"],
.dc-app [type="submit"] {
    border-color: transparent !important;
    color: inherit !important;
    background-color: transparent !important;
    border-radius: var(--r-pill) !important;
}

/* Eye-toggle stays neutral */
.dc-app .dc-pw-toggle {
    border: none !important;
    background: none !important;
    color: var(--ink-mid) !important;
}
.dc-app .dc-pw-toggle:hover {
    color: var(--gold-dark) !important;
    background: none !important;
}

/* Primary button */
.dc-app .btn-primary,
.dc-app button.btn-primary,
.dc-app [type="submit"].btn-primary {
    background-color: var(--ink-soft) !important;
    color: var(--paper) !important;
    border: 1px solid transparent !important;
}
.dc-app .btn-primary:hover,
.dc-app button.btn-primary:hover,
.dc-app [type="submit"].btn-primary:hover {
    background-color: var(--ink) !important;
    color: var(--paper) !important;
}

/* Gold button */
.dc-app .btn-gold {
    background-color: var(--gold) !important;
    color: var(--ink) !important;
    border-color: transparent !important;
}
.dc-app .btn-gold:hover {
    background-color: var(--gold-dark) !important;
    color: var(--paper) !important;
}

/* Ghost & outline buttons — only reset border/bg to avoid clobbering hero inline color */
.dc-app .btn-ghost {
    background: transparent !important;
    border-color: var(--line) !important;
}
.dc-app .btn-ghost:hover {
    border-color: var(--gold) !important;
    background: var(--gold-soft) !important;
}
.dc-app .btn-outline {
    background: transparent !important;
    border-color: var(--gold) !important;
    color: var(--gold-dark) !important;
}
.dc-app .btn-outline:hover {
    background: var(--gold) !important;
    color: var(--ink) !important;
}

/* Login-page dc-btn--primary variant */
.dc-lms-page .dc-btn--primary,
.dc-login-card .dc-btn--primary {
    background: var(--ink-soft) !important;
    color: var(--paper) !important;
    border: none !important;
}
.dc-lms-page .dc-btn--primary:hover,
.dc-login-card .dc-btn--primary:hover {
    background: var(--ink) !important;
    color: var(--paper) !important;
}
.dc-lms-page .dc-forgot-link,
.dc-login-card .dc-forgot-link {
    border: none !important;
    color: var(--ink-mid) !important;
    background: none !important;
}
.dc-lms-page .dc-forgot-link:hover,
.dc-login-card .dc-forgot-link:hover {
    color: var(--gold-dark) !important;
    background: none !important;
}

/* ============================================================
   Cart icon — nav header & sidebar badge
   ============================================================ */
.dc-cart-link {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: inherit;
  padding: 6px 10px; border-radius: var(--r-pill);
  transition: var(--transition);
}
.dc-cart-link:hover { background: var(--gold-soft); color: var(--gold-dark); }
.dc-cart-icon { width: 20px; height: 20px; }

/* Cart count badge in WP nav */
.dc-nav-cart .dc-cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--ink);
  font-size: 10px; font-weight: 700; line-height: 1;
  width: 18px; height: 18px; border-radius: 50%;
  font-family: var(--font-sans);
}

/* ============================================================
   LearnPress — single course page design overrides
   ============================================================ */

/* Wrapper principal */
body.single-lp_course #learn-press-course,
body.single-lp_course .course-summary {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  font-family: var(--font-sans);
  color: var(--ink);
}

/* Layout en 2 columnas: contenido + sidebar */
body.single-lp_course .lp-content-area {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  body.single-lp_course .lp-content-area { grid-template-columns: 1fr; }
}

/* Sidebar de precios */
body.single-lp_course .lp-sidebar .lp-sidebar-inner,
body.single-lp_course .lp-sidebar .widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 24px;
}

/* Precio del curso */
body.single-lp_course .course-price .price,
body.single-lp_course .course-price,
body.single-lp_course .lp-course-price {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  font-family: var(--font-sans) !important;
  margin-bottom: 16px;
}
body.single-lp_course .course-price del,
body.single-lp_course .lp-course-price del {
  font-size: 18px !important;
  color: var(--ink-mid) !important;
  font-weight: 400 !important;
  margin-right: 8px;
}
body.single-lp_course .course-price ins,
body.single-lp_course .lp-course-price ins {
  text-decoration: none !important;
  color: var(--ink) !important;
}

/* Botón "Buy Now" / "Comprar" de LP — y el nuestro */
body.single-lp_course .lp-button.button-purchase-course,
body.single-lp_course .dc-wc-buy-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 14px 20px !important;
  background: var(--gold) !important;
  color: var(--ink) !important;
  border: none !important;
  border-radius: var(--r-pill) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: var(--font-sans) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
  letter-spacing: 0.3px !important;
}
body.single-lp_course .lp-button.button-purchase-course:hover,
body.single-lp_course .dc-wc-buy-btn:hover {
  background: var(--gold-dark) !important;
  color: var(--paper) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-gold) !important;
}

/* Botón "Start Now" / "Enroll" */
body.single-lp_course .lp-button.button-enroll-course {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 14px 20px !important;
  background: var(--ink-soft) !important;
  color: var(--paper) !important;
  border: none !important;
  border-radius: var(--r-pill) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: var(--font-sans) !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}
body.single-lp_course .lp-button.button-enroll-course:hover {
  background: var(--ink) !important;
  transform: translateY(-1px) !important;
}

/* Metadatos del curso (estudiantes, lecciones, duración…) */
body.single-lp_course .course-meta,
body.single-lp_course .lp-course-meta {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
body.single-lp_course .course-meta li,
body.single-lp_course .lp-course-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--bg-warm);
  padding-bottom: 10px;
}
body.single-lp_course .course-meta li:last-child { border-bottom: none; padding-bottom: 0; }
body.single-lp_course .course-meta .lp-icon,
body.single-lp_course .course-meta img { color: var(--gold); width: 16px; }

/* Título del curso */
body.single-lp_course .course-detail .course-title,
body.single-lp_course h1.course-title,
body.single-lp_course .lp-course-title {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  color: var(--ink) !important;
  line-height: 1.2 !important;
  margin-bottom: 16px !important;
}

/* Área de video / imagen destacada.
   LP usa prepend_attachment() → [video] shortcode → MEJS player nativo.
   MEJS setea width/height en línea via JS. No aplicar clip-path ni
   transform:translateZ(0) sobre contenedores de <video> — Chrome
   falla al compositar el frame de video en esos contextos (aparece estático). */
body.single-lp_course .course-media,
body.single-lp_course .lp-course-media {
  margin-bottom: 24px;
  background: #000;
}
body.single-lp_course .course-media iframe,
body.single-lp_course .lp-course-media iframe {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: var(--r-lg);
}
body.single-lp_course .course-media img,
body.single-lp_course .lp-course-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--r-lg);
}

/* Video player nativo de LP (lp-video-player) y MEJS wrapper */
body.single-lp_course .lp-video-player,
body.single-lp_course .lp-media-player {
  margin-bottom: 24px;
  background: #000;
}
body.single-lp_course .lp-video-player video,
body.single-lp_course .lp-video-player iframe { width: 100%; height: auto; display: block; }

/* ─── MEJS / wp-video: responsive 16:9 ───────────────────────────────────────
   Problema: MEJS fija width/height con inline styles (ej: height:1080px).
   Al contraer el ancho con max-width:100%, la altura no cambia, los controles
   (position:absolute;bottom:0) quedan lejos del frame visible y se ven sueltos.

   Solución: contenedor padre con aspect-ratio:16/9 + width:100%, MEJS
   container llena ese espacio con width:100%/height:100%.

   ⚠ NO agregar: overflow:hidden, clip-path, transform, filter ni backdrop-filter
   a ningún ancestro de <video>. Chrome falla al compositar y muestra estática. */

/* Selectors correctos para páginas LP:
   - body.single-lp_course  → página de curso
   - body.single-lp_lesson  → página de lección directa
   - body.viewing-course-item / body.course-item-popup → vista de lección en LP 4  */

body.single-lp_course .wp-video,
body.single-lp_lesson .wp-video {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  background: #000;
  border-radius: var(--r-lg);
}

/* MEJS outer container: clase real = .mejs-container (hyphen, no BEM double-underscore).
   Absoluto dentro de .wp-video, anula inline width/height que pone el JS. */
body.single-lp_course .mejs-container,
body.single-lp_lesson .mejs-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  background: #000 !important;
}

/* Inner layers que MEJS pone dentro del container */
body.single-lp_course .mejs-inner,
body.single-lp_lesson .mejs-inner,
body.single-lp_course .mejs-mediaplayer,
body.single-lp_lesson .mejs-mediaplayer {
  width: 100% !important;
  height: 100% !important;
}

/* Overlay de MEJS (play button, poster, etc.) */
body.single-lp_course .mejs-overlay,
body.single-lp_lesson .mejs-overlay {
  width: 100% !important;
  height: calc(100% - 40px) !important; /* descontar altura de controles */
}

/* El <video> en sí */
body.single-lp_course video.wp-video-shortcode,
body.single-lp_lesson video.wp-video-shortcode {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* MediaElement.js — ya no necesitamos el reset agresivo de botones porque el
   reset global los excluye explícitamente con :not([class*="mejs"]).
   Solo aseguramos que el border rosa del tema no aparezca en inputs internos. */
.mejs__container input[type="range"],
.mejs__time-rail,
.mejs__time-total,
.mejs__time-current {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
/* El MEJS inner y layers deben llenarse al 100% del container */
.mejs__inner,
.mejs__mediaplayer {
  width: 100%;
  height: 100%;
}

/* Sección Currículum */
body.single-lp_course .lp-course-curriculum,
body.single-lp_course .course-curriculum {
  margin-top: 32px;
}
/* Headings del currículum — override directo (no variables, que no soportan !important) */
body.single-lp_course .lp-course-curriculum h2,
body.single-lp_course .lp-course-curriculum h3,
body.single-lp_course .curriculum-title,
body.single-lp_course .course-curriculum h2,
body.single-lp_course .course-curriculum h3 {
  font-family: var(--font-display) !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #2A2D33 !important;
  margin-bottom: 16px !important;
}
/* Ítems que usan --lp-primary-color (normalmente teal por --thim-body-primary-color) */
body.single-lp_course .lp-course-curriculum .section-toggle,
body.single-lp_course .lp-course-curriculum .section-count-items,
body.single-lp_course .lp-course-curriculum .course-item-ico {
  color: #C7AF5D !important;  /* --gold */
}
/* Links dentro de LP que heredan el color rosa/rojo del tema hello-biz */
body.single-lp_course a,
.single-lp_course a {
  color: #2A2D33;
}
body.single-lp_course a:hover,
.single-lp_course a:hover {
  color: #C7AF5D;
}
body.single-lp_course .lp-section-header,
body.single-lp_course .curriculum-section-header {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-soft);
  transition: var(--transition);
  margin-bottom: 2px;
}
body.single-lp_course .lp-section-header:hover { background: var(--gold-soft); color: var(--gold-dark); }
body.single-lp_course .curriculum-section-item,
body.single-lp_course .lp-section-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bg-warm);
  font-size: 13px; color: var(--ink-soft);
  transition: var(--transition);
}
body.single-lp_course .curriculum-section-item:hover { color: var(--gold-dark); background: var(--gold-soft); }
body.single-lp_course .curriculum-section-item .lp-lock { color: var(--ink-mid); }
body.single-lp_course .curriculum-section-item .item-name { flex: 1; }
body.single-lp_course .curriculum-section-item .item-meta { font-size: 11px; color: var(--ink-mid); }

/* Ocultar elementos redundantes de LP que chocan con nuestro diseño */
body.single-lp_course .lp-archive-courses--pagination { display: none; }

/* ============================================================
   Mobile topbar + overlay
   ============================================================ */

/* Topbar: oculto en desktop, visible en mobile */
.dc-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.dc-topbar-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--ink);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dc-topbar-btn:hover { background: var(--bg); }

.dc-topbar-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.dc-topbar-logo img { max-height: 36px; width: auto; }

.dc-topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  border: 1px solid var(--gold-light);
}

/* Overlay */
.dc-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
/* Transitions Alpine */
.dc-overlay-enter      { transition: opacity 0.2s ease; }
.dc-overlay-enter-start{ opacity: 0; }
.dc-overlay-enter-end  { opacity: 1; }
.dc-overlay-leave      { transition: opacity 0.2s ease; }
.dc-overlay-leave-start{ opacity: 1; }
.dc-overlay-leave-end  { opacity: 0; }

/* Botón cerrar (solo mobile) */
.dc-sidebar-close {
  display: none;
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
}
.dc-sidebar-close:hover { background: var(--bg); color: var(--ink); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .dc-app { grid-template-columns: 220px 1fr; }
  .dc-page { padding: 24px 28px 60px; }
  .hero { grid-template-columns: 1fr; }
  .continue-card { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .subprogram-card { grid-template-columns: 160px 1fr auto; gap: 16px; }
}

@media (max-width: 768px) {
  /* Topbar visible */
  .dc-topbar { display: flex; }

  /* App: columna única, con espacio para el topbar */
  .dc-app { grid-template-columns: 1fr; }
  .dc-main { height: auto; overflow-y: auto; padding-top: 56px; }

  /* Sidebar: fuera de flujo, slide-in desde la izquierda */
  .dc-sidebar {
    display: flex !important;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 400;
    width: 280px;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s ease;
    box-shadow: none;
  }
  .dc-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
  }
  .dc-sidebar-close { display: flex; }

  .dc-page { padding: 20px 16px 60px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .subprogram-card { grid-template-columns: 1fr; }
  .subprogram-thumb { height: 160px; }
  .subprogram-cta { align-items: flex-start; }
  .plans-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .dc-login-page { padding: 1rem; }
  .quick-grid { grid-template-columns: 1fr; }
  .hero-greeting h1 { font-size: 30px; }
  .h-display { font-size: 28px; }
  .dc-form-row { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────
 * HYBRID LESSON PLAYER (DC LMS)
 * Layout limpio que reemplaza el popup de LearnPress.
 * ───────────────────────────────────────────────────────────────────────── */

/* Reset del lockdown de LP */
html:has(body.dc-lp-player),
body.dc-lp-player {
  overflow: auto !important;
  height: auto !important;
  min-height: 100% !important;
  position: static !important;
}
body.dc-lp-player #popup-course,
body.dc-lp-player #popup-header,
body.dc-lp-player #popup-sidebar,
body.dc-lp-player #popup-content,
body.dc-lp-player #popup-footer {
  display: none !important;
}

/* Variables locales del player (solo dimensiones; los colores usan tokens globales) */
.dc-lp-shell {
  --dc-lp-bar-h:     64px;
  --dc-lp-sidebar-w: 320px;

  display: block;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}

/* Top bar — mismo lenguaje que el header del dashboard */
.dc-lp-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  height: var(--dc-lp-bar-h);
  padding: 0 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.dc-lp-bar__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.dc-lp-bar__back:hover { color: var(--gold-dark); }
.dc-lp-bar__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-lp-bar__progress {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 170px;
}
.dc-lp-bar__progress-text {
  font-size: 0.8rem;
  color: var(--ink-mid);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.dc-lp-bar__progress-bar {
  width: 100px;
  height: 6px;
  background: var(--line-soft);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.dc-lp-bar__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width var(--transition);
}
.dc-lp-bar__toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: var(--transition);
}
.dc-lp-bar__toggle:hover { background: var(--bg-warm); border-color: var(--gold); }

/* Layout sidebar + content */
.dc-lp-layout {
  display: grid;
  grid-template-columns: var(--dc-lp-sidebar-w) 1fr;
  min-height: calc(100vh - var(--dc-lp-bar-h) - 200px);
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg);
}

/* Sidebar */
.dc-lp-sidebar {
  background: var(--paper);
  border-right: 1px solid var(--line);
}
.dc-lp-sidebar__inner {
  padding: 1.25rem 0.75rem;
  position: sticky;
  top: var(--dc-lp-bar-h);
  max-height: calc(100vh - var(--dc-lp-bar-h));
  overflow-y: auto;
}
.dc-lp-section {
  border-bottom: 1px solid var(--line-soft);
}
.dc-lp-section:last-child { border-bottom: none; }
.dc-lp-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.6rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  user-select: none;
  transition: color var(--transition);
}
.dc-lp-section__header:hover { color: var(--gold-dark); }
.dc-lp-section__header::-webkit-details-marker { display: none; }
.dc-lp-section__header::before {
  content: "▸";
  margin-right: 0.5rem;
  transition: transform var(--transition);
  color: var(--ink-light);
  font-size: 0.7rem;
}
.dc-lp-section[open] .dc-lp-section__header::before { transform: rotate(90deg); }
.dc-lp-section__title { flex: 1; }
.dc-lp-section__count {
  background: var(--bg-warm);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  color: var(--ink-mid);
  font-weight: 600;
}
.dc-lp-section__items {
  list-style: none;
  margin: 0;
  padding: 0 0 0.6rem 0;
}
.dc-lp-item { margin: 0; padding: 0; }
.dc-lp-item__link {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background var(--transition), color var(--transition);
}
.dc-lp-item__link:hover { background: var(--bg-warm); color: var(--ink); }
.dc-lp-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--ink-light);
  font-weight: 700;
  transition: var(--transition);
}
.dc-lp-item.is-done .dc-lp-item__icon {
  background: var(--gold);
  color: var(--paper);
  border-color: var(--gold);
}
.dc-lp-item.is-done .dc-lp-item__link { color: var(--ink-mid); }
.dc-lp-item.is-current .dc-lp-item__link {
  background: var(--gold-soft);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--gold-dark);
}
.dc-lp-item.is-current .dc-lp-item__icon {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--paper);
}
.dc-lp-item__title { color: inherit; }
.dc-lp-item__duration {
  font-size: 0.7rem;
  color: var(--ink-light);
  font-weight: 500;
}

/* Content */
.dc-lp-content {
  padding: 2.5rem 2.5rem 4rem;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}
.dc-lp-content__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.dc-lp-content__title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.dc-lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.dc-lp-badge--done {
  background: var(--gold-soft);
  color: var(--gold-dark);
}

/* Video */
.dc-lp-video {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}
.dc-lp-video video,
.dc-lp-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Body / contenido */
.dc-lp-content__body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.dc-lp-content__body p { margin: 0 0 1.1em; }
.dc-lp-content__body h1,
.dc-lp-content__body h2,
.dc-lp-content__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  letter-spacing: -0.005em;
}
.dc-lp-content__body h1 { font-size: 1.9rem; }
.dc-lp-content__body h2 { font-size: 1.55rem; }
.dc-lp-content__body h3 { font-size: 1.25rem; }
.dc-lp-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
}
.dc-lp-content__body a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 3px;
}
.dc-lp-content__body a:hover { text-decoration-color: var(--gold-dark); }
.dc-lp-content__body blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 1rem;
  margin: 1.5rem 0;
  color: var(--ink-mid);
  font-style: italic;
}

/* Footer / nav */
.dc-lp-content__footer {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
}
.dc-lp-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}
.dc-lp-nav > a:first-child { justify-self: start; }
.dc-lp-nav > a:last-child  { justify-self: end; }
.dc-lp-complete { justify-self: center; }
.dc-lp-complete[data-done="1"] {
  background: var(--success);
  border-color: var(--success);
  color: var(--paper);
  cursor: default;
}
.dc-lp-complete.is-loading {
  opacity: 0.7;
  cursor: progress;
}

/* Estados (404 + paywall + curso vacío) — empty state del dashboard */
.dc-lp-empty,
.dc-lp-paywall {
  max-width: 640px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.dc-lp-empty h1,
.dc-lp-paywall h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.dc-lp-empty p,
.dc-lp-paywall p {
  color: var(--ink-mid);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}
.dc-lp-paywall__cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* Responsive: ≤900px sidebar como drawer */
@media (max-width: 900px) {
  .dc-lp-bar__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .dc-lp-bar__back-text { display: none; }
  .dc-lp-bar__title { font-size: 1.15rem; }
  .dc-lp-layout { grid-template-columns: 1fr; }
  .dc-lp-sidebar {
    position: fixed;
    top: var(--dc-lp-bar-h);
    left: 0;
    bottom: 0;
    width: min(85vw, var(--dc-lp-sidebar-w));
    transform: translateX(-100%);
    transition: transform var(--transition);
    z-index: 40;
    box-shadow: var(--shadow-lg);
  }
  .dc-lp-sidebar.is-open { transform: translateX(0); }
  .dc-lp-content { padding: 1.75rem 1.25rem 3rem; }
  .dc-lp-content__title { font-size: 1.75rem; }
}

@media (max-width: 600px) {
  .dc-lp-bar { grid-template-columns: auto 1fr auto; padding: 0 0.85rem; }
  .dc-lp-bar__progress { display: none; }
  .dc-lp-nav { grid-template-columns: 1fr; }
  .dc-lp-nav > * { justify-self: stretch !important; }
}

/* ─────────────────────────────────────────────────────────────────────────
 * SINGLE DE CURSO (Hito 7) — extiende el lenguaje del player.
 * ───────────────────────────────────────────────────────────────────────── */

/* En el single, el site-header del tema ES la navegación primaria.
   Nuestro top bar fluye con el contenido (NO sticky) y reduce su peso visual. */
.dc-lp-course .dc-lp-bar {
  position: relative;
  top: auto;
  z-index: auto;
  grid-template-columns: auto 1fr auto auto;
  height: auto;
  min-height: 48px;
  padding: 0.6rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: none;
}
.dc-lp-course .dc-lp-bar__title {
  /* El título grande está en el hero — aquí solo lo mostramos en mobile como
     breadcrumb minimalista. En desktop lo ocultamos para evitar duplicado. */
  display: none;
}
.dc-lp-course .dc-lp-bar__back {
  font-size: 0.85rem;
  color: var(--ink-mid);
}
.dc-lp-course .dc-lp-bar__back:hover { color: var(--gold-dark); }

/* Hero */
.dc-lp-course__hero {
  background: linear-gradient(135deg, var(--paper) 0%, var(--bg-warm) 100%);
  border-bottom: 1px solid var(--line);
  padding: 3rem 1.5rem;
}
.dc-lp-course__hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.5fr;
  gap: 2.5rem;
  align-items: center;
}
.dc-lp-course__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-warm);
}
.dc-lp-course__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dc-lp-course__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dc-lp-course__title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.dc-lp-course__excerpt {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0;
}
.dc-lp-course__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.dc-lp-course__stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.dc-lp-course__stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--gold-dark);
  line-height: 1;
}
.dc-lp-course__stat-label {
  font-size: 0.78rem;
  color: var(--ink-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.dc-lp-course__progress {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dc-lp-course__progress-text {
  font-size: 0.85rem;
  color: var(--ink-mid);
  font-weight: 500;
}
.dc-lp-course__progress-bar {
  width: 100%;
  height: 8px;
  background: var(--line-soft);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.dc-lp-course__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width var(--transition);
}
.dc-lp-course__cta {
  align-self: flex-start;
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
}

/* Curriculum */
.dc-lp-course__curriculum,
.dc-lp-course__description {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.dc-lp-course__section-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.dc-lp-course__section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.dc-lp-course__section .dc-lp-section__header { padding: 1rem 1.25rem; }
.dc-lp-course__section .dc-lp-section__items   { padding: 0 0.75rem 0.75rem; }

/* Items con candado (sin acceso) */
.dc-lp-item.is-locked .dc-lp-item__link {
  cursor: not-allowed;
  opacity: 0.6;
}
.dc-lp-item.is-locked .dc-lp-item__link:hover { background: transparent; }
.dc-lp-item.is-locked .dc-lp-item__icon {
  background: var(--bg-warm);
  border-color: var(--line);
  color: var(--ink-light);
}

/* Descripción larga */
.dc-lp-course__description .dc-lp-content__body { max-width: none; }

/* Responsive */
@media (max-width: 900px) {
  .dc-lp-course__hero { padding: 2rem 1.25rem; }
  .dc-lp-course__hero-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .dc-lp-course__title { font-size: 1.9rem; }
  .dc-lp-course__stats { gap: 1.25rem; }
}

@media (max-width: 600px) {
  .dc-lp-course__hero { padding: 1.5rem 1rem; }
  .dc-lp-course__title { font-size: 1.6rem; }
  .dc-lp-course__excerpt { font-size: 0.95rem; }
  .dc-lp-course__stat-num { font-size: 1.4rem; }
  .dc-lp-course__curriculum,
  .dc-lp-course__description { padding: 1.75rem 1rem; }
  .dc-lp-course__section-title { font-size: 1.4rem; }
  .dc-lp-course .dc-lp-bar { padding: 0.5rem 1rem; }
}

/* ── Validación inline de campos (registro) ── */
.dc-form-field input.dc-field--valid,
.dc-form-field .dc-pw-wrap:has(input.dc-field--valid) {
  border-color: #22c55e;
  outline-color: #22c55e;
}
.dc-form-field input.dc-field--error,
.dc-form-field .dc-pw-wrap:has(input.dc-field--error) {
  border-color: #ef4444;
  outline-color: #ef4444;
}
/* aplicar borde al wrap directamente cuando tiene inputs con clase */
.dc-pw-wrap:has(input.dc-field--valid)  { border: 1.5px solid #22c55e; border-radius: 8px; }
.dc-pw-wrap:has(input.dc-field--error)  { border: 1.5px solid #ef4444; border-radius: 8px; }
.dc-field-msg {
  display: none;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.3;
}
.dc-field-msg--error {
  display: block;
  color: #ef4444;
}
.dc-field-msg--error a {
  color: #ef4444;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

/* ── Botón "Añadir al carrito" — cursos individuales ── */
.dc-btn-add-to-cart,
.dc-btn-add-to-cart:visited {
  background-color: #e9e6ed !important;
  color: #515151 !important;
  border-color: #e9e6ed !important;
}
.dc-btn-add-to-cart:hover,
.dc-btn-add-to-cart:focus {
  background-color: #d9d4e0 !important;
  color: #515151 !important;
  border-color: #d9d4e0 !important;
}

/* ── Hito 10: Ciclo de vida de membresías ── */

/* Modal backdrop */
.dc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.dc-modal-card {
  background: var(--card-bg, #fff);
  border-radius: var(--radius, 10px);
  padding: 2rem;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}
.dc-modal-card { position: relative; }
.dc-modal-card h3 { margin: 0 0 .75rem; padding-right: 2rem; }
.dc-modal-card > div > p { color: var(--ink-mid, #555); margin: 0 0 1.25rem; }

/* Botón cerrar (×) */
.dc-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-mid, #888);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.dc-modal-close:hover { background: var(--line, #eee); color: var(--ink, #333); }
.dc-modal-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.dc-modal-error   { color: #ef4444; font-size: .875rem; margin-top: .5rem; }
.dc-modal-success { text-align: center; }
.dc-modal-success p { margin: 0 0 1rem; }

/* Botón cancelar (outline rojo) */
.dc-btn-cancel {
  background: none;
  border: 1.5px solid #ef4444;
  color: #ef4444;
  border-radius: var(--radius, 10px);
  padding: .45rem 1.1rem;
  font-size: .875rem;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
  line-height: 1.4;
}
.dc-btn-cancel:hover { background: #fef2f2; }

/* Botón confirmar cancelación (relleno rojo) */
.dc-btn-cancel-confirm {
  background: #ef4444;
  border: none;
  color: #fff;
  border-radius: var(--radius, 10px);
  padding: .45rem 1.1rem;
  font-size: .875rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}
.dc-btn-cancel-confirm:disabled { opacity: .65; cursor: not-allowed; }

/* Badge de membresía cancelada (ámbar) */
.badge-cancelled {
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: .75rem;
  font-weight: 600;
  display: inline-block;
}

/* Stripe auto-renewal indicator inside .membership-active */
.dc-memb-stripe {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin-top: 8px;
}
.dc-memb-stripe-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.dc-memb-stripe-dot--cancelled {
  background: rgba(255,255,255,.35);
}

/* Estado de membresía problemático (vencida, pago_fallido, pausada) */
.dc-memb-estado {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  padding: 2rem 1.75rem;
  max-width: 520px;
  text-align: center;
  margin-bottom: 2rem;
}
.dc-memb-estado__icon  { font-size: 2.5rem; margin-bottom: .75rem; }
.dc-memb-estado__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: .5rem; color: var(--ink); }
.dc-memb-estado__msg   { color: var(--ink-mid); font-size: .9rem; line-height: 1.6; margin-bottom: 1.25rem; }
.dc-memb-estado--danger { border-color: #fca5a5; background: #fff5f5; }
.dc-memb-estado--danger .dc-memb-estado__title { color: #b91c1c; }
.dc-memb-estado--warning { border-color: var(--gold-light); background: var(--gold-soft); }
.dc-memb-estado--warning .dc-memb-estado__title { color: var(--gold-dark); }

/* Mini card de membresía en perfil */
.dc-membresia-card-mini {
  border: 1px solid var(--border, #e8e4dd);
  border-radius: var(--radius, 10px);
  padding: 1rem 1.25rem;
}
.dc-membresia-card-mini__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.dc-memb-nivel {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted, #A7A085);
}
.dc-membresia-card-mini__fecha {
  font-size: .875rem;
  color: var(--ink-mid, #555);
  margin: 0 0 .75rem;
}

/* x-cloak: ocultar elementos Alpine hasta que estén listos */
[x-cloak] { display: none !important; }

/* Subprograma card — estado bloqueado (sin membresía) */
.subprogram-card--locked {
  opacity: .72;
  cursor: default;
  pointer-events: none; /* deshabilitar hover */
}
.subprogram-card--locked .subprogram-cta a {
  pointer-events: all; /* el botón "Ver membresías" sí debe ser clickable */
}
.subprogram-lock-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.45);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.subprogram-lock-icon svg { width: 16px; height: 16px; }

/* ============================================================
   Eventos
   ============================================================ */

.events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.event-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.event-card:hover { box-shadow: var(--shadow-md); }

/* Badge de fecha — más compacto y con más contraste */
.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gold-dark);
  border-radius: var(--r-sm);
  padding: 7px 4px;
  min-width: 52px;
  text-align: center;
}
.event-day {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.event-month {
  font-family: var(--font-sans);
  font-size: .62rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 3px;
}

.event-info { min-width: 0; }
.event-meta {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-mid);
  margin-bottom: 2px;
}
.event-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-desc {
  font-size: .8rem;
  color: var(--ink-mid);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botones: columna — se adaptan al más ancho, mismo alto garantizado */
.event-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  flex-shrink: 0;
  min-width: 0;
}
/* Tipografía y dimensiones idénticas para ambos botones */
.event-actions .btn,
.event-actions .dc-cal-dropdown > .btn {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  /* Tipografía igualada */
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  /* Padding igual → mismo alto */
  padding: 9px 16px;
}

/* Dropdown "Añadir al calendario" */
.dc-cal-dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
}

.dc-cal-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 200;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  min-width: 100%;
  overflow: hidden;
}
.dc-cal-menu a {
  display: block;
  padding: 9px 14px;
  font-size: .82rem;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s;
}
.dc-cal-menu a:hover { background: var(--bg-warm); }

/* Responsive */
@media (max-width: 700px) {
  .event-card {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
  }
  .event-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    width: 100%;
  }
  .event-actions .btn,
  .event-actions .dc-cal-dropdown { flex: 1; }
  .dc-cal-menu { left: 0; right: auto; min-width: 180px; }
}

/* ── Shortcodes [dc_lms_membresias] y [dc_lms_cursos] ── */

/* Contenedor raíz */
.dc-lms-sc { width: 100%; }

/*
 * Grid — funciona con el HTML nuevo (.dc-lms-sc__grid)
 * Y con el HTML legacy de WC/Elementor usando :has() para no romper otros grids WC.
 * :has() soportado en Chrome 105+, Firefox 121+, Safari 15.4+
 */
.dc-lms-sc__grid,
ul.products:has(> li.dc-membresia),
ul.products:has(> li.dc-curso-individual) {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Neutralizar los floats y anchos que WC y Elementor ponen en cada <li> */
.dc-lms-sc__grid > li,
ul.products:has(> li.dc-membresia) > li,
ul.products:has(> li.dc-curso-individual) > li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
}

/* Cards de membresía */
.dc-lms-sc--membresias .dc-membresia {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .2s, border-color .2s;
  height: 100%;
  box-sizing: border-box;
}
.dc-lms-sc--membresias .dc-membresia:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.dc-lms-sc--membresias .dc-membresia a { text-decoration: none; color: inherit; display: block; }
.dc-lms-sc--membresias .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin: .5rem 0 .25rem;
  color: var(--ink);
}
.dc-lms-sc--membresias .price { font-size: 1.1rem; font-weight: 700; color: var(--gold-dark); }
.dc-lms-sc--membresias .dc-periodo { font-size: .8rem; font-weight: 400; color: var(--ink-mid); margin-left: 2px; }
.dc-lms-sc--membresias .woocommerce-LoopProduct-link img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; display: block; }
.dc-lms-sc--membresias .woocommerce-loop-product__buttons { margin-top: auto; padding-top: .75rem; }
.dc-lms-sc--membresias .button {
  display: block; width: 100%; box-sizing: border-box;
  background: var(--gold); color: var(--ink); border: none;
  border-radius: var(--radius, 10px); padding: .6rem 1rem;
  font-weight: 600; font-size: .9rem; font-family: inherit;
  text-align: center; cursor: pointer; transition: background .2s; text-decoration: none;
}
.dc-lms-sc--membresias .button:hover { background: var(--gold-dark); color: var(--paper); }

/* Cards de cursos individuales */
.dc-lms-sc--cursos .dc-curso-individual {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
  height: 100%;
  box-sizing: border-box;
}
.dc-lms-sc--cursos .dc-curso-individual:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.dc-lms-sc--cursos .dc-curso-individual a { text-decoration: none; color: inherit; }
.dc-lms-sc--cursos .woocommerce-loop-product__link img { width: 100%; height: 180px; object-fit: cover; display: block; }
.dc-lms-sc--cursos .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  padding: .75rem 1rem .25rem;
  color: var(--ink);
  margin: 0;
}
.dc-lms-sc--cursos .price { padding: 0 1rem .5rem; font-weight: 700; color: var(--gold-dark); display: block; }
.dc-lms-sc--cursos .woocommerce-loop-product__buttons { margin-top: auto; padding: .75rem 1rem 1rem; }
.dc-lms-sc--cursos .button {
  display: block; width: 100%; box-sizing: border-box;
  background: var(--ink-soft); color: var(--paper); border: none;
  border-radius: var(--radius, 10px); padding: .6rem 1rem;
  font-weight: 600; font-size: .9rem; font-family: inherit;
  text-align: center; cursor: pointer; transition: background .2s; text-decoration: none;
}
.dc-lms-sc--cursos .button:hover { background: var(--ink); }

/* Responsive shortcodes */
@media (max-width: 960px) {
  .dc-lms-sc__grid,
  ul.products:has(> li.dc-membresia),
  ul.products:has(> li.dc-curso-individual) { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
}
@media (max-width: 600px) {
  .dc-lms-sc__grid,
  ul.products:has(> li.dc-membresia),
  ul.products:has(> li.dc-curso-individual) { grid-template-columns: 1fr !important; gap: 16px; }
}

/* ============================================================
   DC Checkout (/pago)
   Layout de dos columnas: resumen a la derecha, formulario a la izquierda.
   Sin sidebar para mantener el foco en el proceso de pago.
   ============================================================ */

/* Ocultar elementos del tema que interfieren con el flujo de checkout */
#dc-checkout-page ~ * { display: none !important; }
body:has(#dc-checkout-page) .site-header,
body:has(#dc-checkout-page) .elementor-location-header,
body:has(#dc-checkout-page) header.site-header { display: none !important; }

.dc-checkout-wrap {
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-sans);
}

/* Header */
.dc-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.dc-checkout-logo { display: flex; align-items: center; text-decoration: none; }
.dc-checkout-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }

.dc-checkout-header-center {
  flex: 1;
  text-align: center;
}

.dc-checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  color: var(--ink-mid);
  font-weight: 500;
}

.dc-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}
.dc-checkout-back:hover { color: var(--gold); }

/* Body — two-column grid */
.dc-checkout-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-areas: "form summary";
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  gap: 40px;
  align-items: start;
}

/* Resumen del pedido */
.dc-checkout-summary {
  grid-area: summary;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 80px;
}

.dc-checkout-summary-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
}

.dc-checkout-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.dc-checkout-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}

.dc-checkout-item-info { flex: 1; }
.dc-checkout-item-name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}
.dc-checkout-item-price {
  font-size: .9375rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.dc-checkout-item-periodo {
  font-size: .8rem;
  font-weight: 400;
  color: var(--ink-mid);
}

.dc-checkout-summary-divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.dc-checkout-totals { display: flex; flex-direction: column; gap: 8px; }

.dc-checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--ink-mid);
}
.dc-checkout-total-row--discount { color: var(--success); }
.dc-checkout-total-row--total {
  font-size: 1rem;
  color: var(--ink);
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.dc-checkout-secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--r-sm);
  font-size: .8125rem;
  color: var(--ink-mid);
}

/* Formulario WC */
.dc-checkout-form-wrap {
  grid-area: form;
}

/* Limpiar estilos del tema que rompen el checkout */
.dc-checkout-form-wrap .woocommerce { font-family: var(--font-sans); }
.dc-checkout-form-wrap .woocommerce-checkout { margin: 0; }
.dc-checkout-form-wrap .woocommerce-form-row { margin-bottom: 16px; }
.dc-checkout-form-wrap .woocommerce-form-row label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}
.dc-checkout-form-wrap .woocommerce-form-row input,
.dc-checkout-form-wrap .woocommerce-form-row select,
.dc-checkout-form-wrap .woocommerce-form-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color var(--transition);
}
.dc-checkout-form-wrap .woocommerce-form-row input:focus,
.dc-checkout-form-wrap .woocommerce-form-row select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Secciones del checkout */
.dc-checkout-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

/* Botón de pagar */
.dc-checkout-form-wrap #place_order,
.dc-checkout-form-wrap .wc-block-components-checkout-place-order-button {
  width: 100%;
  background: var(--gold) !important;
  color: var(--ink) !important;
  border: none !important;
  border-radius: var(--r-md) !important;
  padding: 14px 24px !important;
  font-family: var(--font-sans) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background var(--transition) !important;
  letter-spacing: .02em;
}
.dc-checkout-form-wrap #place_order:hover,
.dc-checkout-form-wrap .wc-block-components-checkout-place-order-button:hover {
  background: var(--gold-dark) !important;
}

/* Métodos de pago — ocultar selector si solo hay uno */
.dc-checkout-form-wrap .wc_payment_methods.payment_methods.methods > li:first-child:last-child > label {
  display: none;
}
.dc-checkout-form-wrap .wc_payment_methods.payment_methods.methods > li:first-child:last-child input[type="radio"] {
  display: none;
}

/* Responsive checkout */
@media (max-width: 860px) {
  .dc-checkout-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "form";
    padding: 24px 16px 60px;
    gap: 24px;
  }
  .dc-checkout-summary { position: static; }
  .dc-checkout-header { padding: 0 16px; }
  .dc-checkout-header-center { display: none; }
}
@media (max-width: 480px) {
  .dc-checkout-body { padding: 16px 12px 48px; }
  .dc-checkout-summary { padding: 20px; }
}
