/* Panel del médico: fondo azul Medcural + imagen IA·Médicos·Medicina */
body {
  background: radial-gradient(900px 600px at 100% 0%, rgba(41,171,226,.35), transparent 60%),
              radial-gradient(700px 500px at 0% 100%, rgba(76,175,80,.18), transparent 60%),
              linear-gradient(160deg, #0A1628 0%, #0A2472 45%, #0D47A1 100%) !important;
  background-attachment: fixed !important;
  position: relative;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url('/fondo-ia-medicina.webp') no-repeat right 4% center / min(78vh, 720px);
  mix-blend-mode: multiply; opacity: .55;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.2px, transparent 1.2px); background-size: 34px 34px;
}
body > * { position: relative; z-index: 1; }

.topbar { background: linear-gradient(90deg, rgba(10,22,40,.92), rgba(10,36,114,.92)) !important; backdrop-filter: blur(8px); border-bottom: 1px solid rgba(41,171,226,.3); }

/* Tarjetas claras y legibles sobre el azul */
.card, .sidebar-card, .modal-box, .login-card { background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(3,12,40,.45) !important; border: 1px solid rgba(255,255,255,.35) !important; }
.card-head, .card-header { background: linear-gradient(90deg, #F0F6FC, #fff); }

/* Texto suelto sobre el fondo (fuera de tarjetas) */
.main > h1, .main > h2, .main > h3, .main > p, .page-title, .page-sub { color: #fff; }

@media (max-width: 768px) { body::before { background-position: center bottom; background-size: 90vw; opacity: .4; } }
.login-wrap { background: transparent !important; }
body::before { -webkit-mask-image: radial-gradient(circle at center, #000 38%, transparent 68%); mask-image: radial-gradient(circle at center, #000 38%, transparent 68%); opacity: .7; }
body::before { inset: auto; right: 3%; top: 50%; transform: translateY(-50%); width: min(80vh, 720px); height: min(80vh, 720px); background: url('/fondo-ia-medicina.webp') center / cover no-repeat; -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 70%); mask-image: radial-gradient(circle at center, #000 30%, transparent 70%); }
@media (max-width: 768px) { body::before { right: 50%; transform: translate(50%, -50%); width: 100vw; height: 100vw; } }
body::before { mix-blend-mode: normal; opacity: .42; }
.login-wrap,.wrap-login{background:transparent!important}
