:root {
  --sidebar-w: 250px;
  --navy-950: #041c3a;
  --navy-900: #052a57;
  --navy-800: #06356e;
  --navy-700: #0a4488;
  --brand-blue: #0d6efd;
  --brand-blue-dark: #0774f8;
  --brand-light: #52b3f4;
  --bg: #f4f7fb;
  --card-border: #e6eaf2;
  --text-main: #1c2b3a;
  --text-muted: #64748b;
  --gold: #c9a961;
  --gold-dark: #9c7d3d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
}

h1, h2, h3, .sidebar-brand, .login-tagline {
  font-family: "Poppins", "Inter", sans-serif;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-w);
  background:
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1.4px) 0 0/24px 24px,
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  box-shadow: 4px 0 24px rgba(4, 28, 58, 0.18);
  overflow-y: auto;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='500' viewBox='0 0 250 500'%3E%3Cpath d='M20 460 C 80 380, 60 260, 140 190 S 220 60, 210 20' stroke='%23ffffff' stroke-width='1.4' fill='none' stroke-dasharray='1 9' stroke-linecap='round' opacity='0.10'/%3E%3Ccircle cx='20' cy='460' r='3' fill='%23c9a961' opacity='0.35'/%3E%3Ccircle cx='210' cy='20' r='3' fill='%23c9a961' opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 0;
}
.sidebar > * { position: relative; z-index: 1; }

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
}

.sidebar-logo {
  width: 100%;
  max-width: 168px;
  height: auto;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}

.sidebar-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-light);
  text-align: center;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.sidebar-nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-nav a.active {
  background: linear-gradient(90deg, var(--brand-blue-dark), var(--brand-light));
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
}

.sidebar-logout { margin-top: 12px; }
.sidebar-logout .btn {
  color: #cbd5e1;
  border-color: rgba(255,255,255,0.18);
}
.sidebar-logout .btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

/* --- Main content --- */
.main-content {
  margin-left: var(--sidebar-w);
  padding: 30px 36px;
  width: 100%;
}

/* --- Mobile navigation --- */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--navy-950);
  color: #fff;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.mobile-topbar img { height: 26px; }
.mobile-menu-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
  display: flex;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 15, 36, 0.5);
  z-index: 999;
}

@media (max-width: 900px) {
  .mobile-topbar { display: flex; }
  .sidebar-backdrop.show { display: block; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1000;
    width: 270px;
  }
  .sidebar.show { transform: translateX(0); }
  .main-content {
    margin-left: 0;
    padding: 20px 16px 30px;
    padding-top: 76px;
  }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.page-header h1 {
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0;
  color: var(--navy-950);
}

.stat-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  height: 100%;
  box-shadow: 0 2px 10px rgba(4, 28, 58, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(4, 28, 58, 0.1);
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: var(--navy-900);
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-panel {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(4, 28, 58, 0.04);
}

.feedback-item {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
}
.feedback-item-unread { border-color: var(--brand-blue); background: #f5faff; }
.feedback-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.feedback-item-message {
  white-space: pre-wrap;
  color: var(--text-main);
  margin-bottom: 10px;
}
.feedback-item-thumb {
  max-width: 260px;
  max-height: 220px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.table thead th {
  border-bottom: 2px solid var(--card-border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  font-weight: 600;
}

.table a { color: var(--navy-900); }
.table a:hover { color: var(--brand-blue-dark); }

.badge-doc {
  background: #e8f2ff;
  color: var(--navy-800);
  font-weight: 500;
  border: 1px solid #d3e6fb;
}

/* --- Buttons --- */
.btn-brand {
  background: linear-gradient(90deg, var(--navy-800), var(--brand-blue-dark));
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 11px;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(7, 116, 248, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-brand:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(7, 116, 248, 0.34); }

.btn-primary {
  background: linear-gradient(90deg, var(--navy-800), var(--brand-blue-dark));
  border: none;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(7, 116, 248, 0.22);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(7, 116, 248, 0.3); }

.btn-outline-secondary { border-color: #d5dbe5; color: var(--navy-900); }
.btn-outline-secondary:hover { background: var(--navy-900); border-color: var(--navy-900); }

/* --- Login --- */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1.4px) 0 0/26px 26px,
    radial-gradient(circle at 20% 20%, var(--navy-800) 0%, var(--navy-950) 55%, #020e20 100%);
  position: relative;
  overflow: hidden;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='500' viewBox='0 0 900 500'%3E%3Cpath d='M60 420 C 250 340, 380 460, 520 320 S 760 120, 840 70' stroke='%23ffffff' stroke-width='1.6' fill='none' stroke-dasharray='1 10' stroke-linecap='round' opacity='0.16'/%3E%3Ccircle cx='60' cy='420' r='4' fill='%23c9a961' opacity='0.55'/%3E%3Ccircle cx='840' cy='70' r='4' fill='%23c9a961' opacity='0.55'/%3E%3Cg transform='translate(500,340) rotate(-28)'%3E%3Cpath d='M0 0 L14 2 L18 -1 L20 0 L18 2 L20 4 L18 5 L14 3 L0 5 Z' fill='%23c9a961' opacity='0.45'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.login-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,179,244,0.28) 0%, rgba(82,179,244,0) 70%);
  top: -180px;
  right: -180px;
  pointer-events: none;
}

.login-card {
  background: #fff;
  border-radius: 18px;
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 30px 70px rgba(2, 14, 32, 0.45);
  position: relative;
}

.login-logo {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: 14px;
}

.login-tagline {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
  letter-spacing: 0.01em;
  margin: 0;
}

.login-rule {
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
  margin: 10px auto 0;
}

.login-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.login-footer {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* --- Filters / forms --- */
.filter-bar {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(4, 28, 58, 0.04);
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand-blue-dark);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.chip-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.chip-status.activo { background: #dcfce7; color: #166534; }
.chip-status.inactivo { background: #fee2e2; color: #991b1b; }
.chip-status.pausado { background: #fef9c3; color: #854d0e; }

/* --- Portal de Comercializadoras --- */
.portal-nav a {
  align-items: flex-start;
  padding: 10px 12px;
}

.portal-nav-num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.portal-nav a.active .portal-nav-num { background: rgba(255,255,255,0.25); }

.portal-nav-text { display: flex; flex-direction: column; line-height: 1.25; }
.portal-nav-title { font-weight: 600; font-size: 0.9rem; }
.portal-nav-sub { font-size: 0.72rem; color: rgba(255,255,255,0.55); }
.portal-nav a.active .portal-nav-sub { color: rgba(255,255,255,0.85); }

.portal-support-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 0.8rem;
}
.portal-support-icon { font-size: 1.2rem; color: var(--brand-light); margin-bottom: 4px; }

.portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}
.portal-topbar-title { font-weight: 600; color: var(--navy-950); font-size: 1.05rem; }

@media (max-width: 900px) {
  .portal-topbar { flex-wrap: wrap; gap: 10px; }
  .portal-user-btn span,
  .portal-user-btn { max-width: 100%; }
  .portal-user-btn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.portal-user-btn {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-900);
}
.portal-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.portal-support-photo {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(4, 53, 114, 0.18);
}

.portal-welcome-hero {
  background: linear-gradient(135deg, #eef4ff, #f4f7fb);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.portal-welcome-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='220' viewBox='0 0 500 220'%3E%3Cpath d='M0 190 C 120 150, 200 210, 320 130 S 460 40, 500 10' stroke='%23052a57' stroke-width='1.3' fill='none' stroke-dasharray='1 8' stroke-linecap='round' opacity='0.10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 65% auto;
}
.portal-welcome-hero-rule {
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 3px;
  margin-bottom: 12px;
  position: relative;
}
.portal-welcome-hero h1 { font-size: 1.5rem; font-weight: 700; color: var(--navy-950); margin-bottom: 8px; position: relative; }
.portal-welcome-hero p { color: var(--text-muted); position: relative; }
.portal-welcome-motivational {
  color: var(--navy-950) !important;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(201, 169, 97, 0.14);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  display: block;
}
.portal-welcome-motivational i { color: var(--gold-dark); margin-right: 6px; }

.portal-dashboard-panel { padding: 24px 24px 20px; }
.portal-chart-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  height: 100%;
  background: #fbfcfe;
}
.portal-chart-canvas-wrap { position: relative; height: 220px; }

.portal-section-list { padding: 8px 20px; }
.portal-section-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 8px;
  margin: 0 -8px;
  border-radius: 12px;
  border-bottom: 1px solid var(--card-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}
.portal-section-row:last-child { border-bottom: none; }
.portal-section-row:hover { transform: translateX(3px); background: #f8fafc; }
.portal-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.portal-section-row:hover .portal-section-icon { transform: scale(1.08) rotate(-4deg); }
.portal-section-body { flex: 1; display: flex; flex-direction: column; }
.portal-section-title { font-weight: 600; color: var(--navy-950); }
.portal-section-desc { font-size: 0.85rem; color: var(--text-muted); }
.portal-section-chevron { color: #94a3b8; }
.portal-section-row:hover .portal-section-title { color: var(--brand-blue-dark); }

.session-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eef4ff, #f4f7fb);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 24px 24px;
  margin-bottom: 20px;
}
.session-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='220' viewBox='0 0 500 220'%3E%3Cpath d='M0 190 C 120 150, 200 210, 320 130 S 460 40, 500 10' stroke='%23052a57' stroke-width='1.3' fill='none' stroke-dasharray='1 8' stroke-linecap='round' opacity='0.10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 55% auto;
}
.session-panel-plane {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 2.4rem;
  color: var(--gold);
  opacity: 0.16;
  transform: rotate(35deg);
  pointer-events: none;
}
.session-carousel-wrap {
  position: relative;
}
.session-carousel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
}
.session-carousel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-950);
  display: flex;
  align-items: center;
  gap: 8px;
}
.session-carousel-title i { color: var(--gold-dark); }
.session-carousel-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}
.session-video-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
@media (max-width: 640px) {
  .session-video-grid { grid-template-columns: repeat(2, 1fr); }
}
.session-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  box-shadow: 0 3px 10px rgba(4, 53, 114, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.session-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 14px 28px rgba(4, 53, 114, 0.3);
}
.session-card-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.session-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 15, 36, 0.92) 5%, rgba(2, 15, 36, 0.15) 45%, rgba(2, 15, 36, 0.55) 100%);
}
.session-card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: linear-gradient(90deg, var(--gold), #e4c987);
  padding: 4px 9px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.session-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(2px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  transition: transform 0.18s ease, background 0.18s ease;
}
.session-card:hover .session-card-play {
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) scale(1.1);
}
.session-card-quote {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 12px 12px;
  color: #fff;
}
.session-card-quote i {
  color: var(--gold);
  font-size: 0.75rem;
  opacity: 0.85;
}
.session-card-quote-text {
  display: block;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.28;
  margin: 3px 0 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.session-card-keyword {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.95;
}

.pagos-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eef4ff, #f4f7fb);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 26px;
  margin-bottom: 20px;
}
.pagos-hero-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(156, 125, 61, 0.3);
}
.pagos-hero h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy-950);
}
.pagos-hero p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
  max-width: 620px;
}
.pagos-form-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 12px;
  padding: 18px;
  margin-top: 18px;
  max-width: 460px;
}
.pagos-submit-btn {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  transition: transform 0.15s ease;
}
.pagos-submit-btn:hover { transform: translateY(-1px); color: #fff; }
.pagos-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pagos-progress-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
  margin-top: 18px;
  max-width: 620px;
}
.pagos-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.pagos-bar-track {
  height: 14px;
  border-radius: 20px;
  background: #e6eaf2;
  overflow: hidden;
}
.pagos-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width 0.3s ease;
}
.pagos-restante {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--navy-950);
}
.pagos-breakdown {
  margin-top: 18px;
  max-width: 620px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 18px;
}
.pagos-breakdown div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-main);
}
.pagos-breakdown div.total {
  border-top: 1px solid var(--card-border);
  margin-top: 4px;
  padding-top: 10px;
  font-weight: 700;
  color: var(--navy-950);
}

.pagos-viajeros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.pagos-viajero-card {
  display: block;
  background: #fff;
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pagos-viajero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(4, 53, 114, 0.1);
  color: inherit;
}
.pagos-viajero-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.pagos-viajero-nombre {
  font-weight: 700;
  color: var(--navy-950);
  font-size: 0.95rem;
}
.pagos-viajero-pct {
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 0.9rem;
}
.pagos-viajero-destino {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.pagos-viajero-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-main);
  margin-top: 8px;
}
.pagos-badge-apartado {
  background: #e0f2fe;
  color: #0369a1;
}
.pagos-badge-abono {
  background: #fdf3df;
  color: var(--gold-dark);
}

.feedback-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff6e8, #fef1f0 55%, #eef4ff);
  border: 1px solid #f3e3c4;
  border-radius: 16px;
  padding: 28px 26px;
  margin-bottom: 20px;
  color: var(--navy-950);
}
.feedback-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='220' viewBox='0 0 500 220'%3E%3Cpath d='M0 190 C 120 150, 200 210, 320 130 S 460 40, 500 10' stroke='%23052a57' stroke-width='1.3' fill='none' stroke-dasharray='1 8' stroke-linecap='round' opacity='0.10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 55% auto;
}
.feedback-hero-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 4px 12px rgba(156, 125, 61, 0.3);
}
.feedback-hero h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  color: var(--navy-950);
}
.feedback-hero p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
  max-width: 560px;
  position: relative;
}
.feedback-form-card {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 12px;
  padding: 18px;
  margin-top: 18px;
}
.feedback-form-card label {
  color: var(--navy-950);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.feedback-form-card textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: #fff;
  padding: 10px 12px;
  font-size: 0.9rem;
  resize: vertical;
  color: var(--text-main);
}
.feedback-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  cursor: pointer;
  transition: background 0.15s ease;
}
.feedback-file-label:hover { background: #fdf7ea; }
.feedback-file-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 10px;
}
.feedback-submit-btn {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  transition: transform 0.15s ease;
}
.feedback-submit-btn:hover { transform: translateY(-1px); color: #fff; }

.feedback-wall-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.feedback-wall-header i { color: var(--gold-dark); }
.feedback-wall-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.feedback-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.feedback-wall-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 14px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feedback-wall-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(4, 53, 114, 0.1);
}
.feedback-wall-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.feedback-wall-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--navy-900));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.feedback-wall-name { font-weight: 600; font-size: 0.86rem; color: var(--navy-950); }
.feedback-wall-date { font-size: 0.7rem; color: var(--text-muted); }
.feedback-wall-you {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: #fdf3df;
  border-radius: 20px;
  padding: 1px 8px;
  margin-left: 6px;
}
.feedback-wall-message {
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: pre-wrap;
  margin: 0;
}
.feedback-wall-thumb {
  max-width: 100%;
  max-height: 160px;
  border-radius: 8px;
  margin-top: 10px;
  display: block;
  object-fit: cover;
}

.portal-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 24px 0 8px;
}
.portal-footer-brand img { height: 20px; }

.nav-pills .nav-link { color: var(--navy-900); font-size: 0.85rem; font-weight: 500; }
.nav-pills .nav-link.active { background: linear-gradient(90deg, var(--navy-800), var(--brand-blue-dark)); }

.portal-embed {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: #f4f7fb;
}
.portal-embed-pdf { height: 75vh; min-height: 420px; }
.portal-embed-frame { height: 70vh; min-height: 420px; }
.portal-embed-image { width: 100%; max-height: 75vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--card-border); background: #f4f7fb; }
.portal-embed-video { width: 100%; max-height: 75vh; border-radius: 10px; background: #000; }

@media (max-width: 768px) {
  .portal-embed-pdf, .portal-embed-frame { height: 60vh; }
}

.feature-embed-card { display: flex; flex-direction: column; }
.feature-embed-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.feature-embed-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--brand-blue-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 16px rgba(7, 116, 248, 0.28);
}
.portal-embed-feature { height: 82vh; min-height: 520px; }

@media (max-width: 768px) {
  .portal-embed-feature { height: 65vh; }
}

.catalog-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.catalog-poster {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(4, 53, 114, 0.12);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.catalog-poster:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(4, 53, 114, 0.22);
}
.catalog-poster-cover-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
}
.catalog-poster-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
  background: #f4f7fb;
  border-top: 1px solid var(--card-border);
  text-decoration: none;
}
.catalog-poster-download:hover {
  background: #e8f0fe;
  color: var(--navy-950);
}
.catalog-poster-actions {
  display: flex;
  border-top: 1px solid var(--card-border);
}
.catalog-poster-actions form {
  flex: 1;
  display: flex;
}
.catalog-poster-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
  background: #fff;
  border: none;
  text-decoration: none;
  cursor: pointer;
}
.catalog-poster-action:first-child { border-right: 1px solid var(--card-border); }
.catalog-poster-action:hover { background: #e8f0fe; color: var(--navy-950); }
.catalog-poster-action-danger { color: #b91c1c; }
.catalog-poster-action-danger:hover { background: #fee2e2; color: #7f1d1d; }
.catalog-poster-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--navy-900));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-poster-icon { font-size: 2.8rem; color: rgba(255, 255, 255, 0.45); }
.catalog-poster-play {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  font-size: 1.4rem;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.catalog-poster-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px;
  background: linear-gradient(to top, rgba(2, 15, 36, 0.88), transparent);
  color: #fff;
}
.catalog-poster-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}
.catalog-poster-price {
  display: block;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 3px;
}

.calendar-day-item {
  border: 1px solid var(--card-border);
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 12px;
}
.calendar-day-today { border-color: var(--brand-blue-dark); box-shadow: 0 0 0 2px rgba(7, 116, 248, 0.15); }
.calendar-day-item .accordion-button {
  font-weight: 700;
  color: var(--navy-950);
  background: #fff;
}
.calendar-day-item .accordion-button:not(.collapsed) {
  background: #f4f7fb;
  color: var(--navy-950);
  box-shadow: none;
}
.calendar-day-name { font-size: 1rem; }
.calendar-slot-block { margin-bottom: 22px; }
.calendar-slot-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.calendar-slot-title i { margin-right: 6px; color: var(--gold-dark); }
.calendar-poster { max-width: 160px; }
.calendar-poster-cover { aspect-ratio: 3 / 4; }
.calendar-empty-slot {
  border: 1.5px dashed var(--card-border);
  border-radius: 10px;
  padding: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: #fbfcfe;
  margin: 0;
}

.social-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  color: var(--text-main);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(4, 28, 58, 0.14);
  color: var(--text-main);
}
.social-card-banner {
  position: relative;
  height: 84px;
  display: flex;
  align-items: flex-end;
  padding: 0 18px;
}
.social-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  background: #fff;
  transform: translateY(36px);
  box-shadow: 0 4px 12px rgba(4, 28, 58, 0.2);
}
.social-card-avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--navy-900);
}
.social-card-badge {
  position: absolute;
  bottom: 30px;
  left: 62px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--navy-900);
  box-shadow: 0 2px 6px rgba(4, 28, 58, 0.25);
}
.social-card-body {
  padding: 44px 18px 18px;
}
.social-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
}

.review-carousel-inner { border-radius: 14px; overflow: hidden; }
.review-carousel-indicators { position: static; margin-top: 14px; }
.review-carousel-indicators button {
  background-color: var(--card-border) !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  border: none !important;
  opacity: 1 !important;
}
.review-carousel-indicators button.active { background-color: var(--brand-blue-dark) !important; }
.carousel-control-prev, .carousel-control-next { width: 44px; }
.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: var(--navy-900);
  border-radius: 50%;
  padding: 14px;
  filter: none;
}

/* --- Rating badge --- */
.rating-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fdf8ee, #f4f7fb);
  border: 1px solid #f1e2b8;
  border-radius: 12px;
  padding: 8px 16px;
}
.rating-badge-number {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1;
}
.rating-badge-stars { color: var(--gold); font-size: 0.8rem; letter-spacing: 1px; }
.rating-badge-count { color: var(--text-muted); font-size: 0.72rem; }

/* --- Testimonial slides --- */
.testimonial-slide {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 380px;
}
.testimonial-slide-textonly { justify-content: center; }
.testimonial-photo {
  flex: 0 0 44%;
  max-width: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f7fb;
  border-radius: 14px 0 0 14px;
  padding: 10px;
  overflow: hidden;
}
.testimonial-photo img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 8px;
}
.testimonial-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 36px;
  background: #fff;
  border-radius: 0 14px 14px 0;
  position: relative;
}
.testimonial-slide-textonly .testimonial-text {
  border-radius: 14px;
  max-width: 640px;
  text-align: center;
  align-items: center;
}
.testimonial-quote-icon {
  font-size: 2.4rem;
  color: var(--brand-light);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 4px;
}
.testimonial-stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 3px; margin-bottom: 10px; }
.testimonial-quote {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy-950);
  line-height: 1.55;
  font-style: italic;
}
.testimonial-author {
  margin-top: 14px;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--brand-blue-dark);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .testimonial-slide { flex-direction: column; min-height: 0; }
  .testimonial-photo { flex: none; max-width: 100%; border-radius: 14px 14px 0 0; }
  .testimonial-photo img { max-height: 260px; }
  .testimonial-text { border-radius: 0 0 14px 14px; padding: 24px 22px; }
}

/* --- Curso "Viajes desde Cero" (Capacitación) --- */
.training-course-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background-image: linear-gradient(180deg, rgba(4, 28, 58, 0.15) 0%, rgba(4, 28, 58, 0.55) 55%, rgba(4, 28, 58, 0.92) 100%), var(--course-cover);
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 32px rgba(4, 28, 58, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.training-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(4, 28, 58, 0.3);
}
.training-course-icon {
  display: none;
}
.training-course-body {
  position: relative;
  padding: 26px 28px;
  width: 100%;
  color: #fff;
}
.training-course-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-950);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
}
.training-course-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin: 10px 0 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.training-course-text {
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
  max-width: 560px;
  margin-bottom: 16px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.training-course-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.training-course-actions .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-950);
  font-weight: 700;
}
.training-course-actions .btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.training-course-actions .btn-outline-primary {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.training-course-actions .btn-outline-primary:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }
.training-course-lastscore {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  margin: 12px 0 0;
  font-size: 0.85rem;
}

/* --- Lesson page --- */
.training-hero {
  background-image: linear-gradient(135deg, rgba(4,28,58,0.88), rgba(6,53,110,0.82) 70%, rgba(7,116,248,0.55)), var(--course-cover);
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  padding: 32px 28px;
  color: #fff;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.training-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1.4px);
  background-size: 22px 22px;
  pointer-events: none;
}
.training-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}
.training-hero h1 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  margin: 6px 0 8px;
}
.training-hero p { opacity: 0.9; max-width: 620px; margin: 0 0 16px; }
.training-hero-objetivo {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 560px;
  font-size: 0.88rem;
  position: relative;
}
.training-hero-objetivo strong { color: var(--gold); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.training-hero-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
}
.training-hero-cta:hover { color: var(--navy-950); filter: brightness(1.05); }

.training-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--bg);
  padding: 10px 0 16px;
  margin-bottom: 8px;
}
.training-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--card-border);
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.training-nav a:hover { border-color: var(--brand-blue-dark); color: var(--brand-blue-dark); }

.training-block { margin-bottom: 30px; scroll-margin-top: 70px; }
.training-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.training-block-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--brand-blue-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex: none;
}
.training-block-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}
.training-block-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-950);
  margin: 0;
}

.training-section-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.training-section-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-950);
  margin-bottom: 4px;
}
.training-section-lead { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 14px; }
.training-section-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--card-border);
  font-size: 0.86rem;
  font-style: italic;
  color: var(--navy-900);
}

.training-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.training-item {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
}
.training-item-icon { font-size: 1.3rem; display: block; margin-bottom: 6px; }
.training-item-title { font-weight: 700; font-size: 0.88rem; color: var(--navy-950); display: block; }
.training-item-text { font-size: 0.8rem; color: var(--text-muted); margin: 2px 0 0; }

.training-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.training-flow span {
  background: linear-gradient(90deg, var(--navy-800), var(--brand-blue-dark));
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.training-flow i { color: var(--text-muted); }

.training-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.training-level {
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--level-color, var(--brand-blue-dark));
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
.training-level-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}
.training-level-name {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-950);
  margin: 2px 0 2px;
}
.training-level-tagline { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.training-level ul { padding-left: 18px; margin: 0; font-size: 0.85rem; color: var(--text-main); }
.training-level li { margin-bottom: 5px; }

.training-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.training-compare-item {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.training-compare-item .training-item-icon { font-size: 1.4rem; }

.training-case {
  background: linear-gradient(135deg, #fdf3df, #fff);
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 12px;
  padding: 16px 18px;
}
.training-case-quote {
  font-style: italic;
  color: var(--navy-950);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.training-case-question { font-size: 0.85rem; color: var(--gold-dark); font-weight: 600; margin: 0; }

.training-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.training-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
}
.training-step-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--brand-blue-dark));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.training-step-title { font-weight: 700; color: var(--navy-950); font-size: 0.9rem; }
.training-step-text { color: var(--text-muted); font-size: 0.84rem; margin: 0; }

.training-quote {
  text-align: center;
  padding: 22px;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-950);
  background: linear-gradient(135deg, #fdf3df, #eef6ff);
  border-radius: 14px;
}

.training-footer-cta {
  text-align: center;
  padding: 26px;
  background: var(--navy-950);
  border-radius: 16px;
  color: #fff;
  margin-top: 10px;
}
.training-footer-cta p { opacity: 0.85; margin-bottom: 14px; }
.training-footer-cta a {
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
}

/* --- Quiz --- */
.quiz-hero {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border-radius: 16px;
  padding: 22px 24px;
  color: #fff;
  margin-bottom: 20px;
}
.quiz-hero h1 { font-family: "Poppins", "Inter", sans-serif; font-size: 1.4rem; font-weight: 700; margin: 4px 0 6px; }
.quiz-hero p { opacity: 0.88; margin: 0; font-size: 0.88rem; }
.quiz-hero-eyebrow { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--gold); font-weight: 700; }

.quiz-result-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.quiz-result-banner-celebrate {
  background: linear-gradient(135deg, #fdf3df, #fff 55%);
  border: 1px solid rgba(201, 169, 97, 0.45);
  box-shadow: 0 10px 26px rgba(156, 125, 61, 0.15);
}
.quiz-result-score {
  flex: none;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  background: conic-gradient(var(--quiz-color, #15803d) calc(var(--quiz-pct, 0) * 1%), #e6eaf2 0);
}
.quiz-result-score span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.quiz-result-text h2 { font-family: "Poppins", "Inter", sans-serif; font-size: 1.1rem; margin: 0 0 4px; color: var(--navy-950); }
.quiz-result-text p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

.quiz-question {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.quiz-question-block {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--brand-blue-dark);
  font-weight: 700;
  margin-bottom: 4px;
}
.quiz-question-text { font-weight: 600; color: var(--navy-950); font-size: 0.95rem; margin-bottom: 12px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-option:hover { border-color: var(--brand-blue-dark); }
.quiz-option input { accent-color: var(--brand-blue-dark); }
.quiz-option.is-correct { border-color: #15803d; background: #f0fdf4; color: #166534; font-weight: 600; }
.quiz-option.is-incorrect { border-color: #b91c1c; background: #fef2f2; color: #7f1d1d; font-weight: 600; }
.quiz-explanation {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  background: var(--bg);
  color: var(--text-main);
}
.quiz-explanation strong { color: var(--navy-950); }
.quiz-submit-bar {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding: 14px 0;
  text-align: center;
}
.quiz-submit-btn {
  background: linear-gradient(90deg, var(--navy-800), var(--brand-blue-dark));
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.quiz-submit-btn:hover { color: #fff; filter: brightness(1.08); }
.quiz-retry-btn {
  display: inline-block;
  margin-top: 4px;
  color: var(--brand-blue-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .training-course-card { flex-direction: column; }
  .training-nav { position: static; }
}
