/* ============================================================================
   mas.css — ETAPA E2, modos asincrónicos (Mensajes / Texto / Cámara).
   Hoja aparte para no tocar styles.css de la app principal (aditivo, doc 12
   regla 5: nada de esto afecta index.html).
   ========================================================================== */

.panel-mode[hidden] { display: none !important; }
.mas-hint { text-align: center; margin: 0 0 4px; }

/* ---- Mensajes grabados: pantalla partida --------------------------------- */
.voice-split { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 640px) {
  .voice-split { flex-direction: row; }
  .voice-panel { flex: 1; }
}
.voice-panel {
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.voice-panel-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.voice-panel-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }

.rec-btn {
  width: 74px; height: 74px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: linear-gradient(150deg, var(--violet-bright), #6d5ae0);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .12s var(--ease-out), filter .2s, box-shadow .2s;
}
.rec-btn .ico { width: 30px; height: 30px; }
.rec-btn.recording {
  background: linear-gradient(150deg, #f87171, #ef4444);
  box-shadow: 0 0 0 8px rgba(248, 113, 113, 0.18);
  transform: scale(1.04);
}
.rec-btn:disabled { opacity: 0.5; cursor: default; }
.rec-status { font-size: 13px; color: var(--muted-2); min-height: 1.3em; }

.msg-cards { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.msg-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.msg-card-orig { font-size: 13px; color: var(--muted-2); font-style: italic; margin: 0; }
.msg-card-trad { font-size: 17px; color: var(--text); font-weight: 500; margin: 0; }
.msg-card-row { display: flex; align-items: center; gap: 10px; }
.msg-play-btn {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  color: var(--violet-bright); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.msg-play-btn .ico { width: 18px; height: 18px; }
.msg-card-err { color: #fca5a5; font-size: 13px; }

/* ---- Texto escrito -------------------------------------------------------- */
.text-mode { border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.text-mode-langs { display: flex; align-items: center; justify-content: center; gap: 14px; }
.text-lang-tag {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(139, 124, 246, 0.14); color: var(--violet-bright);
}
.text-input { resize: vertical; min-height: 70px; font-size: 17px; }
.text-result[hidden] { display: none; }
.text-result {
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.text-result-big { font-size: 30px; line-height: 1.3; font-weight: 700; font-family: var(--font-display); color: var(--text); margin: 0; }

/* ---- Cámara ---------------------------------------------------------------- */
.photo-mode { border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.photo-pick { display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; }
.photo-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.photo-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
}
.photo-card-orig { font-size: 14px; color: var(--muted-2); font-style: italic; margin: 0 0 4px; }
.photo-card-trad { font-size: 20px; color: var(--text); font-weight: 600; margin: 0; }
.photo-empty { text-align: center; color: var(--muted-2); font-size: 14px; padding: 10px; }
