/**
 * showcase-enhancements.css
 * Styles dédiés pour la mise en valeur des offres Tutor et Study sur la vitrine Edukalia360.
 * Respect strict des règles : zéro style inline, classes sémantiques et stables.
 */

/* ==========================================================================
   Variables de thème pour les offres
   ========================================================================== */
:root {
  --tutor-accent: #16a34a;
  --tutor-accent-light: #dcfce7;
  --tutor-accent-dark: #14532d;
  --study-accent: #7c3aed;
  --study-accent-light: #f3e8ff;
  --study-accent-dark: #4c1d95;
  --showcase-bg-subtle: #f8fafc;
  --showcase-border: #e2e8f0;
  --showcase-text: #1e293b;
  --showcase-text-muted: #64748b;
}

/* ==========================================================================
   Bannière comparatrice Accueil (Tutor vs Study)
   ========================================================================== */
.offer-comparison-section {
  padding: 80px 0;
  background: #ffffff;
}

.offer-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .offer-duo-grid {
    grid-template-columns: 1fr;
  }
}

.offer-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--showcase-border);
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.offer-card--tutor {
  border-top: 6px solid var(--tutor-accent);
}

.offer-card--study {
  border-top: 6px solid var(--study-accent);
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
  width: fit-content;
}

.offer-badge--tutor {
  background: var(--tutor-accent-light);
  color: var(--tutor-accent-dark);
}

.offer-badge--study {
  background: var(--study-accent-light);
  color: var(--study-accent-dark);
}

.offer-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--showcase-text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.offer-tagline {
  font-size: 1rem;
  color: var(--showcase-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.offer-features-list {
  list-style: none;
  margin: 0 0 28px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.offer-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--showcase-text);
  line-height: 1.45;
}

.offer-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.offer-feature-icon--tutor {
  background: var(--tutor-accent-light);
  color: var(--tutor-accent);
}

.offer-feature-icon--study {
  background: var(--study-accent-light);
  color: var(--study-accent);
}

.offer-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}

.offer-cta-link--tutor {
  background: var(--tutor-accent);
  color: #ffffff;
}

.offer-cta-link--tutor:hover {
  background: #15803d;
}

.offer-cta-link--study {
  background: var(--study-accent);
  color: #ffffff;
}

.offer-cta-link--study:hover {
  background: #6d28d9;
}

/* ==========================================================================
   Tableau des fonctionnalités partagées vs spécifiques
   ========================================================================== */
.ecosystem-table-wrapper {
  margin-top: 48px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--showcase-border);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.ecosystem-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.ecosystem-table th {
  background: #f8fafc;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--showcase-text);
  border-bottom: 2px solid var(--showcase-border);
}

.ecosystem-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--showcase-border);
  color: #475569;
}

.ecosystem-table tr:last-child td {
  border-bottom: none;
}

.ecosystem-table tr:hover td {
  background: #fcfcfc;
}

.table-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.table-tag--shared {
  background: #e2e8f0;
  color: #334155;
}

.table-tag--tutor {
  background: var(--tutor-accent-light);
  color: var(--tutor-accent-dark);
}

.table-tag--study {
  background: var(--study-accent-light);
  color: var(--study-accent-dark);
}

/* ==========================================================================
   Démonstration concrète du Chat Tutor (Interactive Mockup)
   ========================================================================== */
.interactive-chat-preview {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--showcase-border);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 36px;
}

.chat-preview-header {
  background: #f8fafc;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--showcase-border);
}

.chat-preview-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--showcase-text);
}

.chat-preview-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tutor-accent-light);
  color: var(--tutor-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.chat-preview-badge {
  font-size: 0.75rem;
  background: #e2e8f0;
  color: #475569;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 600;
}

.chat-preview-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fbfcfe;
}

.chat-msg {
  display: flex;
  gap: 12px;
  max-width: 90%;
}

.chat-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.chat-msg-avatar--user {
  background: #e0e7ff;
  color: #4338ca;
}

.chat-msg-avatar--tutor {
  background: var(--tutor-accent-light);
  color: var(--tutor-accent);
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-bubble--user {
  background: #3b82f6;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble--tutor {
  background: #ffffff;
  color: var(--showcase-text);
  border: 1px solid var(--showcase-border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.chat-interactive-activity {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  margin-top: 10px;
}

.activity-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tutor-accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-visual-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #475569;
}

.activity-visual-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 6px;
}

.activity-feedback-alert {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
  color: #92400e;
  margin-top: 10px;
}

.activity-feedback-alert strong {
  color: #78350f;
}

/* ==========================================================================
   Parcours Study : Simulacre -> Détection -> Plan du Jour
   ========================================================================== */
.study-workflow-section {
  padding: 36px 0;
}

.workflow-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  position: relative;
}

@media (max-width: 860px) {
  .workflow-timeline {
    grid-template-columns: 1fr;
  }
}

.workflow-step-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--showcase-border);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.workflow-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--study-accent-light);
  color: var(--study-accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.workflow-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--showcase-text);
  margin-bottom: 8px;
}

.workflow-step-desc {
  font-size: 0.88rem;
  color: var(--showcase-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.workflow-mini-preview {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.82rem;
  border: 1px solid var(--showcase-border);
  margin-top: auto;
}

.workflow-mini-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.workflow-mini-tag--alert {
  background: #fee2e2;
  color: #991b1b;
}

.workflow-mini-tag--action {
  background: #dcfce7;
  color: #166534;
}

.workflow-mini-tag--info {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 6px;
}

/* ==========================================================================
   Tools trio showcase (Circuits, Geometry, Calculations)
   ========================================================================== */
.tutor-tools-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .tutor-tools-trio {
    grid-template-columns: 1fr;
  }
}

.tool-trio-card {
  background: #ffffff;
  border: 1px solid var(--showcase-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.tool-trio-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tutor-accent-light);
  color: var(--tutor-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.tool-trio-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--showcase-text);
  margin-bottom: 8px;
}

.tool-trio-desc {
  font-size: 0.9rem;
  color: var(--showcase-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.tool-trio-cue {
  background: #f1f5f9;
  border-left: 3px solid var(--tutor-accent);
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #334155;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}

/* ==========================================================================
   Edukalia Study — Player de leçon réel & Parcours d'apprentissage
   ========================================================================== */
.hero-screen-wrapper {
  position: relative;
  border-radius: 20px;
  background: #ffffff;
  padding: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-screen-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 55px -10px rgba(15, 23, 42, 0.18);
}

.hero-screen-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.15);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-screen-frame.is-dark {
  border-color: #334155;
  background: #0b1121;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
}

.hero-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.3s ease, border-color 0.3s ease;
  min-width: 0;
  gap: 8px;
}

@media (max-width: 640px) {
  .hero-window-header {
    padding: 6px 10px;
  }
  .hero-window-url {
    display: none !important;
  }
  .hero-theme-toggle {
    padding: 2px !important;
    gap: 2px !important;
  }
  .hero-theme-btn {
    padding: 3px 8px !important;
    font-size: 10px !important;
  }
  .hero-screen-wrapper {
    padding: 6px !important;
    border-radius: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-screen-frame {
    border-radius: 12px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

.hero-screen-frame.is-dark .hero-window-header {
  background: #0f172a;
  border-bottom-color: #1e293b;
}

.hero-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.window-dot-red { background: #ff5f56; }
.window-dot-yellow { background: #ffbd2e; }
.window-dot-green { background: #27c93f; }

.hero-window-url {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  background: #ffffff;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-screen-frame.is-dark .hero-window-url {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.hero-theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  padding: 3px !important;
  border-radius: 9999px !important;
  border: 1px solid #cbd5e1 !important;
  gap: 3px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.hero-screen-frame.is-dark .hero-theme-toggle {
  background: #0f172a !important;
  border-color: #334155 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.hero-theme-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  outline: none !important;
  white-space: nowrap !important;
}

.hero-theme-btn:hover {
  color: #1e293b !important;
}

.hero-theme-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

.hero-screen-frame.is-dark .hero-theme-btn {
  color: #94a3b8 !important;
}

.hero-screen-frame.is-dark .hero-theme-btn:hover {
  color: #f8fafc !important;
}

.hero-screen-frame.is-dark .hero-theme-btn.active {
  background: #1e293b !important;
  color: #38bdf8 !important;
  border-color: #475569 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

.hero-screen-viewport {
  position: relative;
  overflow: hidden;
}

.hero-screen-viewport img {
  transition: opacity 0.15s ease;
}

.hero-screen-loupe-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.hero-screen-loupe-badge:hover {
  opacity: 1;
  transform: scale(1.04);
  background: rgba(15, 23, 42, 0.95);
}

.hero-screen-caption {
  margin-top: 4px;
}

.lesson-player-mockup {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.lesson-player-banner {
  position: relative;
  height: 140px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.lesson-player-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.70) 55%, rgba(15, 23, 42, 0.3) 100%);
}

.lesson-player-banner-content {
  position: absolute;
  inset: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.lesson-player-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(196, 181, 253, 0.4);
  color: #ede9fe;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 8px;
}

.lesson-player-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}



/* Slide Content */
.lesson-slide-body {
  padding: 24px;
  background: #ffffff;
}

.lesson-stepper-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.lesson-step-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lesson-step-pill.active {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.lesson-step-pill.completed {
  background: #ecfdf5;
  color: #047857;
}

.lesson-visual-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.lesson-interactive-cue {
  background: #fbfbfe;
  border: 1.5px dashed #c4b5fd;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Learning Journey Moments */
.learning-moment-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learning-moment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.moment-number-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.moment-number-badge--1 { background: #ede9fe; color: #6d28d9; }
.moment-number-badge--2 { background: #dcfce7; color: #15803d; }
.moment-number-badge--3 { background: #fef3c7; color: #b45309; }
.moment-number-badge--4 { background: #e0f2fe; color: #0369a1; }
.moment-number-badge--5 { background: #fce7f3; color: #be185d; }

.zoomable-preview-img {
  cursor: zoom-in;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e2e8f0;
  width: 100%;
  display: block;
}

.zoomable-preview-img:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Simple Lightbox Modal */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-lightbox.active {
  display: flex;
}

.image-lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.2s;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lesson-player-banner--math {
  background-image: url('../edukalia360/assets/subjects/mathematics/banner.webp');
}

.lesson-player-banner--physics {
  background-image: url('../edukalia360/assets/subjects/physics_chemistry/banner.webp');
}

/* ── Academica Co-Branding Signature ── */
.nav-logo-brand-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #111827;
  letter-spacing: -0.02em;
}

.nav-logo-academica-tag {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: -1px;
}

.footer-powered-academica {
  margin: 14px 0 20px;
  display: flex;
  align-items: center;
}

.academica-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  max-width: fit-content;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease;
}

.academica-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: academicaShimmer 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes academicaShimmer {
  0%, 70% { left: -120%; }
  100% { left: 160%; }
}

.academica-badge:hover {
  transform: translateY(-1.5px);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 6px 18px -2px rgba(22, 163, 74, 0.16), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.academica-badge:active {
  transform: translateY(0);
}

.academica-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #10b981);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2), 0 0 8px rgba(34, 197, 94, 0.7);
  flex-shrink: 0;
  animation: academicaDotPulse 2.4s ease-in-out infinite;
}

@keyframes academicaDotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2), 0 0 6px rgba(34, 197, 94, 0.6);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1), 0 0 12px rgba(34, 197, 94, 0.9);
  }
}

.academica-badge-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  color: #475569;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  line-height: 1;
}

.academica-brand-name {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.academica-badge:hover .academica-brand-name {
  color: #16a34a;
}

.academica-badge-arrow {
  color: #94a3b8;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.academica-badge:hover .academica-badge-arrow {
  opacity: 1;
  color: #16a34a;
  transform: translate(1px, -1px);
}

@media (max-width: 768px) {
  .footer-powered-academica {
    justify-content: center;
  }
}

/* ==========================================================================
   Composant Parcours Étudiant (Hub de convergence style Sesame)
   4 pôles (Prerrequisitos, Lecciones, Práctica, Simulacros) vers Cockpit
   Zéro style inline - 100% responsive et accessible
   ========================================================================== */

.study-journey-section {
  position: relative;
  padding: 80px 0 70px 0;
  background: radial-gradient(circle at 50% 15%, rgba(139, 92, 246, 0.06) 0%, rgba(248, 250, 252, 0.7) 65%, #ffffff 100%);
  overflow: hidden;
}

.study-journey-header {
  margin-bottom: 50px;
}

.study-journey-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7c3aed;
  background: #f3e8ff;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.study-journey-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .study-journey-title {
    font-size: 3rem;
  }
}

.study-journey-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Stage de convergence */
.study-hub-stage {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
}

/* Desktop layout (>= 900px) */
@media (min-width: 900px) {
  .study-hub-stage {
    min-height: 740px;
  }

  .study-hub-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 380px;
    pointer-events: none;
    z-index: 1;
  }

  .study-hub-satellites {
    position: relative;
    z-index: 2;
    height: 340px;
  }

  .study-hub-card {
    position: absolute;
    width: 320px;
  }

  .study-hub-card--prereq {
    top: 20px;
    left: 30px;
  }

  .study-hub-card--lessons {
    top: 20px;
    right: 30px;
  }

  .study-hub-card--practice {
    top: 190px;
    left: 30px;
  }

  .study-hub-card--exams {
    top: 190px;
    right: 30px;
  }

  .study-hub-junction {
    position: absolute;
    top: 195px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  .study-hub-cockpit {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 40px auto 0 auto;
  }
}

/* Mobile & Tablet layout (< 900px) */
@media (max-width: 899px) {
  .study-hub-svg {
    display: none;
  }

  .study-hub-satellites {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }

  .study-hub-card {
    position: relative;
    width: 100%;
  }

  .study-hub-junction {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 24px 0;
    position: relative;
  }

  .study-hub-junction::before {
    content: '';
    position: absolute;
    top: -16px;
    bottom: -16px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(to bottom, #cbd5e1 0, #cbd5e1 4px, transparent 4px, transparent 8px);
    z-index: 0;
  }

  .study-hub-cockpit {
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .study-hub-satellites {
    grid-template-columns: 1fr;
  }
}

/* Lignes SVG animées */
.study-hub-line {
  stroke: #cbd5e1;
  stroke-width: 2;
  stroke-dasharray: 6 6;
  animation: studyHubDashFlow 25s linear infinite;
}

@keyframes studyHubDashFlow {
  to {
    stroke-dashoffset: -300;
  }
}

/* Cartes satellites */
.study-hub-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.study-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -8px rgba(124, 58, 237, 0.12), 0 8px 12px -6px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

.study-hub-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.study-hub-card-icon-wrap--prereq {
  background: #fef3c7;
  color: #d97706;
}

.study-hub-card-icon-wrap--lessons {
  background: #ede9fe;
  color: #7c3aed;
}

.study-hub-card-icon-wrap--practice {
  background: #dcfce7;
  color: #16a34a;
}

.study-hub-card-icon-wrap--exams {
  background: #e0f2fe;
  color: #0284c7;
}

.study-hub-card-body {
  flex: 1;
  min-width: 0;
}

.study-hub-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.study-hub-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.study-hub-card-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Pastilles de statut */
.study-hub-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.study-hub-status-dot--amber {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.study-hub-status-dot--purple {
  background: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.study-hub-status-dot--emerald {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.study-hub-status-dot--blue {
  background: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Nœud de jonction central */
.study-hub-junction-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.15), 0 10px 20px rgba(79, 70, 229, 0.35);
  position: relative;
  z-index: 2;
  animation: studyHubPulse 3s ease-in-out infinite;
}

@keyframes studyHubPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.15), 0 10px 20px rgba(79, 70, 229, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.2), 0 14px 26px rgba(79, 70, 229, 0.45);
  }
}

/* Carte centrale du Cockpit */
.study-hub-cockpit {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.08), 0 10px 20px -5px rgba(15, 23, 42, 0.04);
}

@media (max-width: 640px) {
  .study-hub-cockpit {
    padding: 20px 16px;
    border-radius: 20px;
  }
}

.study-hub-cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.study-hub-cockpit-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.study-hub-cockpit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3e8ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.study-hub-cockpit-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.study-hub-cockpit-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.study-hub-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
}

.study-hub-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
  animation: studyHubLivePulse 1.8s infinite;
}

@keyframes studyHubLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Grille des 3 métriques */
.study-hub-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .study-hub-metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.study-hub-metric-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.study-hub-metric-card:hover {
  background: #f1f5f9;
}

.study-hub-metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.study-hub-metric-icon--amber {
  background: #fef3c7;
  color: #d97706;
}

.study-hub-metric-icon--purple {
  background: #ede9fe;
  color: #7c3aed;
}

.study-hub-metric-icon--emerald {
  background: #dcfce7;
  color: #16a34a;
}

.study-hub-metric-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
}

.study-hub-metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
  margin-bottom: 6px;
}

.study-hub-metric-trend {
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

/* Liste des activités récentes de l'élève */
.study-hub-activities-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 12px;
  padding: 0 4px;
}

.study-hub-activities-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.study-hub-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.study-hub-activity-item:hover {
  transform: translateX(3px);
  border-color: #cbd5e1;
}

.study-hub-activity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.study-hub-activity-avatar--math {
  background: #dcfce7;
  color: #16a34a;
}

.study-hub-activity-avatar--physics {
  background: #ede9fe;
  color: #7c3aed;
}

.study-hub-activity-content {
  flex: 1;
  min-width: 0;
}

.study-hub-activity-subject {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.study-hub-activity-desc {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.study-hub-activity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.study-hub-activity-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.study-hub-activity-pill--success {
  background: #dcfce7;
  color: #15803d;
}

.study-hub-activity-pill--practice {
  background: #f3e8ff;
  color: #6b21a8;
}

.study-hub-activity-time {
  font-size: 0.68rem;
  color: #94a3b8;
}

/* Footer et bouton CTA */
.study-hub-cockpit-footer {
  text-align: center;
  padding-top: 8px;
}

.study-hub-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.study-hub-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(124, 58, 237, 0.5);
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff;
}

/* Lien interactif sur la carte satellite Práctica Activa */
.study-hub-card--link {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.study-hub-card--link:hover {
  border-color: #10b981;
  background: #f0fdf4;
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -8px rgba(16, 185, 129, 0.2), 0 8px 12px -6px rgba(15, 23, 42, 0.04);
}

.study-hub-card--prereq.study-hub-card--link:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 16px 30px -8px rgba(245, 158, 11, 0.22), 0 8px 12px -6px rgba(15, 23, 42, 0.04);
}
.study-hub-card--prereq .study-hub-card-explore-hint {
  color: #d97706;
}

.study-hub-card--lessons.study-hub-card--link:hover {
  border-color: #8b5cf6;
  background: #f5f3ff;
  box-shadow: 0 16px 30px -8px rgba(139, 92, 246, 0.22), 0 8px 12px -6px rgba(15, 23, 42, 0.04);
}
.study-hub-card--lessons .study-hub-card-explore-hint {
  color: #7c3aed;
}

.study-hub-card--exams.study-hub-card--link:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 16px 30px -8px rgba(59, 130, 246, 0.22), 0 8px 12px -6px rgba(15, 23, 42, 0.04);
}
.study-hub-card--exams .study-hub-card-explore-hint {
  color: #2563eb;
}

.study-hub-card-explore-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #16a34a;
  margin-top: 6px;
  transition: transform 0.2s ease;
}

.study-hub-card--link:hover .study-hub-card-explore-hint {
  transform: translateX(4px);
}

/* ==========================================================================
   Page dédiée : /study/practica (Laboratorios y Actividades Interactivas)
   ========================================================================== */
.practica-hero-section {
  position: relative;
  padding: 130px 0 60px 0;
  background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.08) 0%, rgba(248, 250, 252, 0.7) 60%, #ffffff 100%);
  overflow: hidden;
}

@media (max-width: 768px) {
  .practica-hero-section {
    padding-top: 110px;
    padding-bottom: 40px;
  }
}

.practica-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
  padding: 6px 14px;
  background: #f3e8ff;
  border-radius: 9999px;
  margin-bottom: 24px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.practica-back-link:hover {
  background: #ede9fe;
  transform: translateX(-2px);
}

.practica-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.practica-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.practica-pill-tag--math {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.practica-pill-tag--physics {
  border-color: #fed7aa;
  color: #9a3412;
  background: #fff7ed;
}

.practica-pill-tag--bio {
  border-color: #ddd6fe;
  color: #5b21b6;
  background: #f5f3ff;
}

/* Cartes immersives de démonstration */
.practica-lab-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 36px;
  margin-bottom: 48px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 640px) {
  .practica-lab-card {
    padding: 24px 18px;
    border-radius: 20px;
  }
}

.practica-lab-card:hover {
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.08);
}

.practica-badge-subject {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.practica-badge-subject--math {
  background: #dcfce7;
  color: #166534;
}

.practica-badge-subject--physics {
  background: #ffedd5;
  color: #9a3412;
}

.practica-badge-subject--bio {
  background: #ede9fe;
  color: #6b21a8;
}

.practica-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.practica-feature-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
}

.practica-feature-box-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.practica-feature-box-icon--math {
  background: #dcfce7;
  color: #15803d;
}

.practica-feature-box-icon--physics {
  background: #ffedd5;
  color: #c2410c;
}

.practica-feature-box-icon--bio {
  background: #ede9fe;
  color: #7c3aed;
}

.practica-preview-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.practica-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.practica-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  font-size: 0.72rem;
  color: #64748b;
}

.practica-preview-zoom-btn {
  color: #7c3aed;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.practica-preview-zoom-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Pages Dédiées : Prerrequisitos, Lecciones, Simulacros
   ========================================================================== */
.prereq-hero-section {
  position: relative;
  padding: 130px 0 60px 0;
  background: radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.08) 0%, rgba(248, 250, 252, 0.7) 60%, #ffffff 100%);
  overflow: hidden;
}

.lecciones-hero-section {
  position: relative;
  padding: 130px 0 60px 0;
  background: radial-gradient(circle at 50% 10%, rgba(139, 92, 246, 0.08) 0%, rgba(248, 250, 252, 0.7) 60%, #ffffff 100%);
  overflow: hidden;
}

.simulacros-hero-section {
  position: relative;
  padding: 130px 0 60px 0;
  background: radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.08) 0%, rgba(248, 250, 252, 0.7) 60%, #ffffff 100%);
  overflow: hidden;
}

@media (max-width: 768px) {
  .prereq-hero-section,
  .lecciones-hero-section,
  .simulacros-hero-section {
    padding-top: 110px;
    padding-bottom: 40px;
  }
}

.practica-badge-subject--amber {
  background: #fef3c7;
  color: #b45309;
}

.practica-badge-subject--blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.practica-feature-box-icon--amber {
  background: #fef3c7;
  color: #d97706;
}

.practica-feature-box-icon--blue {
  background: #dbeafe;
  color: #2563eb;
}

.practica-pill-tag--amber {
  border-color: #fde68a;
  color: #b45309;
  background: #fffbeb;
}

.practica-pill-tag--blue {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

/* ==========================================================================
   NOUVEAUX STYLES DE LA VITRINE SIMPLIFIÉE (EDUKALIA STUDY & CENTROS)
   Zéro style inline, 100% responsive, typographie contrastée, safe pour 360-1440px
   ========================================================================== */

/* Enlace secundario hacia centros en el Hero */
.hero-school-note {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #475569;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  max-width: 100%;
}

.hero-school-note:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.hero-school-note i {
  color: #0284c7;
}

.hero-school-note strong {
  color: #0369a1;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   B. Tres situaciones concretas
   -------------------------------------------------------------------------- */
.situations-section {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.situations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

@media (max-width: 990px) {
  .situations-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.situation-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.situation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.situation-card--1 { border-top: 5px solid #8b5cf6; }
.situation-card--2 { border-top: 5px solid #10b981; }
.situation-card--3 { border-top: 5px solid #3b82f6; }

.situation-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
  width: fit-content;
}

.situation-card--1 .situation-quote { background: #f3e8ff; color: #6b21a8; }
.situation-card--2 .situation-quote { background: #d1fae5; color: #065f46; }
.situation-card--3 .situation-quote { background: #dbeafe; color: #1e40af; }

.situation-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.situation-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.situation-solution-box {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.situation-solution-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 2px;
}

.situation-card--1 .situation-solution-icon { color: #8b5cf6; }
.situation-card--2 .situation-solution-icon { color: #10b981; }
.situation-card--3 .situation-solution-icon { color: #3b82f6; }

/* --------------------------------------------------------------------------
   C. Recorrido pedagógico único (4 pasos)
   -------------------------------------------------------------------------- */
.journey-section {
  padding: 90px 0;
  background: #ffffff;
}

.journey-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

@media (max-width: 1024px) {
  .journey-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .journey-steps-grid {
    grid-template-columns: 1fr;
  }
}

.journey-step-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.journey-step-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.journey-step-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.journey-step-badge--1 { background: #f3e8ff; color: #7c3aed; }
.journey-step-badge--2 { background: #d1fae5; color: #059669; }
.journey-step-badge--3 { background: #fef3c7; color: #d97706; }
.journey-step-badge--4 { background: #dbeafe; color: #2563eb; }

.journey-step-number {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.journey-step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.3;
}

.journey-step-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.journey-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

/* --------------------------------------------------------------------------
   D. Ce qui se passe après une erreur (Exemple concret pas à pas)
   -------------------------------------------------------------------------- */
.error-flow-section {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.error-flow-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  max-width: 960px;
  margin: 40px auto 0 auto;
}

@media (max-width: 640px) {
  .error-flow-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

.error-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 28px;
}

.error-flow-subject {
  display: flex;
  align-items: center;
  gap: 10px;
}

.error-flow-subject-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3e8ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.error-flow-subject-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.98rem;
}

.error-flow-subject-topic {
  font-size: 0.82rem;
  color: #64748b;
}

.error-flow-stages {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.error-stage-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 700px) {
  .error-stage-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.error-stage-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: 8px;
  width: fit-content;
}

.error-stage-label--1 { background: #fee2e2; color: #991b1b; }
.error-stage-label--2 { background: #fef3c7; color: #92400e; }
.error-stage-label--3 { background: #e0e7ff; color: #3730a3; }
.error-stage-label--4 { background: #d1fae5; color: #065f46; }
.error-stage-label--5 { background: #f3e8ff; color: #581c87; }

.error-stage-bubble {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #1e293b;
  line-height: 1.5;
}

.error-stage-bubble--hint {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}

.error-stage-bubble--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #064e3b;
}

.error-stage-bubble--daily {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #581c87;
}

.error-hints-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 680px) {
  .error-hints-levels-grid {
    grid-template-columns: 1fr;
  }
}

.hint-level-box {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.hint-level-box strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   E. Disponibilidad de los cursos (Verdadera cobertura verificada)
   -------------------------------------------------------------------------- */
.coverage-section {
  padding: 80px 0;
  background: #ffffff;
}

.coverage-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .coverage-grid-two {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.coverage-levels-card,
.coverage-subjects-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.coverage-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coverage-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.5;
}

.levels-list-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.level-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
}

.level-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #d1fae5;
  color: #065f46;
}

.subjects-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subject-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}

.subject-chip-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.subject-chip-item i {
  color: #7c3aed;
}

/* --------------------------------------------------------------------------
   F. Bloque Familias (Acompañamiento respetuoso y factuel)
   -------------------------------------------------------------------------- */
.family-section {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.family-box {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .family-box {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 28px;
  }
}

.family-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.family-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.45;
}

.family-list-item i {
  color: #10b981;
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.family-card-preview {
  background: #f8fafc;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 24px;
}

.family-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.family-preview-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.family-preview-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.family-metric-item {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 14px;
  text-align: center;
}

.family-metric-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #7c3aed;
  margin-bottom: 4px;
}

.family-metric-lbl {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   G. Bloque Centros Educativos (B2B conciso)
   -------------------------------------------------------------------------- */
.schools-bridge-section {
  padding: 70px 0;
  background: #ffffff;
}

.schools-bridge-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.3);
}

@media (max-width: 900px) {
  .schools-bridge-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
}

.schools-bridge-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  margin-bottom: 16px;
}

.schools-bridge-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.25;
}

.schools-bridge-desc {
  font-size: 0.98rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.schools-bridge-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.schools-bridge-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.schools-bridge-features i {
  color: #38bdf8;
}

.schools-bridge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #38bdf8;
  color: #0f172a;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.schools-bridge-btn:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
}

.schools-bridge-preview-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
}

.schools-preview-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  font-size: 0.82rem;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.schools-preview-pill i {
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   H. Oferta factuelle de acceso y FAQ
   -------------------------------------------------------------------------- */
.factual-access-section {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.factual-access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 48px auto 0 auto;
}

@media (max-width: 768px) {
  .factual-access-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.factual-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 36px 30px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.factual-card--study {
  border-top: 6px solid #7c3aed;
}

.factual-card--schools {
  border-top: 6px solid #0284c7;
}

.factual-card-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
  width: fit-content;
}

.factual-card--study .factual-card-badge { background: #f3e8ff; color: #6b21a8; }
.factual-card--schools .factual-card-badge { background: #e0f2fe; color: #075985; }

.factual-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.factual-card-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 24px;
}

.factual-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.factual-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.45;
}

.factual-card-features i {
  color: #10b981;
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.factual-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}

.factual-card-cta--study {
  background: #7c3aed;
  color: #ffffff;
}

.factual-card-cta--study:hover {
  background: #6d28d9;
}

.factual-card-cta--schools {
  background: #0284c7;
  color: #ffffff;
}

.factual-card-cta--schools:hover {
  background: #0369a1;
}

/* FAQ Accordion */
.showcase-faq-section {
  padding: 80px 0;
  background: #ffffff;
}

.showcase-faq-list {
  max-width: 820px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.showcase-faq-item[open] {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.showcase-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.showcase-faq-question::-webkit-details-marker {
  display: none;
}

.showcase-faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #475569;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.showcase-faq-item[open] .showcase-faq-icon {
  transform: rotate(45deg);
  background: #7c3aed;
  color: #ffffff;
}

.showcase-faq-answer {
  margin-top: 14px;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}




