/* ========================================
   ADB · Tema claro · Morado + Azul · Poppins
   Un solo CSS · index, dashboard, course
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #f0eff8;
  --bg-page: #f8f7fc;
  --bg-card: #ffffff;
  --bg-card-hover: #faf9ff;
  --purple: #7c3aed;
  --purple-bright: #6d28d9;
  --blue: #4f46e5;
  --blue-deep: #3730a3;
  --gradient: linear-gradient(135deg, var(--purple-bright), var(--blue));
  --gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(79, 70, 229, 0.06));
  --text: #1a1a2e;
  --text-muted: #5a5a7a;
  --text-soft: #2d2d44;
  --border: rgba(124, 58, 237, 0.2);
  --glow: 0 4px 20px rgba(124, 58, 237, 0.15);
  --glow-strong: 0 8px 28px rgba(124, 58, 237, 0.22);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --radius-lg: 18px;
  --transition: 0.2s ease;
  --success: #059669;
  --danger: #dc2626;
  --accent-completed: #7c3aed;
  --accent-completed-glow: rgba(124, 58, 237, 0.25);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 70% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 100%, rgba(79, 70, 229, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-page) 0%, var(--bg-deep) 100%);
  color: var(--text-soft);
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.course-shell { padding: 2rem 0 3rem; }

/* ---- NAVBAR ---- */
.main-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.main-navbar .navbar-brand { font-size: 1.05rem; }

.main-navbar .navbar-brand img.navbar-brand-logo,
.main-navbar .navbar-brand .navbar-brand-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) saturate(100%);
}

.brand-name { color: var(--text); }

.navbar-toggler {
  border-color: var(--border);
  color: var(--text);
}
.navbar-toggler-icon { filter: none; opacity: 0.85; }

.main-navbar .nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--text); }

/* Nav search + filters */
.nav-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  max-width: 560px;
  margin: 0 1.5rem;
}

.nav-search-bar .search-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
}

.nav-search-bar .search-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.nav-search-bar .search-wrap input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-search-bar .search-wrap input::placeholder { color: var(--text-muted); opacity: 0.8; }
.nav-search-bar .search-wrap input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.nav-filters { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.nav-filter-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: var(--gradient-subtle);
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-filter-chip:hover {
  background: rgba(124, 58, 237, 0.12);
  color: var(--text);
  border-color: rgba(124, 58, 237, 0.35);
}
.nav-filter-chip.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
}

.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.nav-logout-btn {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--purple);
  color: var(--text);
  background: transparent;
  transition: all var(--transition);
}
.nav-logout-btn:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
}

.btn-outline-primary {
  border-color: var(--purple);
  color: var(--text);
  transition: all var(--transition);
}
.btn-outline-primary:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .nav-search-bar {
    flex-direction: column;
    max-width: none;
    margin: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .nav-search-bar .search-wrap { width: 100%; }
  .nav-filters { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}

.nav-user-block { border-top: 1px solid var(--border); }
@media (min-width: 992px) {
  .nav-user-block { border-top: none; padding-top: 0; margin-top: 0; }
}

/* ---- DASHBOARD (tienda de cursos) ---- */
.dashboard-hero {
  position: relative;
  background: linear-gradient(135deg, var(--purple-bright) 0%, var(--blue) 50%, var(--blue-deep) 100%);
  padding: 3rem 0;
  overflow: hidden;
}

.dashboard-hero-inner {
  position: relative;
  z-index: 2;
}

.dashboard-hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.dashboard-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.dashboard-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.25rem 0;
  max-width: 420px;
}

.dashboard-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-hero-stat {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.dashboard-hero-stat strong {
  color: #fff;
  font-weight: 700;
}

.dashboard-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.dash-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.dash-shape-1 {
  width: 320px;
  height: 320px;
  top: -100px;
  right: -80px;
}

.dash-shape-2 {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: -40px;
}

/* Barra de búsqueda y filtros */
.dashboard-toolbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.dashboard-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.dashboard-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.dashboard-search-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.dashboard-search-wrap input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-page);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.dashboard-search-wrap input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.dashboard-search-wrap input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  background: var(--bg-card);
}

.dashboard-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text-muted);
}

.dashboard-filter-pill:hover {
  background: var(--gradient-subtle);
  color: var(--text);
  border-color: rgba(124, 58, 237, 0.3);
}

.dashboard-filter-pill.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
}

.dashboard-catalog {
  padding-bottom: 3rem;
}

.dashboard-section-head {
  margin-bottom: 1.75rem;
}

.dashboard-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.dashboard-section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tarjetas tipo tienda */
.store-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  animation: lc-fadeInUp 0.4s ease backwards;
}

.store-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-strong);
  border-color: rgba(124, 58, 237, 0.35);
}

.store-card:hover .store-card-image {
  transform: scale(1.05);
}

.store-card:hover .store-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.store-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-deep);
  transition: transform 0.4s ease;
}

.store-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.store-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.store-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple-bright);
}

.store-card-body {
  padding: 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.store-card-code {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.store-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.store-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.store-card-meta i {
  color: var(--purple-bright);
  font-size: 0.9rem;
}

.store-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-bright);
  margin-top: auto;
  padding-top: 0.75rem;
  transition: gap 0.2s ease;
}

.store-card:hover .store-card-cta {
  gap: 0.6rem;
}

.store-card-cta i {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.store-card:hover .store-card-cta i {
  transform: translateX(4px);
}

#coursesGrid > *:nth-child(1) .store-card { animation-delay: 0.03s; }
#coursesGrid > *:nth-child(2) .store-card { animation-delay: 0.06s; }
#coursesGrid > *:nth-child(3) .store-card { animation-delay: 0.09s; }
#coursesGrid > *:nth-child(4) .store-card { animation-delay: 0.12s; }
#coursesGrid > *:nth-child(5) .store-card { animation-delay: 0.15s; }
#coursesGrid > *:nth-child(6) .store-card { animation-delay: 0.18s; }
#coursesGrid > *:nth-child(7) .store-card { animation-delay: 0.21s; }
#coursesGrid > *:nth-child(8) .store-card { animation-delay: 0.24s; }
#coursesGrid > *:nth-child(9) .store-card { animation-delay: 0.27s; }
#coursesGrid > *:nth-child(10) .store-card { animation-delay: 0.3s; }

.dashboard-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.dashboard-empty i {
  font-size: 3rem;
  color: var(--purple);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.dashboard-empty h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-empty p {
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 991px) {
  .dashboard-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-search-wrap { max-width: none; }
}

@media (max-width: 576px) {
  .dashboard-hero { padding: 2rem 0; }
  .dashboard-hero-title { font-size: 1.5rem; }
  .dashboard-section-title { font-size: 1.2rem; }
}

/* ---- DASHBOARD PLANTILLA SIDEBAR (Tarot / Astrología) ---- */
/* Ocultar hero de la plantilla anterior si se usara */
.page-dashboard-sidebar .dashboard-hero { display: none !important; }

.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

.dashboard-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.dashboard-sidebar-inner {
  padding: 1.5rem 0;
}

.dashboard-sidebar-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 1.25rem 0;
  padding: 0 1.25rem;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dashboard-nav-group {
  padding: 0 0.75rem;
}

.dashboard-nav-cat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.5rem;
  border: none;
  background: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
  text-align: left;
}

.dashboard-nav-cat:hover {
  background: var(--gradient-subtle);
  color: var(--purple-bright);
}

.dashboard-nav-cat i:first-child {
  font-size: 1.1rem;
  color: var(--purple-bright);
  opacity: 0.9;
}

.dashboard-nav-chevron {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.dashboard-nav-sub {
  padding-left: 1.75rem;
  padding-bottom: 0.5rem;
  overflow: hidden;
}

.dashboard-nav-sub.collapsed {
  display: none;
}

.dashboard-nav-group:has(.dashboard-nav-sub.collapsed) .dashboard-nav-chevron {
  transform: rotate(-90deg);
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: none;
  background: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  text-align: left;
  margin-bottom: 2px;
}

.dashboard-nav-item:hover:not(:disabled) {
  background: var(--gradient-subtle);
  color: var(--text);
}

.dashboard-nav-item.active {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
}

.dashboard-nav-item.active i {
  color: rgba(255, 255, 255, 0.95);
}

.dashboard-nav-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dashboard-nav-item i:first-child {
  font-size: 1rem;
  color: var(--purple-bright);
}

.dashboard-nav-item.active i:first-child {
  color: #fff;
}

.dashboard-nav-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 1.5em;
  text-align: right;
}

.dashboard-nav-item.active .dashboard-nav-count {
  color: rgba(255, 255, 255, 0.9);
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 2rem 2rem;
  background: var(--bg-page);
}

.page-dashboard-sidebar .dashboard-toolbar {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.dashboard-content-head {
  margin-bottom: 1.5rem;
}

.dashboard-content-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem 0;
}

.dashboard-content-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.dashboard-coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 420px;
  margin: 0 auto;
}

.dashboard-coming-icon {
  font-size: 4rem;
  color: var(--purple-bright);
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.dashboard-coming-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}

.dashboard-coming-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Bienvenida (ninguna categoría seleccionada) */
.dashboard-welcome {
  max-width: 520px;
  padding: 2rem 0;
}

.dashboard-welcome-icon {
  font-size: 3rem;
  color: var(--purple-bright);
  opacity: 0.7;
  margin-bottom: 1.25rem;
}

.dashboard-welcome-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}

.dashboard-welcome-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Puerta: requiere inscripción / fechas (Arcanos Menores sin acceso) */
.dashboard-gate {
  max-width: 480px;
  padding: 2rem 0;
}

.dashboard-gate-icon {
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.dashboard-gate-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}

.dashboard-gate-text,
.dashboard-gate-hint {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 0.75rem 0;
}

.dashboard-gate-hint {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.btn-gate-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  background: var(--gradient);
  color: #fff !important;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-gate-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
  color: #fff !important;
}

@media (max-width: 991px) {
  .dashboard-layout {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .dashboard-sidebar-inner {
    padding: 1rem;
  }
  .dashboard-main {
    padding: 1.25rem 1rem 2rem;
  }
}

@media (max-width: 576px) {
  .dashboard-content-title { font-size: 1.25rem; }
}

/* ---- COURSE CARDS (legacy / course page) ---- */
.course-card-netflix {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: lc-fadeInUp 0.4s ease backwards;
  box-shadow: var(--shadow);
}

.course-card-netflix::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 2;
}

.course-card-netflix:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--glow-strong);
  border-color: rgba(124, 58, 237, 0.4);
}
.course-card-netflix:hover::before { transform: scaleX(1); }
.course-card-netflix:hover .course-card-cover { transform: scale(1.06); }

.course-card-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-deep);
  transition: transform 0.4s ease;
}

.course-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 247, 252, 0.4) 0%,
    transparent 35%,
    transparent 55%,
    rgba(248, 247, 252, 0.97) 100%
  );
  pointer-events: none;
}

.course-card-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  z-index: 1;
}

.course-card-netflix .course-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  color: var(--purple-bright);
  backdrop-filter: blur(6px);
}

.course-card-netflix .course-code {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  font-family: ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.course-card-info {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  background: var(--bg-card);
}

.course-card-netflix .course-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-netflix .course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.course-card-netflix .course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.course-card-netflix .course-meta-item i {
  font-size: 0.85rem;
  color: var(--purple-bright);
}

.course-card-netflix .btn-course {
  width: 100%;
  padding: 0.6rem 1.25rem;
  margin-top: 0.25rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--glow);
}
.course-card-netflix .btn-course:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
  filter: brightness(1.05);
  color: #fff;
}

#coursesGrid > *:nth-child(1) .course-card-netflix { animation-delay: 0.05s; }
#coursesGrid > *:nth-child(2) .course-card-netflix { animation-delay: 0.1s; }
#coursesGrid > *:nth-child(3) .course-card-netflix { animation-delay: 0.15s; }
#coursesGrid > *:nth-child(4) .course-card-netflix { animation-delay: 0.2s; }
#coursesGrid > *:nth-child(5) .course-card-netflix { animation-delay: 0.25s; }
#coursesGrid > *:nth-child(6) .course-card-netflix { animation-delay: 0.3s; }
#coursesGrid > *:nth-child(7) .course-card-netflix { animation-delay: 0.35s; }
#coursesGrid > *:nth-child(8) .course-card-netflix { animation-delay: 0.4s; }
#coursesGrid > *:nth-child(9) .course-card-netflix { animation-delay: 0.45s; }
#coursesGrid > *:nth-child(10) .course-card-netflix { animation-delay: 0.5s; }

/* Badge/code/title reutilizados en hero curso */
.course-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  color: var(--purple-bright);
}
.course-code { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); font-family: ui-monospace, monospace; }
.course-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0 0 1rem 0; line-height: 1.4; }
.course-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.course-meta-item { display: flex; align-items: center; gap: 0.4rem; }
.course-meta-item i { font-size: 0.9rem; color: var(--purple-bright); }
.btn-course {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--glow);
}
.btn-course:hover { transform: translateY(-2px); box-shadow: var(--glow-strong); filter: brightness(1.05); color: #fff; }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.empty-state i { font-size: 3rem; color: var(--purple); opacity: 0.5; margin-bottom: 1rem; }
.empty-state h3 { color: var(--text); font-weight: 700; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); margin: 0; }

@keyframes lc-fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- LOGIN (split, creativo) ---- */
.page-login { overflow-x: hidden; }

.login-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.login-brand {
  position: relative;
  background: linear-gradient(160deg, var(--purple-bright) 0%, var(--blue) 50%, var(--blue-deep) 100%);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-brand-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 380px;
}

.login-brand-logo {
  width: 80px;
  height: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.login-brand-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}

.login-brand-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2rem 0;
}

.login-brand-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

.login-brand-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.login-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.login-shape-1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -80px;
}

.login-shape-2 {
  width: 160px;
  height: 160px;
  bottom: 20%;
  left: -40px;
}

.login-shape-3 {
  width: 100px;
  height: 100px;
  bottom: -20px;
  right: 25%;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-page);
}

.login-form-wrap {
  width: 100%;
  max-width: 400px;
}

.login-form-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem 0;
}

.login-form-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem 0;
}

.login-form .form-label {
  font-weight: 600;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.login-form .login-input {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.login-form .login-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.login-form .login-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  outline: none;
}

.login-feedback { margin-bottom: 0.75rem; min-height: 1rem; }

.login-feedback .alert {
  border-radius: 10px;
  font-size: 0.875rem;
}

.btn-login-submit {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  border: none;
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
  color: #fff;
}

.login-footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2rem 0 0 0;
}

@media (max-width: 991px) {
  .login-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .login-brand {
    padding: 2rem 1.5rem;
    min-height: 240px;
  }
  .login-brand-logo { width: 56px; margin-bottom: 0.75rem; }
  .login-brand-title { font-size: 1.35rem; }
  .login-brand-subtitle { margin-bottom: 1rem; }
  .login-brand-tagline { font-size: 0.9rem; margin: 0; }
  .login-form-panel { padding: 2rem 1.5rem; align-items: flex-start; }
}

/* ---- GLASS CARDS (course) ---- */
.glass-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.glass-card:hover { box-shadow: var(--glow); }

.glass-card label,
.glass-card .small,
.glass-card .form-label,
.glass-card h2,
.glass-card h5,
.glass-card h6 { color: var(--text-soft) !important; }
.glass-card .text-muted,
.glass-card .text-secondary { color: var(--text-muted) !important; }
.glass-card .badge-chip { color: var(--text-soft) !important; }
.glass-card .text-dark { color: var(--text) !important; }

.glass-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text-soft);
}
.glass-sidebar label,
.glass-sidebar .small,
.glass-sidebar .form-label,
.glass-sidebar h2,
.glass-sidebar h6 { color: var(--text-soft) !important; }
.glass-sidebar .text-muted,
.glass-sidebar .text-secondary { color: var(--text-muted) !important; }
.glass-sidebar .badge-chip { color: var(--text-soft) !important; }
.glass-sidebar .text-dark { color: var(--text) !important; }

/* ---- BUTTONS ---- */
.btn-glass {
  position: relative;
  border-radius: 999px;
  border: none;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.8rem;
  box-shadow: var(--glow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.btn-glass:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--glow-strong);
  filter: brightness(1.08);
  color: #fff;
}
.btn-glass:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn-glass:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #a0a0a0, #888);
  box-shadow: none;
}

.btn-pill-outline {
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.83rem;
  padding: 0.45rem 0.85rem;
  color: var(--text-soft);
  background: transparent;
  transition: all var(--transition);
}
.btn-pill-outline:hover:not(:disabled) {
  border-color: var(--purple);
  color: var(--text);
  background: var(--gradient-subtle);
  transform: translateY(-1px);
}
.btn-pill-outline:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- MODULE BUTTONS ---- */
.module-button {
  text-align: left;
  width: 100%;
  font-size: 0.88rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
  border: 1px solid var(--border);
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gradient-subtle);
  color: var(--text-soft);
  transition: all var(--transition);
  cursor: pointer;
}

.module-button .module-index {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.module-button.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--glow);
}
.module-button.active .module-index {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-color: transparent;
}

.module-button.completed {
  background: rgba(124, 58, 237, 0.08);
  color: var(--text);
  border-color: var(--accent-completed-glow);
}
.module-button.completed .module-index {
  border-color: var(--accent-completed-glow);
  color: var(--text);
  background: rgba(124, 58, 237, 0.15);
}
.module-button.completed .bi-check-circle-fill { color: var(--accent-completed); }

.module-button.locked {
  opacity: 0.85;
  cursor: not-allowed;
  background: var(--bg-page);
  border-color: rgba(124, 58, 237, 0.12);
  color: var(--text-muted);
}
.module-button.locked .module-index {
  color: var(--text-muted);
  background: rgba(124, 58, 237, 0.08);
  border-color: var(--border);
}
.module-button.locked .bi-lock-fill { color: var(--text-muted); }

.module-button:not(.locked):hover {
  transform: translateY(-2px);
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--text);
}

/* ---- PROGRESS ---- */
.progress {
  background: rgba(124, 58, 237, 0.12);
  border-radius: 999px;
  overflow: hidden;
  height: 0.8rem;
}

.progress-bar {
  width: 0;
  background: var(--gradient);
  box-shadow: var(--glow);
  transition: width 0.5s ease-out;
}
.progress-bar.bg-info { background: var(--gradient) !important; }

/* ---- BADGES ---- */
.badge-chip {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.course-code-pill {
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  color: var(--purple-bright);
}

.course-doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 600;
}

/* ---- COURSE HERO ---- */
#courseHeader { margin-bottom: 2rem; }

.course-hero {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.5fr);
  column-gap: 2rem;
  row-gap: 1.5rem;
  align-items: center;
}

.course-hero-main { min-width: 0; }

.course-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}

.course-title-main {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.course-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.25rem;
}

.course-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0;
  line-height: 1.5;
}

.content-header-pill {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-bright);
  font-weight: 700;
}

.course-meta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: flex-end; }

.course-meta-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  min-width: 180px;
}

.course-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.course-meta-value { font-size: 0.96rem; font-weight: 700; color: var(--text); }

.course-recommendation {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.course-recommendation i { color: var(--purple-bright); }

/* ---- CONTENT (injected) ---- */
#moduleContentWrapper,
.content-section { color: var(--text-soft); }

#moduleContentWrapper h1,
#moduleContentWrapper h2,
.content-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.3;
}

#moduleContentWrapper h3,
#moduleContentWrapper h4,
.content-section h3,
.content-section h4 {
  font-size: 1.05rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--purple-bright);
}

#moduleContentWrapper p,
.content-section p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

#moduleContentWrapper ul,
.content-section ul { padding-left: 1.1rem; margin-bottom: 1rem; }

#moduleContentWrapper li,
.content-section li {
  font-size: 0.94rem;
  margin-bottom: 0.15rem;
  color: var(--text-soft);
  line-height: 1.6;
}

#moduleContentWrapper strong,
.content-section strong { font-weight: 700; color: var(--text); }

#moduleContentWrapper .card,
.content-section .card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

#moduleContentWrapper .card-body,
.content-section .card-body { padding: 1.5rem; }

#moduleContentWrapper hr,
.content-section hr { border-color: var(--border); margin: 1.5rem 0; }

#moduleContentWrapper img,
.content-section img { max-width: 100%; height: auto; border-radius: 8px; }

#moduleContentWrapper .text-bg-secondary,
.content-section .text-bg-secondary {
  background: var(--gradient-subtle) !important;
  color: var(--purple-bright) !important;
  border: 1px solid var(--border);
}

#moduleContentWrapper .bg-light-subtle,
.content-section .bg-light-subtle { background: var(--gradient-subtle) !important; }

#moduleContentWrapper .table,
.content-section .table {
  color: var(--text-soft);
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(124, 58, 237, 0.05);
  --bs-table-hover-bg: rgba(124, 58, 237, 0.08);
  --bs-table-border-color: var(--border);
}
#moduleContentWrapper .table td,
#moduleContentWrapper .table th,
.content-section .table td,
.content-section .table th {
  color: var(--text-soft);
  border-color: var(--border);
  padding: 0.5rem 0.75rem;
}
#moduleContentWrapper .table .text-muted,
#moduleContentWrapper .table .small,
.content-section .table .text-muted,
.content-section .table .small { color: var(--text-soft) !important; }
#moduleContentWrapper .table strong,
.content-section .table strong { color: var(--text); }

#moduleContentWrapper .alert-light,
.content-section .alert-light,
.alert.alert-light {
  background: var(--gradient-subtle) !important;
  border-color: var(--border) !important;
  color: var(--text-soft) !important;
}
#moduleContentWrapper .alert-light strong,
.content-section .alert-light strong,
.alert.alert-light strong { color: var(--text); }

#moduleContentWrapper .accordion,
.content-section .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--border);
  --bs-accordion-btn-bg: var(--gradient-subtle);
  --bs-accordion-active-bg: rgba(124, 58, 237, 0.12);
  --bs-accordion-btn-color: var(--text-soft);
  --bs-accordion-active-color: var(--text);
}
#moduleContentWrapper .accordion-item,
.content-section .accordion-item {
  background: transparent;
  border-color: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
#moduleContentWrapper .accordion-button,
.content-section .accordion-button {
  background: var(--gradient-subtle) !important;
  color: var(--text-soft) !important;
  border: 1px solid var(--border);
  font-weight: 600;
}
#moduleContentWrapper .accordion-button:not(.collapsed),
.content-section .accordion-button:not(.collapsed) {
  background: rgba(124, 58, 237, 0.12) !important;
  color: var(--text) !important;
  border-color: var(--border);
  box-shadow: none;
}
#moduleContentWrapper .accordion-button::after,
.content-section .accordion-button::after {
  filter: none;
  opacity: 0.7;
}
#moduleContentWrapper .accordion-button:focus,
.content-section .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.2);
  border-color: var(--purple);
}
#moduleContentWrapper .accordion-body,
.content-section .accordion-body {
  background: var(--bg-page);
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
#moduleContentWrapper .accordion-body strong,
.content-section .accordion-body strong { color: var(--text); }

#moduleContentWrapper .list-check,
.content-section .list-check { list-style: none; padding-left: 0; }
#moduleContentWrapper .list-check li::before,
.content-section .list-check li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: bold;
  margin-right: 0.5rem;
}

.adb-icon-title { font-size: 1.5rem; color: var(--purple-bright); }

/* ---- QUIZ ---- */
.quiz-panel { margin-top: 1rem; }

.quiz-panel .card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.quiz-panel .card-body { padding: 1rem 1.25rem; }

.quiz-panel .card { color: var(--text-soft); }
.quiz-panel .card .text-muted,
.quiz-panel .card .text-secondary { color: var(--text-soft) !important; }
.quiz-panel .card .quiz-hint { color: var(--text-muted) !important; }

.quiz-icon { font-size: 1.3rem; color: var(--success); }

.quiz-panel #quizQuestion,
.quiz-question {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.quiz-options { margin-bottom: 0.75rem; }

.quiz-option-item {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  cursor: pointer;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.quiz-option-item:hover {
  background: var(--gradient-subtle);
  border-color: rgba(124, 58, 237, 0.25);
}

.quiz-option-item input[type="radio"] {
  margin-top: 0.2rem;
  cursor: pointer;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  accent-color: var(--purple);
}

.quiz-option-item .quiz-option-text {
  cursor: pointer;
  line-height: 1.3;
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.quiz-option-item.correct .quiz-option-text { color: var(--success) !important; font-weight: 600; }
.quiz-option-item.incorrect .quiz-option-text { color: var(--danger) !important; }

.quiz-submit-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  width: 100%;
  margin-bottom: 0.5rem;
  box-shadow: var(--glow);
  transition: all var(--transition);
  cursor: pointer;
}
.quiz-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
  color: #fff;
}
.quiz-submit-btn:disabled {
  background: #c0c0c0;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.quiz-feedback { margin-bottom: 0.5rem; min-height: auto; }
.quiz-feedback .alert {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border: none;
  border-radius: 8px;
}
.quiz-feedback .alert-success,
.quiz-feedback .quiz-fb-correct {
  background: #059669 !important;
  color: #fff !important;
}
.quiz-feedback .quiz-fb-correct .bi { color: #fff !important; }
.quiz-feedback .alert-danger,
.quiz-feedback .quiz-fb-incorrect {
  background: #dc2626 !important;
  color: #fff !important;
}
.quiz-feedback .quiz-fb-incorrect .bi { color: #fff !important; }

.quiz-hint { color: var(--text-muted); font-size: 0.7rem; line-height: 1.2; margin: 0; }
.quiz-panel-label { font-size: 0.7rem; letter-spacing: 0.3px; color: var(--text); }

.completion-logo { width: 150px; height: auto; }

/* ---- FINAL QUIZ ---- */
.final-quiz-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.final-quiz-header { margin-bottom: 1.5rem; }
.final-quiz-icon { font-size: 1.75rem; color: var(--purple-bright); }
.final-quiz-description { color: var(--text-soft); font-size: 0.9rem; line-height: 1.6; }
.final-quiz-progress { margin-bottom: 1.5rem; }
.final-quiz-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.final-quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }

.final-quiz-options .form-check {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all var(--transition);
  cursor: pointer;
}
.final-quiz-options .form-check:hover {
  background: var(--gradient-subtle);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateX(4px);
}

.final-quiz-options .form-check-input {
  border-color: var(--border);
  background: var(--bg-card);
  accent-color: var(--purple);
}
.final-quiz-options .form-check-input:checked {
  background-color: var(--success);
  border-color: var(--success);
}

.final-quiz-options .form-check-label {
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-left: 0.5rem;
}

.final-quiz-navigation { margin-top: auto; }
.final-quiz-feedback { min-height: 2.5rem; }
.final-quiz-feedback .alert-success {
  background: #059669 !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.final-quiz-feedback .alert-danger {
  background: #dc2626 !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.final-quiz-panel label,
.final-quiz-panel .small,
.final-quiz-panel .text-muted,
.final-quiz-panel .text-secondary { color: var(--text-soft) !important; }
.final-quiz-panel .text-dark { color: var(--text) !important; }
.final-quiz-panel .form-check-label { color: var(--text) !important; }

/* ---- FINAL SCORE ---- */
#finalScorePanel {
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
}

/* ---- COMPLETION ---- */
#finalCompletionPage { margin-top: 1.5rem; }

.completion-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--glow);
  color: var(--text-soft);
}

.celebration-icon {
  font-size: 4rem;
  color: var(--purple-bright);
  margin-bottom: 0.5rem;
  animation: lc-pulse 2s infinite;
}

#finalCompletionPage h2 {
  color: var(--text);
  font-size: 2rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

#finalCompletionPage p.lead { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 1.5rem; }

#finalCompletionPage .form-control {
  border-radius: 10px;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text);
}
#finalCompletionPage .form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  outline: none;
}

#finalCompletionPage .btn-glass { min-width: 250px; }

#finalCompletionPage .btn-link {
  color: var(--purple-bright);
  font-weight: 500;
  text-decoration: none;
}
#finalCompletionPage .btn-link:hover { text-decoration: underline; color: var(--purple); }

/* ---- FOOTER / NAV ---- */
.module-navigation { border-top: 1px solid var(--border); }

.legal-footer {
  width: 100%;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.legal-footer strong { font-weight: 600; color: var(--text-soft); }

/* ---- ALERTS ---- */
.alert {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: var(--radius);
}
.alert-success { background: rgba(5, 150, 105, 0.1); border-color: rgba(5, 150, 105, 0.3); color: #047857; }
.alert-danger { background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.3); color: var(--danger); }

/* ---- UTILITIES ---- */
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-muted) !important; }
.border-secondary.border-opacity-25 { border-color: var(--border) !important; }
.border-primary { border-color: var(--purple) !important; }
.bg-primary-subtle { background: var(--gradient-subtle) !important; }

.final-quiz-option-item {
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
}
.final-quiz-option-item:hover {
  background: var(--gradient-subtle);
  border-color: rgba(124, 58, 237, 0.4);
}

@keyframes lc-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
  .course-shell { padding-top: 1.25rem; }
  .glass-sidebar { margin-bottom: 1.5rem; }
  .main-navbar .navbar-brand { font-size: 1rem; }
  .course-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.6rem;
  }
  .course-hero-meta { align-items: flex-start; }
  .course-meta-row { justify-content: flex-start; }
}

@media (max-width: 576px) {
  .glass-card, .glass-sidebar { border-radius: 1.2rem; }
  .p-md-4 { padding: 1.5rem !important; }
  .btn-glass, .btn-pill-outline { padding: 0.6rem 1.2rem; font-size: 0.8rem; }
  .content-section h2 { font-size: 1.3rem; }
  .content-section p, .content-section li { font-size: 0.9rem; }
  .module-button { font-size: 0.8rem; }
  .navbar-brand .navbar-brand-logo { height: 28px; }
  #finalCompletionPage .completion-card { padding: 1.8rem 1.5rem; }
  #finalCompletionPage h2 { font-size: 1.6rem; }
  #finalCompletionPage p.lead { font-size: 0.96rem; }
  .course-hero { border-radius: 1.2rem; padding: 1.3rem 1.4rem; row-gap: 1.1rem; }
  .course-meta-badge { min-width: 100%; }
  .course-doc-pill { font-size: 0.74rem; padding: 6px 9px; }
  .quiz-panel .card, .final-quiz-panel { padding: 1rem; }
  .quiz-panel #quizQuestion, .final-quiz-question { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* ========================================
   LANDING (home nueva desde cero)
   Respeta :root y componentes del CSS unificado
   ======================================== */
html { scroll-behavior: smooth; }

.page-home.landing { padding-top: 0; }

/* Nav mínima */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.landing-nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color var(--transition);
}

.landing-logo:hover { color: var(--purple-bright); }

.landing-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) saturate(100%);
}

.landing-btn-login {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  background: var(--gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.landing-btn-login:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--glow); }

/* Hero centrado */
.landing-hero {
  padding: clamp(6rem, 18vw, 10rem) 1.5rem clamp(4rem, 12vw, 6rem);
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-page) 0%, var(--bg-deep) 100%);
}

.landing-hero-inner { max-width: 560px; margin: 0 auto; }

.landing-hero-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.25rem 0;
}

.landing-hero-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple-bright);
  margin: 0 0 1rem 0;
}

.landing-hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem 0;
  line-height: 1.5;
}

.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Pilares */
.landing-pillars {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.landing-pillars-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.landing-pillar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.landing-pillar i { font-size: 1.1rem; color: var(--purple-bright); }

/* Sección cursos */
.landing-section {
  padding: 4rem 1.5rem;
}

.landing-container {
  max-width: 1000px;
  margin: 0 auto;
}

.landing-h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.35rem 0;
}

.landing-text-muted {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 2rem 0;
}

.landing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 991px) {
  .landing-cards { grid-template-columns: 1fr; }
}

.landing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.landing-card:hover { box-shadow: var(--glow); transform: translateY(-2px); }

.landing-card-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-deep);
}

.landing-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.landing-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.4rem 0;
}

.landing-card-p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
  line-height: 1.45;
  flex: 1;
}

.landing-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-bright);
  text-decoration: none;
  transition: gap var(--transition);
}

.landing-card-link:hover { color: var(--blue); gap: 0.5rem; }

.landing-card-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.landing-card-primary { border-color: rgba(124, 58, 237, 0.35); }
.landing-card-primary:hover { box-shadow: var(--glow-strong); }

.landing-card-muted .landing-card-p { opacity: 0.85; }

.landing-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-page);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-top: auto;
}

/* CTA final */
.landing-cta {
  padding: 4rem 1.5rem;
  background: var(--gradient-subtle);
  border-top: 1px solid var(--border);
}

.landing-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.landing-cta-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.landing-cta-p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
}

.landing-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.landing-footer {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.landing-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.landing-footer-link {
  color: var(--text-muted);
  text-decoration: none;
}

.landing-footer-link:hover { color: var(--purple-bright); }

/* Modal login (compartido) */
.home-login-modal {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--glow-strong);
  overflow: hidden;
}

.home-login-modal .modal-header .modal-title {
  font-weight: 700;
  color: var(--text);
}

.home-login-modal .form-control {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text);
}

.home-login-modal .form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  outline: none;
}

/* ========================================
   STORE HOME — Tienda de cursos profesional
   ======================================== */
.page-home.store-home { padding-top: 0; }

.store-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.store-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.store-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color var(--transition);
}

.store-nav-logo:hover { color: var(--purple-bright); }

.store-nav-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) saturate(100%);
}

.store-nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.store-nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.store-nav-menu a:hover { color: var(--purple-bright); background: var(--gradient-subtle); }

.store-nav-login {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  background: var(--gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.store-nav-login:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--glow); }

.store-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.store-nav-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.store-nav-toggler span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.store-nav-toggler:hover { background: var(--gradient-subtle); border-color: var(--purple); }
.store-nav-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.store-nav-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.store-nav-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.store-nav-scrolled {
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
}

.store-nav-collapse {
  display: none;
  width: 100%;
  flex-basis: 100%;
  order: 99;
}
.store-nav-collapse.show { display: block; }

.store-nav-menu-mobile {
  list-style: none;
  padding: 1rem 0 0.5rem;
  margin: 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.store-nav-menu-mobile li { margin: 0; }
.store-nav-menu-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.store-nav-menu-mobile a:hover { color: var(--purple-bright); background: var(--gradient-subtle); }

@media (max-width: 991px) {
  .store-nav-inner { flex-wrap: wrap; }
  .store-nav-menu { display: none; }
  .store-nav-toggler { display: flex; }
  .store-nav-collapse { display: none; }
  .store-nav-collapse.collapsing,
  .store-nav-collapse.show { display: block; }
}

/* Hero tienda */
.store-hero {
  position: relative;
  padding: clamp(7rem, 20vw, 11rem) 1rem clamp(3rem, 10vw, 4rem);
  text-align: center;
  background: radial-gradient(ellipse 85% 65% at 50% 0%, rgba(124, 58, 237, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-page) 0%, var(--bg-deep) 100%);
}
.store-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237c3aed' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.store-hero-inner { max-width: 640px; margin: 0 auto; }

.store-hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-bright);
  background: var(--gradient-subtle);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.store-hero-title {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.35rem 0;
}

.store-hero-title strong { color: var(--purple-bright); }

.store-hero-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--purple-bright);
  margin: 0 0 1rem 0;
}

.store-hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem 0;
  line-height: 1.55;
}

.store-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.store-hero-stats {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 0.9rem 0;
}
.store-hero-stats-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.store-hero-stats-inner strong { color: var(--purple-bright); }
.store-hero-stats-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.5;
}

.store-hero-pro .store-hero-title { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.store-hero-pro .store-hero-desc { max-width: 520px; margin-left: auto; margin-right: auto; }
.btn-cta-main { padding: 0.75rem 1.75rem; font-size: 1rem; }

.store-h2-large { font-size: clamp(1.5rem, 4vw, 2rem); }

/* Sección beneficios (estilo Domestika) */
.store-benefits { padding: 3.5rem 0 4rem; background: var(--bg-card); border-top: 1px solid var(--border); }
.store-benefits-grid { max-width: 1000px; margin: 0 auto; }
.store-benefit-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  height: 100%;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.store-benefit-card:hover { box-shadow: var(--glow); border-color: rgba(124, 58, 237, 0.25); }
.store-benefit-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.store-benefit-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0 0 0.5rem 0; }
.store-benefit-p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Botones premium */
.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  background: var(--gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--glow);
}
.btn-primary-pill:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--glow-strong); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  background: transparent;
  color: var(--purple-bright);
  border: 2px solid var(--border);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: var(--purple); background: var(--gradient-subtle); color: var(--blue); }

/* Secciones genéricas */
.store-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-bright);
  margin: 0 0 0.5rem 0;
}

/* Reveal al scroll */
.store-section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.5s ease;
}
.store-section-reveal.store-section-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .store-section-reveal { opacity: 1; transform: none; transition: none; }
  .store-section-reveal.store-section-visible { opacity: 1; }
}

/* Secciones genéricas */
.store-section {
  padding: 4.5rem 0;
}

.store-section-alt {
  background: var(--gradient-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.store-h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.store-hr {
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border: none;
  margin: 0 0 1.5rem 0;
  border-radius: 2px;
}

.store-accent { color: var(--purple-bright); }

.store-section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
  max-width: 560px;
}

.store-section-desc.text-center { margin-left: auto; margin-right: auto; }

.store-section-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Scroll margin para anclas con nav fijo (mejor UX) */
.page-home #inicio,
.page-home #cursos,
.page-home #comofunciona,
.page-home #beneficios,
.page-home #acerca,
.page-home #conoce,
.page-home #fechas,
.page-home #alumnos,
.page-home #contacto {
  scroll-margin-top: 5.5rem;
}

/* Acerca — imagen en círculo */
.store-about-img {
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-deep);
  display: block;
  margin: 0 auto;
}

/* Tarjeta profesor */
.store-prof-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.store-prof-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.store-prof-body { padding: 1.75rem 2rem; }

.store-prof-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.store-prof-role {
  font-size: 0.9rem;
  color: var(--purple-bright);
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.store-prof-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem 0;
}

.store-prof-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-bright);
  text-decoration: none;
  transition: color var(--transition);
}

.store-prof-link:hover { color: var(--blue); }

/* Cards de curso en home (uso de .store-card) */
.store-card-home .store-card-body { padding-top: 1rem; }
.store-card-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.store-card-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.store-card-meta-line i { color: var(--purple-bright); font-size: 0.85rem; }

.store-card .store-card-p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
  flex: 1;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card-featured { border-color: rgba(124, 58, 237, 0.4); }
.store-card-featured:hover { box-shadow: var(--glow-strong); }

.store-card-muted .store-card-image { filter: saturate(0.7); opacity: 0.9; }
.store-card-muted .store-card-title,
.store-card-muted .store-card-p { opacity: 0.9; }

.store-card-badge-outline {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.store-card-cta-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--purple-bright);
}

.store-card-cta-btn:hover { color: var(--blue); }

/* Cards estilo catálogo plataforma (Domestika / Udemy) */
.store-catalog .store-h2 { margin-bottom: 0.25rem; }
.store-card-pro { position: relative; }
.store-card-pro .store-card-body { padding: 1.25rem 1.35rem; }
.store-card-image-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-deep);
  transition: transform 0.4s ease;
  text-decoration: none;
}
.store-card-pro:hover .store-card-image-wrap { transform: scale(1.03); }
.store-card-image-wrap-disabled { cursor: default; pointer-events: none; }
.store-card-ribbon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow);
}
.store-cta-pro {
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.store-card-pro .store-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.store-card-pro .store-card-title a:hover { color: var(--purple-bright); }

/* Fechas */
.store-date-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.store-date-card:hover {
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.store-date-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-bright);
  margin: 0 0 0.5rem 0;
}

.store-date-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem 0;
  line-height: 1.35;
}

.store-date-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.store-date-list li { margin-bottom: 0.35rem; }

.store-date-card .btn.disabled { pointer-events: none; opacity: 0.7; }

/* Testimonios */
.store-testimonials {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* 3 testimonios por slide */
.store-testimonials-multi {
  max-width: 100%;
  padding: 1rem 2.5rem;
}
.store-testimonials.store-testimonials-multi {
  max-width: 100%;
}
.store-testimonials-multi .carousel-inner { overflow: visible; }
.store-testimonials-multi .store-testimonial {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
}
.store-testimonials-multi .store-testimonial p {
  flex: 1;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
}
.store-testimonials-multi .row { align-items: stretch; }
.store-testimonials-multi .carousel-control-prev { left: 0; }
.store-testimonials-multi .carousel-control-next { right: 0; }

.store-testimonials .carousel-control-prev,
.store-testimonials .carousel-control-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
}

.store-testimonials .carousel-control-prev { left: -1rem; }
.store-testimonials .carousel-control-next { right: -1rem; }

.store-testimonials .carousel-control-prev-icon,
.store-testimonials .carousel-control-next-icon {
  filter: none;
  color: var(--purple-bright);
}

.store-testimonials .carousel-indicators {
  margin-bottom: -0.5rem;
}
.store-testimonials .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
  border: none;
  opacity: 0.8;
  transition: background-color var(--transition), transform var(--transition);
}
.store-testimonials .carousel-indicators [data-bs-target]:hover {
  background-color: var(--purple-bright);
  opacity: 1;
}
.store-testimonials .carousel-indicators .active {
  background-color: var(--purple-bright);
  opacity: 1;
  transform: scale(1.15);
}

.store-testimonial {
  position: relative;
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
  margin: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.store-testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 1rem;
  color: #eab308;
  font-size: 1rem;
}

.store-testimonial-quote {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--purple);
  opacity: 0.2;
  line-height: 1;
}

.store-testimonial p {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 1.25rem 0;
  font-style: italic;
}

.store-testimonial footer {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

.store-testimonial-name {
  font-weight: 700;
  color: var(--text);
}

/* Contacto */
.store-contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.store-contact-card:focus-within {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

/* Contacto simplificado: solo redes + botón */
.store-contact-simple {
  max-width: 360px;
  margin: 0 auto;
}
.store-contact-simple.store-contact-inline {
  max-width: none;
}
.store-contact-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.store-contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  color: var(--purple-bright);
  font-size: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.store-contact-social-link:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
  transform: scale(1.08);
}

.store-contact-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.store-contact-p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
}

.store-contact-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.store-contact-stats strong { color: var(--purple-bright); }

.store-contact-form .form-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.store-contact-form .form-control {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text);
}

.store-contact-form .form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  outline: none;
}

.store-contact-note { margin-top: 0.75rem; }

/* Contacto (iconos + CTA, sección compacta) */
.store-redes {
  position: relative;
  padding: clamp(2rem, 5vw, 2.75rem) 1.5rem;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 50% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(79, 70, 229, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-page) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border);
}

.store-redes-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.04) 0%, transparent 40%);
}

.store-redes-header {
  margin-bottom: 1.25rem;
}

.store-redes-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-bright);
  margin: 0 0 0.5rem 0;
}

.store-redes-title {
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.store-redes-title .store-accent { color: var(--purple-bright); }

.store-redes-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.5;
}

.store-redes-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.store-redes-card:hover {
  box-shadow: var(--glow-strong), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.store-redes-social {
  margin-bottom: 1rem;
}

.store-redes-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.store-redes-link:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.store-redes-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-bright);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
}

.store-redes-link:hover .store-redes-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.store-redes-handle {
  letter-spacing: 0.02em;
}

.store-redes-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 0 1rem 0;
}

.store-redes-cta-wrap {
  margin: 0;
}

.store-redes-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  box-shadow: var(--glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.store-redes-cta:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
}

/* Footer tienda */
.store-footer {
  padding: 2.5rem 0 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.store-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem 1.5rem;
  align-items: center;
}
.store-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.store-footer-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) saturate(100%);
}
.store-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.store-footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.store-footer-links a:hover { color: var(--purple-bright); background: var(--gradient-subtle); }
.store-footer-social {
  display: flex;
  gap: 0.5rem;
}
.store-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--gradient-subtle);
  color: var(--purple-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--transition);
}
.store-footer-social a:hover { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: var(--glow); }

.store-footer-divider {
  margin: 1.5rem 0 1rem;
  border: none;
  border-top: 1px solid var(--border);
  opacity: 0.8;
}

.store-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-muted);
}

.store-footer-link {
  color: var(--text-muted);
  text-decoration: none;
}

.store-footer-link:hover { color: var(--purple-bright); }

@media (max-width: 767px) {
  .store-footer-grid { grid-template-columns: 1fr; text-align: center; }
  .store-footer-brand { justify-content: center; }
  .store-footer-links { justify-content: center; }
  .store-footer-social { justify-content: center; }
}

/* CTA flotante */
.store-float-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1020;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--glow-strong);
  transition: transform var(--transition), box-shadow var(--transition);
}

.store-float-cta:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}

@media (max-width: 767px) {
  .store-hero { padding-top: clamp(5.5rem, 18vw, 8rem); }
  .store-prof-body { padding: 1.25rem 1.5rem; }
  .store-testimonial { padding: 1.5rem 1rem; }
  .store-testimonials .carousel-control-prev { left: 0; }
  .store-testimonials .carousel-control-next { right: 0; }
}

/* ========================================
   ECOMMERCE PREMIUM — Sitio de primer nivel
   ======================================== */
.ecom {
  background: #fafafa;
}

/* Nav ecommerce */
.ecom-nav {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 0;
}
.ecom-nav .store-nav-logo { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }
.ecom-nav .store-nav-logo-img { height: 36px; }
.ecom-nav .store-nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  padding: 0.5rem 0.75rem;
  position: relative;
}
.ecom-nav .store-nav-menu a::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.ecom-nav .store-nav-menu a:hover { color: var(--text); }
.ecom-nav .store-nav-menu a:hover::after { transform: scaleX(1); }
.ecom-nav .store-nav-login {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.ecom-nav .store-nav-login:hover {
  background: #111827;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.ecom-nav.store-nav-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }

/* Hero ecommerce */
.ecom-hero {
  padding: clamp(8rem, 22vw, 12rem) 1.5rem clamp(4rem, 12vw, 6rem);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 45%, #f5f5f5 100%);
}
.ecom-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% -20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 45%);
  pointer-events: none;
}
.ecom-hero .store-hero-bg { opacity: 0.4; }
.ecom-hero-inner { max-width: 680px; }
.ecom-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-bright);
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 0.45rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.08);
}
.ecom-hero-title {
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #111827;
  margin: 0 0 0.5rem 0;
}
.ecom-hero-title strong {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ecom-hero-sub { font-size: 1.2rem; font-weight: 600; color: var(--purple-bright); margin: 0 0 1rem 0; }
.ecom-hero-desc {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}
.ecom-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.ecom-btn-primary {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ecom-btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
}
.ecom-btn-secondary {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  border: 2px solid #e5e7eb;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.ecom-btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple-bright);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
}

/* Trust bar ecommerce */
.ecom-trust-bar {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.25rem 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.ecom-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
}
.ecom-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #6b7280;
}
.ecom-trust-item i {
  font-size: 1.25rem;
  color: var(--purple-bright);
  opacity: 0.9;
}
.ecom-trust-item strong { color: #111827; }

/* Beneficios ecommerce */
.ecom-benefits {
  padding: 4rem 0 5rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.ecom-benefits .store-h2-large { color: #111827; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.ecom-benefits .store-section-desc { color: #6b7280; }
.ecom-benefit-card {
  background: #fafafa;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ecom-benefits .store-benefit-card {
  border-radius: 20px;
  border: 1px solid #f3f4f6;
  background: #fafafa;
  padding: 2rem 1.5rem;
}
.ecom-benefits .store-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}
.ecom-benefits .store-benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}
.ecom-benefits .store-benefit-title { font-size: 1.1rem; color: #111827; }
.ecom-benefits .store-benefit-p { color: #6b7280; font-size: 0.9rem; }

/* Shop / Product grid ecommerce */
.ecom-shop {
  padding: 5rem 0 6rem;
  background: #fafafa;
}
.ecom-shop .store-section-desc { color: #6b7280; }
.ecom-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--purple-bright);
  margin-bottom: 0.5rem;
}
.ecom-section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  margin-bottom: 0.5rem;
}
.ecom-section-desc { margin-bottom: 2.5rem; }

.ecom-grid { margin-top: 0.5rem; }
.ecom-product {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.ecom-product:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}
.ecom-product-img {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
  overflow: hidden;
  text-decoration: none;
}
.ecom-product-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ecom-product:hover .ecom-product-img::before { opacity: 1; }
.ecom-product-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple-bright);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.ecom-product:hover .ecom-product-overlay { opacity: 1; transform: translate(-50%, -50%); }
.ecom-product-body {
  padding: 1.5rem 1.5rem 1.75rem;
}
.ecom-product-meta {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.ecom-product-meta i { color: var(--purple-bright); }
.ecom-product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}
.ecom-product-title a { color: inherit; text-decoration: none; }
.ecom-product-title a:hover { color: var(--purple-bright); }
.ecom-product-desc {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ecom-product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-bright);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.ecom-product-cta:hover { color: var(--blue); gap: 0.6rem; }
.ecom-product-cta-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--purple-bright);
}
.ecom-product-cta-btn:hover { color: var(--blue); }
.ecom-ribbon {
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}
.ecom-product-featured { border: 2px solid rgba(124, 58, 237, 0.2); }
.ecom-product-featured:hover { box-shadow: 0 28px 56px rgba(124, 58, 237, 0.15); }
.ecom-badge-outline {
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  background: #fff;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
}
.ecom-product-img-disabled {
  cursor: default;
  pointer-events: none;
  filter: grayscale(0.3);
  opacity: 0.85;
}
.ecom-product-coming .ecom-product-title,
.ecom-product-coming .ecom-product-desc { opacity: 0.85; }

/* Footer ecommerce */
.ecom-footer {
  padding: 3rem 0 2rem;
  background: #111827;
  border-top: none;
}
.ecom-footer .store-footer-brand,
.ecom-footer .store-footer-brand span { color: #f9fafb; }
.ecom-footer .store-footer-logo { filter: brightness(0) invert(1); opacity: 0.95; }
.ecom-footer .store-footer-links a {
  color: #9ca3af;
}
.ecom-footer .store-footer-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.ecom-footer .store-footer-social a {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f9fafb;
}
.ecom-footer .store-footer-social a:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}
.ecom-footer .store-footer-divider { border-color: rgba(255, 255, 255, 0.12); }
.ecom-footer .store-footer-bottom,
.ecom-footer .store-footer-link { color: #6b7280; }
.ecom-footer .store-footer-link:hover { color: #fff; }

/* Float CTA ecommerce */
.ecom .store-float-cta {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
}
.ecom .store-float-cta:hover { box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5); }

/* Secciones genéricas ecom */
.ecom .store-section { padding: 5rem 0; }
.ecom .store-section-alt { background: #fff; border-color: rgba(0, 0, 0, 0.06); }
.ecom .store-h2 { color: #111827; }
.ecom .store-hr { height: 4px; border-radius: 4px; }
.ecom .store-prof-card {
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.ecom .store-date-card {
  border-radius: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.ecom .store-date-card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1); }
.ecom .store-testimonial {
  border-radius: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.ecom .store-contact-card {
  border-radius: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Botones en modales/formularios dentro de ecom */
.ecom .home-login-modal .btn-primary-pill,
.ecom .home-login-modal .btn-glass,
.ecom .store-contact-form .btn-primary-pill {
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}
.ecom .home-login-modal .btn-pill-outline,
.ecom .store-contact-form .btn-ghost {
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  color: #374151;
}
.ecom .home-login-modal .btn-pill-outline:hover,
.ecom .store-contact-form .btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple-bright);
}

@media (max-width: 767px) {
  .ecom-hero { padding-top: clamp(6rem, 20vw, 9rem); }
  .ecom-trust-inner { gap: 1.5rem 2rem; }
  .ecom-product-body { padding: 1.25rem 1.25rem 1.5rem; }
}

/* ========================================
   PLATFORM HERO — Estilo Coursera / Crehana / Duolingo
   ======================================== */
.platform-hero {
  padding: clamp(8rem, 24vw, 14rem) 1.5rem clamp(4rem, 12vw, 6rem);
  text-align: center;
}
.platform-hero-inner { max-width: 720px; margin: 0 auto; }
.platform-hero-headline {
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #111827;
  margin: 0 0 1rem 0;
}
.platform-hero-subhead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}
.platform-hero-support {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 2rem 0;
  line-height: 1.55;
}
.platform-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.platform-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.platform-btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
}
.platform-btn-secondary {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 12px;
  background: transparent;
  color: #374151;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.platform-btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple-bright);
  background: rgba(124, 58, 237, 0.06);
}

.platform-trust {
  padding: 1rem 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.platform-trust-inner {
  font-size: 0.95rem;
  color: #6b7280;
}
.platform-trust-inner strong { color: #111827; }
.platform-trust-sep {
  margin: 0 0.5rem;
  color: #d1d5db;
  user-select: none;
}

.platform-section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0 0 0.5rem 0;
}
.platform-section-desc {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 1.5rem 0;
  max-width: 560px;
}
.platform-section-desc.text-center,
.platform-catalog .platform-section-desc { margin-left: auto; margin-right: auto; }

.platform-catalog { padding-top: 4rem; padding-bottom: 5rem; }

/* Cómo funciona (3 pasos) */
.platform-how {
  padding: 4.5rem 0 5rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.platform-steps { max-width: 900px; margin: 0 auto; }
.platform-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fafafa;
  border-radius: 20px;
  border: 1px solid #f3f4f6;
  height: 100%;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.platform-step:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.platform-step-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 16px;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  color: var(--purple-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.platform-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
}
.platform-step-p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.55;
}

/* ========================================
   HERO V2 — Premium, jerarquía clara
   ======================================== */
.hero-v2 {
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5.5rem, 16vw, 9rem) 1.5rem 0;
  overflow: hidden;
}

.hero-v2-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  pointer-events: none;
}

.hero-v2-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}
.hero-v2-orb-1 {
  width: min(80vw, 600px);
  height: min(80vw, 600px);
  background: linear-gradient(135deg, #c4b5fd 0%, #7c3aed 50%, #5b21b6 100%);
  top: -20%;
  right: -15%;
}
.hero-v2-orb-2 {
  width: min(45vw, 320px);
  height: min(45vw, 320px);
  background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
  bottom: 5%;
  left: -8%;
}

.hero-v2-container {
  position: relative;
  z-index: 1;
}

.hero-v2-content {
  max-width: 600px;
}

.hero-v2-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin: 0 0 1rem 0;
}

.hero-v2-title {
  font-size: clamp(2.75rem, 7.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: #0f172a;
  margin: 0 0 1.25rem 0;
}

.hero-v2-sub {
  font-size: 1.2rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 2.25rem 0;
  max-width: 480px;
}

.hero-v2-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero-v2-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-v2-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.45);
}

.hero-v2-link {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero-v2-link:hover { color: var(--purple-bright); }

/* Trust bar premium */
.hero-v2-trust {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-v2-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.hero-v2-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
}
.hero-v2-trust-item i {
  font-size: 1rem;
  color: var(--purple-bright);
}
.hero-v2-trust-item strong { color: #0f172a; }

@media (max-width: 767px) {
  .hero-v2 { min-height: auto; padding-top: clamp(5rem, 22vw, 7.5rem); padding-bottom: 0; }
  .hero-v2-trust-inner { gap: 1rem 1.5rem; }
  .hero-v2-orb-1 { opacity: 0.3; }
  .hero-v2-orb-2 { opacity: 0.25; }
}

/* ========================================
   HERO DUOLINGO — Limpio, profesional, un CTA
   ======================================== */
.hero-duo {
  position: relative;
  padding: clamp(6rem, 18vw, 10rem) 1.5rem clamp(3rem, 10vw, 5rem);
  background: #fff;
  text-align: center;
}

.hero-duo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fafafa 0%, #fff 60%);
  pointer-events: none;
}

.hero-duo-container {
  position: relative;
  z-index: 1;
}

.hero-duo-content {
  max-width: 560px;
  margin: 0 auto;
}

.hero-duo-welcome {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple-bright);
  margin: 0 0 0.35rem 0;
}

.hero-duo-title {
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #0f172a;
  margin: 0 0 1.25rem 0;
}

.hero-duo-sub {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.hero-duo-cta-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.hero-duo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
}

.hero-duo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-duo-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
}

.hero-duo-sep {
  font-size: 0.9rem;
  color: #94a3b8;
}

.hero-duo-login {
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  background: none;
  border: none;
  color: var(--purple-bright);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}
.hero-duo-login:hover { color: var(--blue); }

.hero-duo-trust {
  position: relative;
  z-index: 1;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.5rem;
}
.hero-duo-trust strong { color: #334155; }
.hero-duo-trust span + span { margin-left: 0.25rem; }

@media (max-width: 480px) {
  .hero-duo-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-duo-cta {
    width: 100%;
    min-height: 48px;
  }
  .hero-duo-trust {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }
}

/* Cards de curso: leyenda + Registrarme + Acceder */
.course-card-legend {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-bright);
  margin: 0 0 0.5rem 0;
}

.course-card-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.course-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card-btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.25);
}
.course-card-btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.course-card-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.course-card-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.course-card .ecom-product-cta,
.course-card .ecom-product-overlay { display: none; }
.course-card .ecom-product-img { cursor: pointer; }
.course-card .ecom-product-img::before { display: none; }
.course-card:hover .ecom-product-overlay { display: none; }

/* ========================================
   PLATFORM HOME — Estilo Coursera: robusto y profesional
   ======================================== */

/* Skip link (accesibilidad) */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: var(--purple-bright);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Nav más limpio en platform-home */
.platform-home .store-nav.store-nav-scrolled,
.platform-home .store-nav {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e2e8f0;
}

/* Hero profesional (Coursera-style) */
.platform-home .platform-hero {
  position: relative;
  padding: clamp(4rem, 12vw, 6rem) 1.5rem clamp(3rem, 8vw, 4rem);
  background: #fff;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.platform-home .platform-hero-container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.platform-home .platform-hero-content {
  margin: 0 auto;
}

.platform-home .platform-hero-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-bright);
  margin: 0 0 1rem 0;
}

.platform-home .platform-hero-title {
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #0f172a;
  margin: 0 0 1.25rem 0;
}

.platform-home .platform-hero-desc {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.platform-home .platform-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.platform-home .platform-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 8px;
  background: var(--purple-bright);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.platform-home .platform-hero-cta:hover {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.platform-home .platform-hero-login {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.platform-home .platform-hero-login:hover {
  border-color: var(--purple);
  color: var(--purple-bright);
}

.platform-home .platform-hero-trust {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1rem 1.5rem;
}

.platform-home .platform-hero-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-size: 0.9rem;
  color: #64748b;
}

.platform-home .platform-hero-trust-inner span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-home .platform-hero-trust-inner i {
  color: var(--purple-bright);
  font-size: 1rem;
}

.platform-home .platform-hero-trust-inner strong {
  color: #334155;
}

/* Secciones: ritmo vertical consistente */
.platform-home .platform-section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.platform-home .platform-section-alt {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.platform-home .platform-section-header {
  margin-bottom: 2rem;
}

.platform-home .platform-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-bright);
  margin: 0 0 0.5rem 0;
}

.platform-home .platform-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.platform-home .platform-section-desc {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
  max-width: 560px;
}

.platform-home .platform-section-header.text-center .platform-section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Catálogo de cursos */
.platform-home .platform-catalog-section {
  padding-top: clamp(3rem, 6vw, 4rem);
  padding-bottom: clamp(3.5rem, 8vw, 5rem);
}

.platform-home .platform-course-grid {
  margin-top: 0.5rem;
}

/* Cards de curso más robustas (Coursera-style) */
.platform-home .platform-catalog-section .course-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.platform-home .platform-catalog-section .course-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #c7d2fe;
}

.platform-home .platform-catalog-section .store-card-body {
  padding: 1.25rem 1.5rem;
}

.platform-home .platform-catalog-section .store-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.platform-home .platform-catalog-section .store-card-p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* Cómo funciona */
.platform-home .platform-how .platform-steps {
  max-width: 920px;
  margin: 0 auto;
}

/* About: imagen + texto */
.platform-home .platform-about .store-about-img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.platform-home .platform-about .row {
  align-items: start;
}

.platform-home .platform-about p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.65;
}

/* Fechas */
.platform-home .platform-dates .store-date-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Testimonios */
.platform-home .platform-testimonials {
  background: #fff;
}

/* Contacto (sección compacta) */
.platform-home .platform-section.store-redes {
  padding: clamp(2rem, 5vw, 2.75rem) 1.5rem;
}

/* Footer multi-columna (Coursera-style) */
.platform-footer {
  padding: 3rem 0 1.5rem;
  background: #0f172a;
  color: #94a3b8;
}

.platform-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 3rem 2rem;
  align-items: start;
}

.platform-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.platform-footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.platform-footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin: 0 0 1rem 0;
}

.platform-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.platform-footer-col ul li {
  margin-bottom: 0.5rem;
}

.platform-footer-col ul li a {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.platform-footer-col ul li a:hover {
  color: #fff;
}

.platform-footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.platform-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 1.25rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.platform-footer-social a:hover {
  background: var(--purple-bright);
  color: #fff;
}

.platform-footer-divider {
  margin: 2rem 0 1.25rem;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.platform-footer-bottom {
  font-size: 0.875rem;
  color: #64748b;
}

.platform-footer-bottom p {
  margin: 0;
}

@media (max-width: 991px) {
  .platform-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .platform-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .platform-footer-brand {
    justify-content: center;
  }
  .platform-footer-col ul {
    text-align: left;
  }
  .platform-footer-social {
    align-items: center;
  }
}
