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

:root {
  --navy:      #1a3564;
  --navy2:     #1e3d6e;
  --steel:     #1e3d6e;
  --sky:       #3d6491;
  --sky-lt:    #5b82b0;
  --offwhite:  #f5f7fa;
  --cream:     #eef1f6;
  --white:     #ffffff;
  --light:     #d0dae8;
  --muted:     #7a8a99;
  --text:      #1a2535;
  --text2:     #3d5575;
  --accent:    #2c6fad;
  --accent2:   #1a8a72;
  --accent3:   #b8860b;
  --error:     #c0392b;
  --border:    #c8d6e5;
  --surface:   #f0f4f9;
  --surface2:  #e4ecf5;

  /* Legacy aliases (para compatibilidad con modulos existentes) */
  --azul-oscuro:  var(--navy);
  --azul-medio:   var(--navy2);
  --azul-acento:  var(--accent);
  --azul-claro:   var(--sky-lt);
  --dorado:       #c9a227;
  --dorado-claro: #e2bc4e;
  --blanco:       var(--white);
  --gris-claro:   var(--offwhite);
  --gris-texto:   var(--text2);
  --borde:        var(--border);
  --sombra:       0 2px 12px rgba(26,42,58,0.09);
  --sombra-hover: 0 8px 28px rgba(26,42,58,0.16);
  --radio:        12px;
  --radio-grande: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--offwhite);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--dorado);
  box-shadow: 0 2px 12px rgba(26,42,58,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  width: 42px;
  height: 42px;
  background: var(--dorado);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity .2s;
}
.header-logo:hover { opacity: .85; }

.header-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  line-height: 1.3;
  text-decoration: none;
  margin-right:auto;
}
.header-title span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: var(--dorado-claro);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.header-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}
.header-nav a {
  color: rgba(255,255,255,.68);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .18s;
}
.header-nav a:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

/* ── HERO PORTADA (index) ───────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-logos-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  z-index: 2;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.hero-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1) drop-shadow(0 1px 4px rgba(0,0,0,.35));
}

.hero-bg-numeral {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(180px, 28vw, 320px);
  font-weight: 700;
  color: rgba(255,255,255,.04);
  user-select: none;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
  letter-spacing: -.02em;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 130px 40px 64px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.4);
  color: var(--dorado-claro);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 10px;
}
.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,.65);
}

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.62);
  line-height: 1.75;
  max-width: 560px;
  margin: 14px auto 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--dorado-claro);
}
.hero-stat span {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── MODULOS GRID (index) ────────────────────────────────── */
.modulos-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 28px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-titulo {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
}

.modulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 20px;
}

.modulo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radio-grande);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .22s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sombra);
}
.modulo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-color, var(--accent));
  border-radius: var(--radio-grande) var(--radio-grande) 0 0;
}
.modulo-card:hover {
  box-shadow: var(--sombra-hover);
  transform: translateY(-3px);
  border-color: var(--light);
}

.modulo-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.modulo-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  background: var(--card-bg, var(--surface2));
  flex-shrink: 0;
}
.modulo-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}
.modulo-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}
.modulo-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--accent);
}
.modulo-arrow {
  font-size: 17px;
  color: var(--card-color, var(--accent));
  align-self: flex-end;
  transition: transform .2s;
}
.modulo-card:hover .modulo-arrow { transform: translateX(4px); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 26px;
  font-size: 13px;
  border-top: 3px solid var(--dorado);
}
.site-footer strong { color: var(--dorado-claro); }

/* ── MODULO PAGE HERO ────────────────────────────────────── */
.modulo-hero {
  background: var(--navy);
  padding: 44px 28px 52px;
  border-bottom: 3px solid var(--dorado);
}
.modulo-hero-inner { max-width: 1100px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--dorado-claro); }
.breadcrumb-sep { color: rgba(255,255,255,.28); }
.breadcrumb-current { color: rgba(255,255,255,.82); }

.modulo-hero-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dorado-claro);
  margin-bottom: 10px;
}
.modulo-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}
.modulo-hero p {
  font-size: 14.5px;
  color: rgba(255,255,255,.62);
  line-height: 1.72;
  max-width: 600px;
}

/* ── CAPSULAS ───────────────────────────────────────────── */
.capsulas-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 28px 68px;
}

.capsula {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radio-grande);
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--sombra);
}

.capsula-header {
  padding: 20px 26px;
  background: var(--navy);
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 3px solid var(--dorado);
}
.capsula-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--dorado);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  flex-shrink: 0;
}
.capsula-titulo {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.capsula-body { padding: 26px; }
.capsula-bloque { margin-bottom: 22px; }
.capsula-bloque:last-child { margin-bottom: 0; }

.bloque-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.bloque-label-icon {
  width: 21px; height: 21px;
  background: var(--surface2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.capsula-bloque p, .capsula-bloque li {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
}
.capsula-bloque ol, .capsula-bloque ul { padding-left: 20px; }
.capsula-bloque li { margin-bottom: 6px; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ── VIDEO PLAYER ────────────────────────────────────────── */
.video-bloque-fullwidth { margin-left: -26px; margin-right: -26px; }
.video-player-section { background: #111827; overflow: hidden; }
.video-player-layout { display: flex; min-height: 380px; }
.video-main { flex: 1; display: flex; flex-direction: column; background: #000; }
.video-embed-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.video-embed-wrapper iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.video-embed-wrapper .video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #111827; color: #fff;
  gap: 12px; cursor: pointer;
}
.video-placeholder-icon {
  width: 60px; height: 60px;
  background: rgba(44,111,173,.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border: 2px solid rgba(91,130,176,.5);
  transition: background .2s;
}
.video-placeholder:hover .video-placeholder-icon { background: rgba(44,111,173,.55); }
.video-placeholder-title {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 0 1rem; max-width: 280px;
}
.video-info-bar {
  background: #1a2535;
  padding: 9px 14px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.video-info-title {
  font-size: 12.5px; font-weight: 500; color: #fff;
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-info-meta { font-size: 11px; color: rgba(255,255,255,.45); white-space: nowrap; }

.video-sidebar {
  width: 275px;
  background: #1a2535;
  border-left: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; overflow: hidden;
}
.sidebar-header {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .04em;
}
.sidebar-list {
  flex: 1; overflow-y: auto;
  max-height: 320px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.sidebar-list::-webkit-scrollbar { width: 4px; }
.sidebar-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 2px; }

.video-item {
  display: flex; align-items: flex-start;
  gap: 9px; padding: 9px 13px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
.video-item:hover { background: rgba(44,111,173,.15); }
.video-item.active { background: rgba(44,111,173,.22); border-left: 3px solid var(--accent); }
.video-item.completed .item-check { background: var(--accent2); border-color: var(--accent2); }

.item-check {
  width: 15px; height: 15px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.28);
  flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #fff;
}
.item-info { flex: 1; min-width: 0; }
.item-title { font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.4; margin-bottom: 3px; }
.video-item.active .item-title { color: #fff; font-weight: 500; }
.item-duration { font-size: 10px; color: rgba(255,255,255,.38); }
.item-now-playing { font-size: 10px; color: var(--sky-lt); font-weight: 500; display: none; }
.video-item.active .item-now-playing { display: block; }

/* ── PROGRESS BAR ────────────────────────────────────────── */
.capsula-progress {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 1rem;
  padding: 7px 12px;
  background: var(--surface2);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}
.progress-label { font-size: 11px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.progress-bar-track {
  flex: 1; height: 5px;
  background: var(--light); border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: var(--accent);
  border-radius: 3px; transition: width .4s ease;
}
.progress-count { font-size: 11px; color: var(--accent); white-space: nowrap; }

/* ── INDEX VIDEO PLAYER ─────────────────────────────────── */
.video-index-section {
  background: #111827;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 56px;
  box-shadow: 0 6px 32px rgba(26,42,58,.18);
  border: 1px solid rgba(44,111,173,.2);
}
.video-index-header {
  padding: 20px 26px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.video-index-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700; color: #fff; flex: 1;
}
.video-index-subtitle {
  font-size: 11px; color: rgba(255,255,255,.42);
  text-transform: uppercase; letter-spacing: .08em;
}
.video-index-badge {
  background: rgba(44,111,173,.2);
  border: 1px solid rgba(91,130,176,.4);
  color: #93c5fd;
  font-size: 10px; font-weight: 700;
  padding: 3px 11px; border-radius: 999px; letter-spacing: .05em;
}
.video-index-progress {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 26px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.video-index-progress .progress-label { font-size: 11px; color: var(--sky-lt); font-weight: 600; }
.video-index-layout { display: flex; min-height: 500px; }
.video-index-main { flex: 1; display: flex; flex-direction: column; background: #000; }
.video-index-embed {
  position: relative; width: 100%; padding-top: 56.25%; background: #000;
}
.video-index-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-index-embed .video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #111827 0%, #1e3a5f 100%);
  color: #fff; gap: 14px; cursor: pointer;
}
.video-index-embed .video-placeholder-icon {
  width: 76px; height: 76px;
  background: rgba(44,111,173,.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  transition: background .2s, transform .2s;
  border: 2px solid rgba(91,130,176,.4);
}
.video-index-embed .video-placeholder:hover .video-placeholder-icon {
  background: rgba(44,111,173,.45); transform: scale(1.08);
}
.video-index-embed .video-placeholder-title {
  font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,.9);
}
.video-index-embed .video-placeholder-sub { font-size: 12px; color: rgba(255,255,255,.4); }
.video-index-infobar {
  background: #1a2535; padding: 11px 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.video-index-sidebar {
  width: 315px; background: #1a2535;
  border-left: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; overflow: hidden;
}
.sidebar-group-label {
  padding: 10px 14px 5px;
  font-size: 9px; font-weight: 700;
  color: rgba(255,255,255,.32);
  text-transform: uppercase; letter-spacing: .1em;
}

/* ── BOTONES RECURSO ─────────────────────────────────────── */
.botones-recursos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.btn-recurso {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  transition: all .18s;
  border: 1.5px solid transparent;
}
.btn-recurso:hover { background: var(--accent); transform: translateY(-1px); }

.btn-recurso.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-recurso.secondary:hover { background: var(--accent); color: var(--white); }

.btn-recurso.dorado { background: var(--dorado); color: var(--navy); }
.btn-recurso.dorado:hover { background: var(--dorado-claro); }

/* ── NAV MODULOS ─────────────────────────────────────────── */
.nav-modulos {
  max-width: 1100px; margin: 0 auto 44px; padding: 0 28px;
  display: flex; justify-content: space-between; gap: 16px;
}
.nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  color: var(--navy); text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--radio);
  font-size: 13px; font-weight: 500;
  transition: all .18s; box-shadow: var(--sombra);
}
.nav-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── VIDEO WRAPPER (legacy) ──────────────────────────────── */
.video-wrapper {
  position: relative; padding-top: 56.25%;
  border-radius: 11px; overflow: hidden; background: #000;
}
.video-wrapper iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

/* ── CAROUSEL ────────────────────────────────────────────── */
.carousel-wrapper { position: relative; margin: 0 0 56px; }
.carousel-overflow { overflow: hidden; border-radius: 16px; }
.carousel-track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }

.carousel-slide {
  min-width: 100%; display: flex;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,42,58,.14);
}
.slide-header {
  width: 270px; min-width: 270px;
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 10px; color: #fff;
}
.slide-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255,255,255,.15); border-radius: 999px;
  padding: 4px 11px; display: inline-block; align-self: flex-start;
  color: rgba(255,255,255,.88);
}
.slide-icon { font-size: 40px; margin: 6px 0 3px; }
.slide-title {
  font-family: 'Syne', sans-serif;
  font-size: 19px; font-weight: 700; color: #fff;
  margin: 0; line-height: 1.28;
}
.slide-subtitle { font-size: 11.5px; color: rgba(255,255,255,.55); margin: 0; }

.slide-body {
  flex: 1; background: #1a2535;
  padding: 26px 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.slide-intro { font-size: 13.5px; color: rgba(255,255,255,.6); margin: 0; line-height: 1.65; }
.slide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.slide-list li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; color: rgba(255,255,255,.8); line-height: 1.5;
}
.slide-list li strong { color: #fff; font-weight: 600; }
.sl-dot { width: 7px; height: 7px; min-width: 7px; border-radius: 50%; margin-top: 5px; }
.slide-tools {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.tool-chip {
  font-size: 10.5px; font-weight: 600;
  padding: 3px 11px; border-radius: 999px;
  border: 1px solid; letter-spacing: .04em;
}

.carousel-controls {
  display: flex; align-items: center;
  justify-content: center; gap: 14px; margin-top: 18px;
}
.carousel-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--white); color: var(--accent);
  font-size: 19px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s, transform .12s;
  line-height: 1;
}
.carousel-btn:hover { background: var(--accent); color: #fff; }
.carousel-btn:active { transform: scale(.92); }
.carousel-btn:disabled { opacity: .22; cursor: default; pointer-events: none; }
.carousel-dots { display: flex; gap: 7px; align-items: center; }
.cdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--light); cursor: pointer;
  transition: background .2s, transform .2s;
}
.cdot.active { background: var(--accent); transform: scale(1.4); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .carousel-slide { flex-direction: column; }
  .slide-header { width: 100%; min-width: unset; padding: 22px 20px; }
  .slide-body { padding: 20px; }
  .video-index-layout { flex-direction: column; }
  .video-index-sidebar { width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
  .sidebar-list { max-height: 200px; }
}

@media (max-width: 640px) {
  .header-nav { display: none; }
  .hero { min-height: auto; }
  .hero-logos-bar { padding: 16px 20px; gap: 20px; }
  .hero-logo-img { height: 38px; }
  .hero-content { padding: 110px 22px 48px; }
  .modulos-section { padding: 36px 18px; }
  .capsulas-container { padding: 26px 18px 48px; }
  .capsula-body { padding: 18px; }
  .capsula-header { padding: 16px 18px; }
  .hero-stats { gap: 18px; }
  .nav-modulos { flex-direction: column; }
  .video-bloque-fullwidth { margin-left: -18px; margin-right: -18px; }
  .video-player-layout { flex-direction: column; }
  .video-sidebar { width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
}

/* ── LOGO HOVER ─────────────────────────────────────────── */
.hero-logo-img {
  transition: opacity .22s, transform .22s, filter .22s;
}
.hero-logo-img:hover {
  opacity: 1 !important;
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 4px 14px rgba(255,255,255,0.25)) brightness(1.12);
}

