/* ==========================================================================
   OZI ACADEMY — CAMINO DUOLINGO, TARJETAS 3D Y AGENTE CONVERSACIONAL V3.1
   7 Unidades Conectadas · 1 Sola Tarjeta por Paso · Micrófono en Caja · OZI FAB
   ========================================================================== */

/* Cabecera de Estadísticas Gamificadas */
.duo-shell {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.duo-stats-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.duo-stat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.duo-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 30, 0.82);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-variant-numeric: tabular-nums;
}
.duo-stat-pill.xp { border-color: rgba(245, 176, 65, 0.45); color: var(--gold); }
.duo-stat-pill.streak { border-color: rgba(250, 144, 62, 0.45); color: var(--copper); }
.duo-stat-pill.league { border-color: rgba(46, 204, 113, 0.42); color: var(--green); }

/* ==========================================================================
   CAMINO VERTICAL ESTILO DUOLINGO (7 NODOS CIRCULARES CONECTADOS + CANDADO)
   ========================================================================== */
.duo-path-container {
  position: relative;
  max-width: 820px;
  width: 100%;
  margin: 6px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.duo-path-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: stretch;
}
.duo-node-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.duo-circle-node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #141E27;
  border: 3px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.duo-circle-node svg { width: 22px; height: 22px; }
.duo-circle-node.is-completed {
  background: linear-gradient(145deg, #2ECC71 0%, #239B56 100%);
  border-color: #6EE7B7;
  color: #0F171E;
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.35);
}
.duo-circle-node.is-active {
  background: linear-gradient(145deg, #FA903E 0%, #D97724 100%);
  border-color: #FDE68A;
  color: #0F171E;
  box-shadow: 0 0 0 6px rgba(250, 144, 62, 0.18), 0 10px 28px rgba(250, 144, 62, 0.42);
}
.duo-circle-node.is-locked {
  background: rgba(15, 23, 30, 0.85);
  border-color: rgba(148, 163, 184, 0.24);
  color: #64748B;
}
.duo-path-connector {
  width: 4px;
  flex: 1;
  min-height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  margin: 4px 0;
}
.duo-path-connector.done {
  background: linear-gradient(180deg, #2ECC71 0%, #FA903E 100%);
}

.duo-unit-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.duo-unit-card:hover:not(.locked) {
  transform: translateX(4px);
  border-color: rgba(250, 144, 62, 0.65);
}
.duo-unit-card.active-focus {
  border-color: #FA903E;
  background: linear-gradient(110deg, rgba(250, 144, 62, 0.13) 0%, rgba(26, 37, 47, 0.96) 75%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}
.duo-unit-card.completed {
  border-color: rgba(46, 204, 113, 0.45);
}
.duo-unit-card.locked {
  opacity: 0.66;
  cursor: not-allowed;
  background: rgba(18, 26, 35, 0.72);
}
.duo-station-medal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(250, 144, 62, 0.18);
  border: 1px solid rgba(250, 144, 62, 0.48);
  color: #FA903E;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 99px;
}
.duo-stars-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #475569;
}
.duo-stars-row svg { width: 15px; height: 15px; }
.duo-stars-row svg.lit { color: #F5B041; fill: rgba(245, 176, 65, 0.28); }

/* ==========================================================================
   MODO PASO ACTIVO (1 SOLA TARJETA LIMPIA POR PASO · ORDEN ESTRICTO 1->2->3->4)
   ========================================================================== */
.duo-step-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.duo-step-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.duo-step-segments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.duo-seg-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: background 0.25s ease;
}
.duo-seg-bar.done { background: #2ECC71; }
.duo-seg-bar.current { background: linear-gradient(90deg, #FA903E, #F5B041); }

.duo-single-card {
  background: var(--bg-surface);
  border: 1.5px solid rgba(250, 144, 62, 0.32);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Modos de Aprendizaje en Paso 1 */
.learn-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.learn-mode-btn {
  background: rgba(15, 23, 30, 0.74);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.16s;
}
.learn-mode-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.learn-mode-btn:hover { border-color: var(--ice-blue); color: #FFFFFF; }
.learn-mode-btn.active {
  background: var(--ice-blue-soft);
  border-color: var(--ice-blue);
  color: var(--ice-blue);
}

.ozi-visual-schema {
  background-color: #0B1926;
  background-image:
    linear-gradient(rgba(23, 78, 166, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 78, 166, 0.26) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 15px;
  padding: 20px 22px;
  color: #E2E8F0;
}
.ozi-schema-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7DD3FC;
  background: rgba(11, 25, 38, 0.92);
  border: 1px solid rgba(125, 211, 252, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.unit-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}
.unit-glossary-item {
  background: rgba(15, 23, 30, 0.82);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.42;
  color: var(--text-muted);
}
.unit-glossary-item strong { color: var(--ice-blue); display: block; margin-bottom: 2px; }

/* Dinámicas Interactivas del Paso 2 (Reto Práctico) */
.duo-option-list { display: flex; flex-direction: column; gap: 10px; }
.duo-option-btn {
  width: 100%;
  background: rgba(15, 23, 30, 0.78);
  border: 1.5px solid var(--border-subtle);
  border-radius: 13px;
  padding: 14px 16px;
  color: var(--text-bright);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.48;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.16s;
}
.duo-option-btn:hover:not(:disabled) { border-color: #FA903E; background: rgba(250, 144, 62, 0.09); }
.duo-option-btn.correct { border-color: #2ECC71; background: rgba(46, 204, 113, 0.16); color: #FFFFFF; }
.duo-option-btn.wrong { border-color: #E74C3C; background: rgba(231, 76, 60, 0.16); color: #FFD2CE; }

.duo-match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.duo-match-col { display: flex; flex-direction: column; gap: 8px; }
.duo-match-btn {
  background: rgba(15, 23, 30, 0.82);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.duo-match-btn.selected { border-color: #FA903E; background: rgba(250, 144, 62, 0.18); color: #FA903E; }
.duo-match-btn.matched { border-color: #2ECC71; background: rgba(46, 204, 113, 0.15); color: #2ECC71; cursor: default; }
.duo-match-btn.mismatch { border-color: #E74C3C; background: rgba(231, 76, 60, 0.22); }

.duo-order-slots, .duo-order-pool {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 13px;
  background: rgba(15, 23, 30, 0.68);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  min-height: 62px;
}
.duo-order-chip {
  background: var(--bg-elevated);
  border: 1px solid rgba(250, 144, 62, 0.42);
  color: #FFFFFF;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.14s ease, background 0.14s ease;
}
.duo-order-chip:hover { transform: translateX(2px); background: var(--copper-soft); }

.duo-fill-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.duo-fill-card {
  background: rgba(15, 23, 30, 0.8);
  border: 1.5px solid var(--border-subtle);
  border-radius: 13px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.duo-fill-card.active-slot { border-color: #FA903E; background: rgba(250, 144, 62, 0.1); }
.duo-fill-card.filled-ok { border-color: #2ECC71; }
.duo-chip-bank { display: flex; flex-wrap: wrap; gap: 8px; }
.duo-num-chip {
  background: var(--bg-elevated);
  border: 1.5px solid rgba(250, 144, 62, 0.45);
  color: #FFFFFF;
  padding: 9px 15px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}
.duo-num-chip:hover { background: #FA903E; color: #0F171E; }

/* ==========================================================================
   CAJA DE RESPUESTA CON MICRÓFONO INTEGRADO EN ESQUINA INFERIOR DERECHA
   ========================================================================== */
.ozi-voice-textarea-wrap {
  position: relative;
  width: 100%;
}
.ozi-voice-textarea-wrap textarea {
  width: 100%;
  background: rgba(15, 23, 30, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 16px 54px 16px;
  color: #FFFFFF;
  font-size: 14.5px;
  line-height: 1.52;
  resize: vertical;
  min-height: 122px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ozi-voice-textarea-wrap textarea:focus {
  outline: none;
  border-color: #FA903E;
  box-shadow: 0 0 0 3px rgba(250, 144, 62, 0.2);
}
.ozi-inline-mic-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(26, 37, 47, 0.96);
  border: 1px solid rgba(125, 211, 252, 0.55);
  color: #7DD3FC;
  border-radius: 99px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  transition: all 0.16s ease;
}
.ozi-inline-mic-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.ozi-inline-mic-btn:hover {
  background: rgba(125, 211, 252, 0.18);
  border-color: #7DD3FC;
}
.ozi-inline-mic-btn.is-listening {
  background: rgba(231, 76, 60, 0.22);
  border-color: #E74C3C;
  color: #FF7675;
  animation: oziMicPulse 1.2s infinite ease-in-out;
}
@keyframes oziMicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
}

.duo-rubric-reveal {
  background: rgba(46, 204, 113, 0.1);
  border: 1.5px solid rgba(46, 204, 113, 0.48);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   TARJETAS DE MEMORIA ELÁSTICAS Y NÍTIDAS RETINA (24 TARJETAS · CERO BLUR)
   ========================================================================== */
@keyframes oziCrispCardFlip {
  0% {
    opacity: 0;
    transform: perspective(1000px) scaleX(0.92) rotateY(14deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.ozi-flip-scene {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 44px;
  clear: both;
}

.ozi-flip-card {
  display: grid;
  align-items: stretch;
  width: 100%;
  height: auto;
  transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.ozi-flip-face {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  min-height: 300px;
  background: linear-gradient(160deg, #1A252F 0%, #121B24 100%);
  border: 1.5px solid rgba(250, 144, 62, 0.42);
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: oziCrispCardFlip 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ozi-flip-back {
  border-color: rgba(46, 204, 113, 0.55);
  background: linear-gradient(160deg, #162623 0%, #121B24 100%);
}

.ozi-flip-card:not(.is-flipped) .ozi-flip-back {
  display: none;
  pointer-events: none;
}

.ozi-flip-card.is-flipped .ozi-flip-front {
  display: none;
  pointer-events: none;
}

/* ==========================================================================
   AGENTE OZI LIVE: MINI-ORBE 3D ARRASTRABLE (56x56px) + CÁPSULA SIRI / GEMINI
   ========================================================================== */
.ozi-agent-fab {
  position: fixed;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  z-index: 90;
  background: radial-gradient(circle at 36% 32%, #223242 0%, #0B1219 76%);
  border: 1.5px solid rgba(250, 144, 62, 0.82);
  color: #FFFFFF;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72), 0 0 0 4px rgba(250, 144, 62, 0.14), inset 0 0 14px rgba(250, 144, 62, 0.22);
  transition: left 0.24s cubic-bezier(0.22, 1, 0.36, 1), top 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ozi-agent-fab:hover {
  transform: scale(1.06);
  border-color: #FA903E;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.82), 0 0 0 6px rgba(250, 144, 62, 0.24), inset 0 0 18px rgba(250, 144, 62, 0.32);
}
.ozi-agent-fab.is-dragging {
  cursor: grabbing;
  transition: none !important;
  transform: scale(1.09);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.88), 0 0 0 7px rgba(125, 211, 252, 0.25);
}
.ozi-agent-fab.is-open-fab {
  border-color: #7DD3FC;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.78), 0 0 0 5px rgba(125, 211, 252, 0.24);
}
.ozi-fab-canvas {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}
.ozi-fab-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  background: rgba(11, 17, 23, 0.94);
  border: 1px solid rgba(250, 144, 62, 0.48);
  color: #F8FAFC;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 99px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.ozi-agent-fab.dock-left .ozi-fab-tooltip {
  right: auto;
  left: calc(100% + 10px);
  transform: translateY(-50%) translateX(-4px);
}
.ozi-agent-fab:hover:not(.is-dragging):not(.is-open-fab) .ozi-fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.ozi-agent-panel {
  position: fixed;
  width: min(94vw, 412px);
  max-height: min(82dvh, 635px);
  background: rgba(13, 20, 29, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1.5px solid rgba(250, 144, 62, 0.46);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 98;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.ozi-agent-header {
  padding: 11px 14px 9px;
  background: rgba(9, 14, 20, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.ozi-agent-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ozi-agent-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FA903E;
  box-shadow: 0 0 10px rgba(250, 144, 62, 0.8);
  flex-shrink: 0;
}
.ozi-agent-status-dot.listening {
  background: #7DD3FC;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.95);
}
.ozi-agent-status-dot.speaking {
  background: #F5B041;
  box-shadow: 0 0 12px rgba(245, 176, 65, 0.95);
}

.ozi-agent-orb-stage {
  position: relative;
  background: radial-gradient(ellipse at 50% 46%, rgba(250, 144, 62, 0.13) 0%, rgba(9, 14, 21, 0.82) 74%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.ozi-agent-orb-stage.is-listening-stage {
  background: radial-gradient(ellipse at 50% 46%, rgba(125, 211, 252, 0.18) 0%, rgba(9, 16, 26, 0.86) 74%);
}
.ozi-agent-live-mic-btn {
  background: linear-gradient(135deg, rgba(250, 144, 62, 0.2) 0%, rgba(26, 37, 47, 0.95) 100%);
  border: 1.5px solid rgba(250, 144, 62, 0.72);
  color: #FFFFFF;
  border-radius: 99px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: all 0.18s ease;
}
.ozi-agent-live-mic-btn svg { width: 16px; height: 16px; color: #FA903E; flex-shrink: 0; }
.ozi-agent-live-mic-btn:hover {
  border-color: #FA903E;
  background: rgba(250, 144, 62, 0.28);
  transform: translateY(-1px);
}
.ozi-agent-live-mic-btn.is-listening {
  background: rgba(125, 211, 252, 0.2);
  border-color: #7DD3FC;
  color: #E0F2FE;
  animation: oziLiveIcePulse 1.3s infinite ease-in-out;
}
.ozi-agent-live-mic-btn.is-listening svg { color: #7DD3FC; }
.ozi-agent-live-mic-btn.is-speaking {
  background: rgba(245, 176, 65, 0.2);
  border-color: #F5B041;
  color: #FEF3C7;
}
.ozi-agent-live-mic-btn.is-speaking svg { color: #F5B041; }
@keyframes oziLiveIcePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.45); }
  50% { box-shadow: 0 0 0 9px rgba(125, 211, 252, 0); }
}

.ozi-agent-chips {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.ozi-agent-chips::-webkit-scrollbar { display: none; }
.ozi-agent-chip {
  background: rgba(250, 144, 62, 0.11);
  border: 1px solid rgba(250, 144, 62, 0.34);
  color: #FA903E;
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.ozi-agent-chip:hover { background: #FA903E; color: #0F171E; }

.ozi-agent-messages {
  flex: 1;
  min-height: 110px;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ozi-msg-bubble {
  max-width: 92%;
  border-radius: 14px;
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.48;
}
.ozi-msg-bubble.bot {
  align-self: flex-start;
  background: rgba(24, 35, 46, 0.92);
  border: 1px solid rgba(250, 144, 62, 0.28);
  color: #F1F5F9;
}
.ozi-msg-bubble.user {
  align-self: flex-end;
  background: rgba(250, 144, 62, 0.2);
  border: 1px solid rgba(250, 144, 62, 0.5);
  color: #FFFFFF;
  font-weight: 600;
}
.ozi-agent-composer {
  padding: 9px 12px 11px;
  background: rgba(9, 14, 20, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ozi-agent-text-input {
  flex: 1;
  min-width: 0;
  background: rgba(18, 27, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 9px 12px;
  color: #FFFFFF;
  font-size: 13px;
  line-height: 1.35;
}
.ozi-agent-text-input:focus {
  outline: none;
  border-color: #FA903E;
  box-shadow: 0 0 0 2px rgba(250, 144, 62, 0.2);
}

/* Selector limpio de Voz y Velocidad */
.ozi-voice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ozi-voice-bar.is-compact {
  gap: 6px;
  justify-content: space-between;
  width: 100%;
}
.ozi-voice-select {
  background: rgba(15, 23, 30, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #E2E8F0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  max-width: 240px;
}
.ozi-voice-bar.is-compact .ozi-voice-select {
  padding: 4px 8px;
  font-size: 11.2px;
  max-width: 185px;
  flex: 1;
  min-width: 120px;
}

/* Ajustes Móvil y Vista Móvil en PC para Camino Duolingo y Tarjetas */
.app-shell.admin-mobile-preview .ozi-flip-face {
  padding: 20px 18px;
}
.app-shell.admin-mobile-preview .learn-mode-tabs,
.app-shell.admin-mobile-preview .duo-match-grid {
  grid-template-columns: repeat(2, 1fr);
}
.app-shell.admin-mobile-preview .duo-path-row {
  grid-template-columns: 56px 1fr;
  gap: 12px;
}
.app-shell.admin-mobile-preview .duo-circle-node {
  width: 50px;
  height: 50px;
  font-size: 15px;
}

@media (max-width: 768px) {
  .ozi-fab-tooltip { display: none; }
  .ozi-flip-face { padding: 20px 18px; }
  .learn-mode-tabs { grid-template-columns: repeat(2, 1fr); }
  .duo-match-grid { grid-template-columns: 1fr; }
  .duo-path-row { grid-template-columns: 54px 1fr; gap: 12px; }
  .duo-circle-node { width: 50px; height: 50px; font-size: 15px; }
  .duo-single-card { padding: 18px 16px; }
}

@media print {
  .ozi-agent-fab, .ozi-agent-panel, .mobile-preview-exit-pill { display: none !important; }
}
