/* ═══════════════════════════════════════════════════════════════════
   FábricaMédica — Estilos holográficos personalizados
   Complementa Tailwind CDN: efectos que requieren keyframes, blend
   modes y pseudo-elementos que las utilidades no cubren.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --medic-500: #3b82f6;
  --medic-600: #2563eb;
  --medic-900: #1e3a8a;
  --holo-cyan: #22d3ee;
  --holo-glow: #7dd3fc;
  --panel-bg: rgba(13, 27, 62, 0.55);
  --panel-border: rgba(125, 211, 252, 0.18);
}

/* ─────────────── Auroras atmosféricas de fondo ─────────────── */
.aurora {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: aurora-drift 24s ease-in-out infinite alternate;
}
.aurora-1 {
  width: 45vw; height: 45vw;
  top: -15%; left: -10%;
  background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
}
.aurora-2 {
  width: 38vw; height: 38vw;
  bottom: -12%; right: -8%;
  background: radial-gradient(circle, #0e7490 0%, transparent 70%);
  animation-delay: -8s;
}
.aurora-3 {
  width: 30vw; height: 30vw;
  top: 40%; left: 55%;
  background: radial-gradient(circle, #4338ca 0%, transparent 70%);
  opacity: 0.22;
  animation-delay: -16s;
}
@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4vw, -3vh) scale(1.12); }
  100% { transform: translate(-3vw, 4vh) scale(0.95); }
}

/* Scanlines cinematográficas muy sutiles */
.scanline-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(125, 211, 252, 0.012) 3px,
    rgba(125, 211, 252, 0.012) 4px
  );
}

/* ─────────────── Panel holográfico central ─────────────── */
.holo-panel {
  position: relative;
  background: var(--panel-bg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--panel-border);
  border-radius: 1.5rem;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.08),
    0 25px 60px -15px rgba(2, 8, 30, 0.8),
    0 0 80px -20px rgba(34, 211, 238, 0.15),
    inset 0 1px 0 rgba(125, 211, 252, 0.12);
  overflow: hidden;
  animation: panel-materialize 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes panel-materialize {
  from { opacity: 0; transform: translateY(24px) scale(0.97); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Línea de energía en el borde superior del panel */
.holo-panel-edge {
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--holo-cyan), transparent);
  opacity: 0.7;
  animation: edge-sweep 5s ease-in-out infinite;
}
@keyframes edge-sweep {
  0%, 100% { opacity: 0.35; transform: scaleX(0.7); }
  50%      { opacity: 0.9;  transform: scaleX(1); }
}

/* ─────────────── Chips holográficos flotantes ─────────────── */
.holo-chip {
  background: rgba(13, 27, 62, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 40px -10px rgba(2, 8, 30, 0.6), inset 0 1px 0 rgba(125, 211, 252, 0.08);
}

.float-slow   { animation: float-y 7s ease-in-out infinite; }
.float-slower { animation: float-y 10s ease-in-out infinite reverse; }
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%      { transform: translateY(-14px) rotate(0.5deg); }
}

.holo-dot {
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--holo-cyan);
  box-shadow: 0 0 8px var(--holo-cyan);
  animation: dot-blink 1.6s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* Electrocardiograma animado */
.ekg-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: ekg-draw 3.5s linear infinite;
  filter: drop-shadow(0 0 3px var(--holo-cyan));
}
@keyframes ekg-draw {
  0%   { stroke-dashoffset: 300; }
  70%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -300; }
}

/* Nodos de red neuronal */
.node-pulse {
  animation: node-glow 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 4px var(--holo-glow));
}
@keyframes node-glow {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* Barras de progreso con brillo */
.progress-shimmer {
  position: relative;
  overflow: hidden;
  animation: bar-grow 3s ease-in-out infinite alternate;
}
@keyframes bar-grow {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* Anillo orbital */
.holo-ring {
  width: 110px; height: 110px;
  border-radius: 9999px;
  border: 1px dashed rgba(125, 211, 252, 0.25);
  animation: ring-spin 30s linear infinite;
}
.holo-ring::after {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: var(--holo-cyan);
  box-shadow: 0 0 10px var(--holo-cyan);
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* Pulso de estado (puntos de conexión) */
.status-pulse { animation: status-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes status-ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

.avatar-glow { box-shadow: 0 0 18px -4px rgba(34, 211, 238, 0.5); }

/* ─────────────── Burbujas de chat ─────────────── */
.bubble-agent {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.55), rgba(13, 27, 62, 0.7));
  border: 1px solid rgba(125, 211, 252, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.08), 0 4px 20px -6px rgba(2, 8, 30, 0.5);
}

.bubble-user {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(147, 197, 253, 0.3);
  box-shadow: 0 4px 20px -6px rgba(37, 99, 235, 0.5);
}

/* Entrada animada de cada mensaje */
.msg-enter { animation: msg-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─────────────── Indicador "escribiendo..." ─────────────── */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.typing-dots span {
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--holo-glow);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1; box-shadow: 0 0 6px var(--holo-cyan); }
}

/* ─────────────── Botones holográficos de opción múltiple ─────────────── */
.holo-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #bae6fd;
  background: rgba(30, 58, 138, 0.3);
  border: 1px solid rgba(34, 211, 238, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: option-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.holo-option:nth-child(2) { animation-delay: 0.08s; }
.holo-option:nth-child(3) { animation-delay: 0.16s; }
.holo-option:nth-child(4) { animation-delay: 0.24s; }
.holo-option:nth-child(5) { animation-delay: 0.32s; }
@keyframes option-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Barrido de luz al pasar el cursor */
.holo-option::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(125, 211, 252, 0.25), transparent);
  transition: left 0.5s ease;
}
.holo-option:hover {
  border-color: var(--holo-cyan);
  color: #fff;
  box-shadow: 0 0 20px -4px rgba(34, 211, 238, 0.5), inset 0 0 12px rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}
.holo-option:hover::before { left: 120%; }
.holo-option:active { transform: translateY(0) scale(0.98); }
.holo-option:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ─────────────── Campo de entrada y botón enviar ─────────────── */
.holo-input-wrap {
  background: rgba(11, 21, 51, 0.6);
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.holo-input-wrap:focus-within {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1), 0 0 24px -8px rgba(34, 211, 238, 0.4);
}

.btn-send {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #e0f2fe;
  box-shadow: 0 4px 16px -4px rgba(37, 99, 235, 0.6);
}
.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px -4px rgba(34, 211, 238, 0.5);
  border-color: var(--holo-cyan);
}
.btn-send:active { transform: translateY(0); }
.btn-send:disabled { opacity: 0.4; pointer-events: none; }

/* ─────────────── Scroll personalizado del chat ─────────────── */
.chat-scroll { scrollbar-width: thin; scrollbar-color: rgba(59, 130, 246, 0.4) transparent; }
.chat-scroll::-webkit-scrollbar { width: 5px; }
.chat-scroll::-webkit-scrollbar-track { background: transparent; }
.chat-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.5), rgba(34, 211, 238, 0.4));
  border-radius: 9999px;
}
.chat-scroll::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, 0.6); }

/* ─────────────── Notas de voz: micrófono y barra de grabación ─────────────── */
.btn-mic {
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: #93c5fd;
}
.btn-mic:hover {
  transform: translateY(-2px);
  border-color: var(--holo-cyan);
  color: #e0f2fe;
  box-shadow: 0 6px 24px -4px rgba(34, 211, 238, 0.4);
}
.btn-mic:active { transform: translateY(0); }
.btn-mic.recording {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: rgba(252, 165, 165, 0.5);
  color: #fee2e2;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
  animation: mic-pulse 1.4s ease-out infinite;
}
@keyframes mic-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.rec-bar {
  display: flex;
  background: rgba(127, 29, 29, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rec-bar.hidden { display: none; }
.rec-dot {
  width: 9px; height: 9px;
  border-radius: 9999px;
  background: #ef4444;
  animation: rec-blink 1s ease-in-out infinite;
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); }
  50%      { opacity: 0.35; box-shadow: none; }
}

/* ─────────────── Panel de administración ─────────────── */
.admin-table th {
  text-align: left;
  font-weight: 600;
  color: rgba(147, 197, 253, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  color: #dbeafe;
  vertical-align: top;
}
.admin-table tr:hover td { background: rgba(30, 58, 138, 0.15); }
.acc-btn {
  font-size: 11px;
  color: #93c5fd;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  transition: all 0.2s ease;
  margin-left: 4px;
}
.acc-btn:hover { border-color: var(--holo-cyan); color: #fff; }
.acc-rojo:hover { border-color: rgba(248, 113, 113, 0.6); color: #fca5a5; }

/* ─────────────── Accesibilidad: movimiento reducido ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .aurora, .float-slow, .float-slower, .ekg-line, .node-pulse,
  .holo-ring, .holo-panel-edge, .progress-shimmer { animation: none !important; }
}

/* ─────────────── Panel de perfil de tono (Bloque 2) ─────────────── */
.tono-panel {
  border-radius: 1.1rem;
  padding: 1.1rem 1.2rem 1rem;
  background: linear-gradient(145deg, rgba(13, 27, 62, 0.85), rgba(30, 58, 138, 0.35));
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 0 32px -10px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(125, 211, 252, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tono-kicker {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(103, 232, 249, 0.65);
  margin-bottom: 0.3rem;
}
.tono-title { font-size: 1.05rem; font-weight: 600; color: #f1f5f9; margin: 0 0 0.25rem; }
.tono-sub   { font-size: 0.78rem; color: rgba(186, 230, 253, 0.7); margin: 0 0 1rem; line-height: 1.45; }
.tono-grid  { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 900px) { .tono-grid { grid-template-columns: 1.1fr 1fr; } }

.tono-eje { padding: 0.45rem 0 0.35rem; }
.tono-eje-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.2rem; }
.tono-eje-nombre { font-size: 0.85rem; font-weight: 600; color: #e0f2fe; }
.tono-eje-valor {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #67e8f9; background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 999px; padding: 2px 9px;
}
.tono-eje-extremos { display: flex; justify-content: space-between; font-size: 10px; color: rgba(186, 230, 253, 0.45); margin-top: 0.1rem; }
.tono-eje input[type="range"] {
  width: 100%; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.tono-eje input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: rgba(125, 211, 252, 0.25); }
.tono-eje input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(125, 211, 252, 0.25); }
.tono-eje input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%;
  background: #0b1533; border: 2px solid var(--holo-cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
  transition: transform 0.15s ease;
}
.tono-eje input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #0b1533; border: 2px solid var(--holo-cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}
.tono-eje input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.tono-preview { display: flex; flex-direction: column; gap: 0.3rem; }
.tono-preview-head { margin-bottom: 0.5rem; }
.tono-frase {
  width: 100%; resize: vertical; font-size: 0.85rem; line-height: 1.4; color: #f1f5f9;
  background: rgba(37, 99, 235, 0.25); border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 0.8rem; padding: 0.6rem 0.8rem; outline: none;
}
.tono-frase:focus { border-color: rgba(34, 211, 238, 0.6); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1); }
.tono-respuesta {
  border-radius: 1rem; border-bottom-left-radius: 0.25rem; padding: 0.8rem 1rem;
  font-size: 0.86rem; line-height: 1.55; color: #f1f5f9; min-height: 5.5rem;
  transition: opacity 0.25s ease;
}
.tono-respuesta.is-espera { opacity: 0.75; }
.tono-espera { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 11px; color: rgba(186, 230, 253, 0.7); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tono-error { color: #fca5a5; font-size: 0.8rem; }
.tono-link {
  align-self: flex-start; font-size: 0.75rem; color: #67e8f9; background: none; border: none;
  padding: 0.2rem 0; cursor: pointer; text-decoration: underline dotted;
}
.tono-acciones { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; margin-top: 1rem; }
.tono-guardar { border-color: rgba(52, 211, 153, 0.55) !important; color: #d1fae5 !important; }
.tono-guardar:disabled, .tono-restablecer:disabled { opacity: 0.4; pointer-events: none; }

/* ─────────────── Formulario de cuentas e integraciones (Bloque 9) ─────────────── */
.integ-form { padding-bottom: 0.9rem; }
.integ-form .tono-head { margin-bottom: 0.2rem; }
.integ-servicios { display: flex; flex-direction: column; gap: 0.7rem; }
.integ-servicio {
  border: 1px solid rgba(125, 211, 252, 0.14); border-radius: 0.9rem; padding: 0.8rem 0.9rem;
  background: rgba(11, 21, 51, 0.45);
}
.integ-servicio + .integ-servicio, .integ-contacto { margin-top: 0.7rem; }
.integ-servicio-nombre { font-size: 0.88rem; font-weight: 600; color: #e0f2fe; }
.integ-servicio-nombre small { font-size: 10px; font-weight: 500; color: rgba(186, 230, 253, 0.55); margin-left: 0.4rem; text-transform: uppercase; letter-spacing: 0.1em; }
.integ-servicio-desc { font-size: 0.74rem; color: rgba(186, 230, 253, 0.65); margin: 0.15rem 0 0.6rem; line-height: 1.4; }
.integ-estados { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.integ-estado { cursor: pointer; }
.integ-estado input { position: absolute; opacity: 0; pointer-events: none; }
.integ-estado span {
  display: inline-block; font-size: 0.74rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  color: #bae6fd; background: rgba(30, 58, 138, 0.3); border: 1px solid rgba(34, 211, 238, 0.25);
  transition: all 0.2s ease;
}
.integ-estado:hover span { border-color: var(--holo-cyan); color: #fff; }
.integ-estado.is-on span, .integ-estado input:checked + span {
  background: rgba(34, 211, 238, 0.18); border-color: var(--holo-cyan); color: #fff;
  box-shadow: 0 0 12px -4px rgba(34, 211, 238, 0.7);
}
.integ-campos { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.integ-campos.hidden { display: none; }   /* gana sobre Tailwind .hidden, que queda antes en la cascada */
@media (min-width: 760px) { .integ-campos { grid-template-columns: 1fr 1fr; } }
.integ-campo { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.72rem; color: rgba(186, 230, 253, 0.8); }
.integ-campo em { color: #fbbf24; font-style: normal; }
.integ-input-wrap { position: relative; display: flex; }
.integ-input-wrap input {
  width: 100%; font-size: 0.82rem; color: #f1f5f9; padding: 0.5rem 0.7rem;
  background: rgba(11, 21, 51, 0.7); border: 1px solid rgba(125, 211, 252, 0.18); border-radius: 0.6rem; outline: none;
}
.integ-input-wrap input:focus { border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1); }
.integ-ojo { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 0.85rem; opacity: 0.6; }
.integ-ojo:hover { opacity: 1; }
.integ-sedes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 0.4rem; margin-top: 0.3rem; }
@media (min-width: 760px) { .integ-sedes { grid-template-columns: 1fr 1fr; } .integ-sedes .tono-kicker { grid-column: 1 / -1; } }
.integ-check { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.7rem; font-size: 0.78rem; color: #e0f2fe; cursor: pointer; line-height: 1.4; }
.integ-check input { margin-top: 0.2rem; accent-color: var(--holo-cyan); width: 1rem; height: 1rem; }
.integ-errores { margin: 0.8rem 0 0; padding: 0.6rem 0.9rem 0.6rem 1.6rem; border-radius: 0.7rem; background: rgba(127, 29, 29, 0.35); border: 1px solid rgba(252, 165, 165, 0.35); font-size: 0.76rem; color: #fecaca; line-height: 1.5; }

/* ─────────────── Formularios de bloque (1, 2, 3, 5, 10) ─────────────── */
.frm-campos { margin-bottom: 0.4rem; }
.frm-ancho { grid-column: 1 / -1; }
.frm-ayuda { font-size: 0.68rem; color: rgba(186, 230, 253, 0.55); margin-top: 0.15rem; }
.frm-campo.hidden { display: none; }
.frm-select {
  width: 100%; font-size: 0.82rem; color: #f1f5f9; padding: 0.5rem 0.7rem;
  background: rgba(11, 21, 51, 0.7); border: 1px solid rgba(125, 211, 252, 0.18); border-radius: 0.6rem; outline: none;
}
.frm-select option { background: #0b1533; color: #f1f5f9; }
.frm-select:focus { border-color: rgba(34, 211, 238, 0.55); }
.frm-otro {
  font-size: 0.74rem; color: #f1f5f9; padding: 0.3rem 0.7rem; border-radius: 999px; min-width: 9rem;
  background: rgba(11, 21, 51, 0.7); border: 1px dashed rgba(125, 211, 252, 0.3); outline: none;
}
.frm-color { align-items: center; gap: 0.5rem; }
.frm-color input[type="color"] { width: 2.6rem; height: 2.2rem; padding: 0; border: 1px solid rgba(125, 211, 252, 0.3); border-radius: 0.5rem; background: transparent; cursor: pointer; }
.frm-color input[type="text"] { flex: 1; }
.frm-grupo { display: flex; flex-direction: column; gap: 0.6rem; }
.frm-grupo-items { display: flex; flex-direction: column; gap: 0.6rem; }
.frm-grupo-item { border: 1px solid rgba(125, 211, 252, 0.14); border-radius: 0.9rem; padding: 0.7rem 0.85rem; background: rgba(11, 21, 51, 0.45); }
.frm-grupo-cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.frm-grupo-cab .tono-kicker { margin: 0; }
.frm-quitar { color: rgba(252, 165, 165, 0.8); }
.frm-agregar { align-self: flex-start; }

/* ─────────────── Material del médico (guías, protocolos, fotos) ─────────────── */
.conoc-zona {
  border: 1.5px dashed rgba(34, 211, 238, 0.4); border-radius: 0.9rem; padding: 1.1rem; text-align: center;
  background: rgba(11, 21, 51, 0.4); cursor: pointer; transition: all 0.2s ease; margin-bottom: 0.8rem;
}
.conoc-zona:hover, .conoc-zona.is-drag { border-color: var(--holo-cyan); background: rgba(34, 211, 238, 0.08); box-shadow: 0 0 20px -6px rgba(34, 211, 238, 0.5); }
.conoc-zona-txt { font-size: 0.82rem; color: #e0f2fe; line-height: 1.5; }
.conoc-zona-txt small { color: rgba(186, 230, 253, 0.55); font-size: 0.7rem; }
.conoc-pegar { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.8rem; }
.conoc-pegar-acciones { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.conoc-pegar-acciones .frm-select { width: auto; flex: 1; min-width: 12rem; }
.conoc-lista { display: flex; flex-direction: column; gap: 0.5rem; }
.conoc-vacio { font-size: 0.74rem; color: rgba(186, 230, 253, 0.5); margin: 0; }
.conoc-item { border: 1px solid rgba(125, 211, 252, 0.14); border-radius: 0.8rem; padding: 0.6rem 0.8rem; background: rgba(11, 21, 51, 0.45); }
.conoc-item-cab { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.conoc-item-titulo { font-size: 0.84rem; font-weight: 600; color: #e0f2fe; flex: 1; }
.conoc-item-resumen { font-size: 0.74rem; color: rgba(186, 230, 253, 0.75); margin: 0.3rem 0 0; line-height: 1.45; }
.conoc-puntos { margin: 0.3rem 0 0; padding-left: 1.1rem; font-size: 0.72rem; color: rgba(186, 230, 253, 0.65); line-height: 1.4; }
.conoc-progreso { padding: 0.4rem 0.6rem; }

/* Un boton de opcion oculto por la pagina (Tailwind .hidden) no debe reaparecer por la cascada */
.holo-option.hidden { display: none; }
