/* ============================================================
   HUB Vitacura · Academia
   Identidad visual oficial — Vibrant Tropical Teal, Lime Zest,
   Vivid Magenta, Royal Blue. Geométrica, modular, accesible.
   ============================================================ */

:root {
  /* Brand palette */
  --teal: #2DB5AC;
  --teal-deep: #1F8F88;
  --teal-soft: #DCF3F1;
  --teal-glow: rgba(45, 181, 172, 0.18);

  --lime: #BFD730;
  --lime-deep: #93A720;
  --lime-soft: #F2F8D6;

  --magenta: #D10074;
  --magenta-deep: #A40058;
  --magenta-soft: #FCE0EF;
  --magenta-glow: rgba(209, 0, 116, 0.14);

  --blue: #4169E1;
  --blue-deep: #2F50B5;
  --blue-soft: #E1E8FB;

  --ink: #3E4543;
  --ink-soft: #5E6764;
  --ink-mute: #8C9591;
  --line: #ECEFEE;
  --line-strong: #D8DDDB;
  --bg: #FFFFFF;
  --bg-tint: #FAFBFA;

  /* Type scale */
  --font: "Inter", "Apex New", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii — generous */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadows — subtle with brand-tint */
  --shadow-card: 0 1px 2px rgba(62, 69, 67, 0.04), 0 8px 24px rgba(62, 69, 67, 0.06);
  --shadow-lift: 0 6px 18px rgba(62, 69, 67, 0.08), 0 24px 64px rgba(62, 69, 67, 0.08);
  --shadow-teal: 0 12px 40px rgba(45, 181, 172, 0.18);
  --shadow-magenta: 0 12px 40px rgba(209, 0, 116, 0.14);

  /* Easing */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on, "cv11" on;
}

a { color: var(--teal-deep); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--magenta); }

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

::selection { background: var(--lime); color: var(--ink); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 16px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.topbar-logos {
  display: flex; align-items: center; gap: 18px;
  transition: opacity 0.2s var(--ease);
}

.topbar-logos:hover { opacity: 0.78; }

.topbar-logos img { height: 36px; width: auto; object-fit: contain; }
.topbar-logos img.topbar-ozor { height: 28px; }

.topbar-logos .divider {
  width: 1px; height: 22px;
  background: var(--line-strong);
}

.topbar-nav {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.topbar-nav a {
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.topbar-nav a:hover {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

/* ============================================================
   LANDING — HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 36px 56px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Decorative shapes */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.hero::before {
  width: 480px; height: 480px;
  background: var(--teal-glow);
  top: -120px; right: -80px;
}

.hero::after {
  width: 360px; height: 360px;
  background: var(--magenta-glow);
  bottom: -140px; left: -100px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 28px;
}

/* Ozor brand pill — promotes the make-your-own-videos path */
.ozor-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-card);
}

.ozor-pill img {
  height: 22px;
  width: auto;
  display: block;
}

.ozor-pill strong {
  color: var(--ink);
  font-weight: 700;
}

.ozor-pill-link {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  margin-bottom: 20px;
}

.hero .ozor-pill-link { display: flex; }

.ozor-pill-link:hover {
  transform: translateY(-1px);
  border-color: var(--magenta-soft);
  box-shadow: var(--shadow-magenta);
  color: var(--ink);
}

.ozor-pill-link .arrow {
  color: var(--magenta);
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}

.ozor-pill-link:hover .arrow { transform: translateX(3px); }

.hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 14ch;
}

.hero h1 .accent-teal { color: var(--teal); }
.hero h1 .accent-magenta { color: var(--magenta); }
.hero h1 .accent-blue { color: var(--blue); }

.hero h1 .underline {
  position: relative; display: inline-block;
  white-space: nowrap;
}

.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 0.18em;
  background: var(--lime);
  z-index: -1;
  border-radius: 4px;
}

.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.55;
  margin: 0 0 36px;
}

.hero-cta-row {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}

.btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: -0.005em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), color 0.18s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: white;
}

.btn-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

.btn-primary:disabled {
  background: var(--line-strong);
  color: var(--ink-mute);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 22px;
}

.btn-ghost:hover { color: var(--magenta); }

.btn .arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .arrow { transform: translateX(3px); }

.hero-stats {
  display: flex; gap: 56px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex; flex-direction: column; gap: 4px;
}

.hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-stat-num.teal { color: var(--teal); }
.hero-stat-num.magenta { color: var(--magenta); }
.hero-stat-num.blue { color: var(--blue); }

.hero-stat-label {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* ============================================================
   COURSE CARDS GRID
   ============================================================ */
.section-courses {
  padding: 64px 36px 96px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}

.section-head p {
  color: var(--ink-mute);
  font-size: 15px;
  margin: 0;
  max-width: 360px;
}

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.course-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  min-height: 380px;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-bg, transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 0;
}

.course-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--accent, var(--teal));
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
  z-index: 1;
}

.course-card > * { position: relative; z-index: 2; }

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}

.course-card[data-accent="teal"]:hover { box-shadow: var(--shadow-teal); }
.course-card[data-accent="magenta"]:hover { box-shadow: var(--shadow-magenta); }

.course-card.disabled { cursor: not-allowed; opacity: 0.88; }
.course-card.disabled:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--line); }

.course-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--accent-soft, var(--teal-soft));
  color: var(--accent, var(--teal-deep));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

.course-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.course-tag-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft, var(--teal-soft));
  color: var(--accent, var(--teal-deep));
}

.course-tag.available::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.course-tag.soon {
  background: var(--line);
  color: var(--ink-mute);
}

.course-modules-tag {
  color: var(--ink-mute);
}

.course-card h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

.course-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.course-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.course-cta-text {
  font-weight: 600;
  color: var(--accent, var(--teal-deep));
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}

.course-card:hover .course-cta-text .arrow { transform: translateX(4px); }
.course-cta-text .arrow { transition: transform 0.2s var(--ease); }

.course-meta-mini {
  font-size: 13px;
  color: var(--ink-mute);
}

/* Distinct accent themes */
.course-card[data-accent="teal"] { --accent: var(--teal); --accent-soft: var(--teal-soft); }
.course-card[data-accent="magenta"] { --accent: var(--magenta); --accent-soft: var(--magenta-soft); }
.course-card[data-accent="blue"] { --accent: var(--blue); --accent-soft: var(--blue-soft); }

/* ============================================================
   COURSE PAGE HEADER
   ============================================================ */
.course-header {
  padding: 64px 36px 48px;
  background: linear-gradient(180deg, var(--teal-soft) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.course-header[data-accent="magenta"] {
  background: linear-gradient(180deg, var(--magenta-soft) 0%, transparent 100%);
}

.course-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}

.breadcrumb a {
  color: var(--ink-soft);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}

.breadcrumb a:hover { color: var(--teal-deep); }

.breadcrumb .sep { color: var(--ink-mute); opacity: 0.6; }

.course-header .pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: white;
  color: var(--teal-deep);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--teal-soft);
  margin-bottom: 20px;
}

.course-header[data-accent="magenta"] .pill {
  color: var(--magenta);
  border-color: var(--magenta-soft);
}

.course-header h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 20px;
  color: var(--ink);
  max-width: 18ch;
}

.course-header p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 620px;
  line-height: 1.55;
  margin: 0;
}

/* Progress */
.progress-wrap {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 36px;
}

.progress-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow-card);
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  width: 0;
  transition: width 0.5s var(--ease);
  border-radius: var(--r-pill);
}

.progress-label {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

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

/* ============================================================
   MODULES
   ============================================================ */
.modules {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 36px 64px;
  display: flex; flex-direction: column; gap: 32px;
}

.module {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.module:hover { box-shadow: var(--shadow-card); }
.module.completed { border-color: var(--teal); }
.module.locked { opacity: 1; }

.module-head {
  padding: 24px 28px;
  display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid var(--line);
}

.module-chip {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.module[data-color="lime"] .module-chip { background: var(--lime-soft); color: var(--lime-deep); }
.module[data-color="magenta"] .module-chip { background: var(--magenta-soft); color: var(--magenta); }
.module[data-color="blue"] .module-chip { background: var(--blue-soft); color: var(--blue-deep); }

.module.locked .module-chip {
  background: var(--line);
  color: var(--ink-mute);
}

.module.completed .module-chip {
  background: var(--teal);
  color: white;
}

.module-titles { flex: 1; min-width: 0; }

.module-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
  margin-bottom: 4px;
}

.module-titles h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0;
  line-height: 1.2;
  color: var(--ink);
}

.module-subtitle {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
}

.module-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-tint);
  color: var(--ink-mute);
  border: 1px solid var(--line);
  flex-shrink: 0;
  margin-left: auto;
}

.module.locked .module-status {
  background: var(--bg-tint);
  color: var(--ink-mute);
}

.module:not(.locked):not(.completed) .module-status {
  background: var(--lime-soft);
  color: var(--lime-deep);
  border-color: var(--lime-soft);
}

.module.completed .module-status {
  background: var(--teal-soft);
  color: var(--teal-deep);
  border-color: var(--teal-soft);
}

.module-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.module.locked .module-status .dot { background: var(--ink-mute); opacity: 0.5; }

/* Body — video + side material */
.module-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  position: relative;
}

@media (max-width: 920px) {
  .module-body { grid-template-columns: 1fr; }
}

.module-video {
  position: relative;
  background: #0F1413;
  aspect-ratio: 16/9;
  width: 100%;
}

.module-video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.module-content {
  padding: 32px;
  border-left: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-height: 580px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

@media (max-width: 920px) {
  .module-content { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
}

.module-content::-webkit-scrollbar { width: 6px; }
.module-content::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }

.module-content h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 12px;
}

.module-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 8px;
  letter-spacing: -0.005em;
}

.module-content h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--magenta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 20px 0 8px;
}

.module-content p { margin: 0 0 12px; }

.module-content ul, .module-content ol { margin: 0 0 14px; padding-left: 22px; }
.module-content li { margin-bottom: 5px; }
.module-content li::marker { color: var(--teal); }

.module-content strong { color: var(--ink); font-weight: 600; }

.module-content blockquote {
  border-left: 3px solid var(--lime);
  padding: 6px 0 6px 14px;
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  background: var(--lime-soft);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}

.module-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.module-content th, .module-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.module-content tr:last-child td { border-bottom: 0; }

.module-content th {
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-tint);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Quiz */
.module-quiz {
  padding: 28px 28px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-tint) 0%, white 60%);
}

.quiz-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 22px;
}

.quiz-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--magenta);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.quiz-head-text h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 2px;
}

.quiz-head-text p {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin: 0;
}

.quiz-questions {
  display: grid;
  gap: 18px;
}

@media (min-width: 760px) {
  .quiz-questions { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.quiz-question {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.quiz-question.is-correct {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.quiz-question.is-wrong {
  border-color: var(--magenta);
}

.quiz-q {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 14px;
  display: flex; gap: 8px;
}

.quiz-q-num {
  flex-shrink: 0;
  color: var(--magenta);
  font-weight: 800;
}

.quiz-options {
  display: flex; flex-direction: column;
  gap: 8px;
}

.quiz-option {
  display: flex; align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
  background: white;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

.quiz-option:hover {
  border-color: var(--line-strong);
  background: var(--bg-tint);
}

.quiz-option input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  margin-top: 2px;
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.18s var(--ease);
}

.quiz-option input:checked {
  border-color: var(--teal);
}

.quiz-option input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--teal);
}

.quiz-option.is-selected-correct {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--ink);
}

.quiz-option.is-selected-correct input { border-color: var(--teal); }
.quiz-option.is-selected-correct input::after { background: var(--teal); }

.quiz-option.is-selected-wrong {
  border-color: var(--magenta);
  background: var(--magenta-soft);
  color: var(--magenta-deep);
}

.quiz-option.is-selected-wrong input { border-color: var(--magenta); }
.quiz-option.is-selected-wrong input:checked::after { background: var(--magenta); }

.quiz-feedback {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 6px;
}

.quiz-feedback.show { display: inline-flex; }
.quiz-feedback.ok { color: var(--teal-deep); }
.quiz-feedback.err { color: var(--magenta); }

.quiz-feedback::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M20 6L9 17l-5-5'/></svg>") center/12px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M20 6L9 17l-5-5'/></svg>") center/12px no-repeat;
}

.quiz-feedback.err::before {
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M18 6L6 18M6 6l12 12'/></svg>") center/12px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M18 6L6 18M6 6l12 12'/></svg>") center/12px no-repeat;
}

/* When module is already completed, dim the quiz */
.module.completed .module-quiz {
  opacity: 0.7;
  pointer-events: none;
}

/* Footer */
.module-footer {
  padding: 18px 28px;
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
}

.module-footer .hint {
  font-size: 13px;
  color: var(--ink-mute);
  flex: 1;
}

.module-footer .btn-primary {
  background: var(--teal);
}

.module-footer .btn-primary:hover {
  background: var(--teal-deep);
}

.module-footer .btn-primary:disabled {
  background: var(--line-strong);
  color: var(--ink-mute);
}

.module.completed .btn-primary {
  background: var(--teal-deep);
  color: white;
}

/* Lock overlay */
.lock-overlay {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  z-index: 5;
  padding: 32px;
  text-align: center;
}

.module:not(.locked) .lock-overlay { display: none; }

.lock-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 8px;
  color: var(--ink-mute);
}

.lock-icon-wrap svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

.lock-title {
  font-size: 18px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.lock-text {
  font-size: 14px;
  color: var(--ink-mute);
  max-width: 280px;
}

/* Reset link */
.modules-foot {
  text-align: center;
  padding: 0 36px 64px;
}

.reset-progress {
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.reset-progress:hover {
  color: var(--magenta);
  background: var(--magenta-soft);
}

/* ============================================================
   COMING SOON
   ============================================================ */
.coming-soon {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 36px 96px;
  text-align: center;
}

.coming-soon .badge {
  display: inline-block;
  background: var(--magenta-soft);
  color: var(--magenta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  margin-bottom: 24px;
}

.coming-soon h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.05;
}

.coming-soon p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 32px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 0 36px 96px;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-banner-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--teal-soft) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, var(--magenta-soft) 0%, transparent 55%),
    linear-gradient(135deg, #fafbfa 0%, #ffffff 100%);
  border: 1px solid var(--line);
  padding: 56px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.cta-banner-copy { flex: 1 1 420px; max-width: 640px; }

.cta-banner-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}

.cta-banner h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}

.cta-banner h2 .accent-magenta { color: var(--magenta); }

.cta-banner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
}

.cta-banner-btn { flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  padding: 48px 36px;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex; align-items: center; gap: 14px;
}

.footer-brand img { height: 28px; }
.footer-brand .divider { width: 1px; height: 18px; background: var(--line-strong); }
.footer-brand-text {
  font-size: 13px;
  color: var(--ink-mute);
}

.made-with-ozor {
  display: inline-flex; align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
}

.made-with-ozor a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.made-with-ozor a:hover {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
}

/* ============================================================
   CHOOSER PAGE (crear-videos.html)
   ============================================================ */
.chooser-hero {
  position: relative;
  padding: 96px 36px 32px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.chooser-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.chooser-hero .ozor-pill {
  margin-bottom: 32px;
}

.chooser-hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  color: var(--ink);
}

.chooser-hero h1 .accent-teal { color: var(--teal); }

.chooser-lead {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 560px;
}

.chooser-cards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 36px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.chooser-card {
  appearance: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  min-height: 360px;
}

.chooser-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--accent, var(--teal));
}

.chooser-card[data-accent="teal"] { --accent: var(--teal); --accent-soft: var(--teal-soft); }
.chooser-card[data-accent="magenta"] { --accent: var(--magenta); --accent-soft: var(--magenta-soft); }

.chooser-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
}

.chooser-card[data-accent="teal"]:hover { box-shadow: var(--shadow-teal); }
.chooser-card[data-accent="magenta"]:hover { box-shadow: var(--shadow-magenta); }

.chooser-card-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}

.chooser-card-icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.chooser-card-tag {
  display: inline-flex; align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.chooser-card h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

.chooser-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.chooser-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.chooser-card-cta .arrow { transition: transform 0.2s var(--ease); }
.chooser-card:hover .chooser-card-cta .arrow { transform: translateX(4px); }

.chooser-foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 36px 96px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-mute);
}

.chooser-foot a {
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 1px;
}

.chooser-foot a:hover {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
}

@media (max-width: 720px) {
  .topbar { padding: 14px 20px; }
  .hero { padding: 64px 20px 48px; }
  .section-courses { padding: 40px 20px 64px; }
  .course-card { padding: 28px; min-height: auto; }
  .modules { padding: 32px 20px 48px; }
  .module-head { padding: 18px 20px; gap: 14px; flex-wrap: wrap; }
  .module-status { margin-left: 0; }
  .module-content { padding: 24px 20px; }
  .module-footer { padding: 14px 20px; flex-direction: column; align-items: stretch; }
  .module-footer .btn { width: 100%; justify-content: center; }
  .progress-wrap { padding: 0 20px; }
  .progress-card { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; }
  .site-footer { padding: 32px 20px; }
  .hero-stats { gap: 32px; margin-top: 48px; }
  .hero-stat-num { font-size: 28px; }
  .cta-banner { padding: 0 20px 64px; }
  .cta-banner-inner { padding: 32px 24px; gap: 24px; }
  .cta-banner-btn { width: 100%; justify-content: center; }
  .chooser-hero { padding: 56px 20px 16px; }
  .chooser-cards { padding: 32px 20px 16px; gap: 20px; }
  .chooser-card { padding: 28px; min-height: auto; }
  .chooser-card h2 { font-size: 22px; }
  .chooser-foot { padding: 16px 20px 64px; }
  .ozor-pill { font-size: 12px; padding: 5px 12px 5px 6px; }
  .ozor-pill img { height: 18px; }
}
