:root {
  --prensa-oscuro: #0f172a;
  --prensa-rojo: #dc2626;
}

body {
  background: #f1f5f9;
  padding-bottom: env(safe-area-inset-bottom);
}

.barra {
  background: var(--prensa-oscuro);
  padding-top: calc(env(safe-area-inset-top) + .4rem);
}

.tarjeta {
  background: #fff;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .05);
}

.stat .numero { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat .etiqueta { font-size: .78rem; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }

.lista-conf a { text-decoration: none; color: inherit; }
.lista-conf .item { transition: background .15s; }
.lista-conf .item:hover { background: #f8fafc; }

/* --- Grabadora --- */
.grabadora { text-align: center; }
.reloj {
  font-variant-numeric: tabular-nums;
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--prensa-oscuro);
}
.btn-grabar {
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 6px solid #fecaca;
  background: var(--prensa-rojo);
  color: #fff;
  font-size: 3rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(220, 38, 38, .35);
}
.btn-grabar:disabled { opacity: .5; }
.btn-grabar.grabando:disabled { opacity: 1; }
.btn-grabar.grabando { animation: latido 1.6s ease-in-out infinite; }
@keyframes latido {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); }
  50% { box-shadow: 0 0 0 18px rgba(220, 38, 38, 0); }
}
.medidor {
  height: 14px;
  border-radius: 7px;
  background: #e2e8f0;
  overflow: hidden;
}
.medidor .nivel {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #16a34a 0%, #16a34a 60%, #eab308 80%, #dc2626 100%);
  transition: width .08s linear;
}
.punto-rec {
  display: inline-block; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--prensa-rojo); animation: parpadeo 1s steps(2, start) infinite;
}
@keyframes parpadeo { to { visibility: hidden; } }

/* --- Detalle --- */
.reproductor {
  position: sticky;
  top: calc(56px + env(safe-area-inset-top));
  z-index: 10;
  background: #fff;
  border-radius: .75rem;
  padding: .5rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
}
.reproductor audio { width: 100%; }

.segmento { padding: .35rem .5rem; border-radius: .5rem; }
.segmento.activo { background: #fef3c7; }
.segmento .marca {
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  min-width: 3.6rem;
}
.cuerpo-nota {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.6;
}
.cita {
  border-left: 4px solid var(--prensa-rojo);
  padding-left: .75rem;
}
.verificar-item { border-left: 4px solid #f59e0b; padding-left: .75rem; }
.nav-tabs .nav-link { font-weight: 600; }
textarea.autoalto { overflow: hidden; resize: vertical; }
.min-w-0 { min-width: 0; }
