/* Dictado por voz — estilos (móvil y escritorio) */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(160deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  color: #e8f1f2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tarjeta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

h1 { font-size: 1.5rem; margin-bottom: 4px; }
.sub { color: #b7d0d6; font-size: 0.95rem; margin-bottom: 24px; }

.btn-dictar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 30%, #ff5f5f, #d32f2f);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  user-select: none;
}
.btn-dictar:active { transform: scale(0.95); }

.btn-dictar.grabando {
  background: radial-gradient(circle at 30% 30%, #66bb6a, #2e7d32);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.45);
  animation: pulso 1.2s infinite;
}
@keyframes pulso {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.5); }
  50% { box-shadow: 0 0 0 24px rgba(46, 125, 50, 0); }
}

.estado {
  margin-top: 20px;
  min-height: 24px;
  font-size: 1rem;
  color: #cfe3e8;
}
.estado.error { color: #ff8a80; }

.caja-resultado { margin-top: 20px; text-align: left; }
.caja-resultado.oculto { display: none; }

textarea {
  width: 100%;
  min-height: 110px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: #f0fafc;
  font-size: 1.05rem;
  padding: 12px;
  resize: vertical;
}

textarea:focus {
  border-color: #1976d2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.3);
}

.pista {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #9db8bf;
  text-align: right;
}

.botones { display: flex; gap: 10px; margin-top: 12px; }
.botones button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
}
.btn-copiar { background: #1976d2; }
.btn-limpiar { background: #455a64; }

.nota {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #9db8bf;
  line-height: 1.5;
}
