:root { --accent: #c0392b; }
body { font-family: 'Inter', sans-serif; background: #f4f6f9; min-height: 100vh; }

/* NAVBAR */
.main-header.navbar { background: #1a1a2e; border-bottom: none; padding: 0 1.25rem; }
.navbar-brand { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0; }
.logo-icon { width: 36px; height: 36px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-title { font-size: 1rem; font-weight: 700; color: #fff; }
.brand-sub   { font-size: 0.7rem; color: #94a3b8; }
.live-badge { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 0.25rem 0.75rem; }
.live-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(0.85)} }

/* HERO */
.search-wrapper { background: #1a1a2e; padding: 3rem 1rem 3.5rem; text-align: center; }
.hero-title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.hero-title em { color: var(--accent); font-style: italic; }
.hero-sub { color: #94a3b8; font-size: 0.9rem; max-width: 480px; margin: 0 auto 1.75rem; }
.search-form { display: flex; gap: 0; max-width: 440px; margin: 0 auto; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.search-form input { flex: 1; border: none; padding: 0.85rem 1.1rem; font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 500; outline: none; letter-spacing: 0.04em; }
.search-form button { background: var(--accent); border: none; color: #fff; font-weight: 700; font-size: 0.9rem; padding: 0 1.4rem; cursor: pointer; transition: background .2s; font-family: 'Inter', sans-serif; }
.search-form button:hover { background: #96281b; }
.error-box { max-width: 440px; margin: 1rem auto 0; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; border-radius: 8px; padding: 0.65rem 1rem; font-size: 0.875rem; }

/* CONTENT */
.content-wrapper { background: #f4f6f9; }
.content { padding: 1.5rem; }
.patient-name { font-size: 1.25rem; font-weight: 700; color: #1e293b; margin-bottom: 0.35rem; }
.pill { display: inline-block; background: #e2e8f0; color: #475569; border-radius: 20px; padding: 0.2rem 0.65rem; font-size: 0.75rem; font-weight: 600; margin-right: 4px; }
.pill.accent { background: rgba(192,57,43,0.12); color: var(--accent); }

/* TIMELINE */
.timeline-step { display: flex; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid #f1f5f9; }
.timeline-step:last-child { border-bottom: none; }
.step-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; background: #e2e8f0; color: #94a3b8; border: 2px solid transparent; }
.step-icon.activo { border-color: currentColor; }
.step-icon.completado { background: #f0fdf4; }
.step-label { font-weight: 600; font-size: 0.9rem; color: #1e293b; }
.step-label.muted { color: #94a3b8; }
.step-desc { font-size: 0.8rem; color: #64748b; margin-top: 2px; }
.step-time { font-size: 0.75rem; color: #94a3b8; margin-top: 3px; }
.badge-purple { background-color: #8b5cf6 !important; color: #fff !important; }

/* HISTORIAL */
.historial-item { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.4rem 0; font-size: 0.83rem; color: #475569; border-bottom: 1px solid #f1f5f9; }
.historial-item:last-child { border-bottom: none; }
.historial-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-top: 5px; flex-shrink: 0; }

/* REFRESH */
.refresh-notice { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: #94a3b8; justify-content: center; padding: 0.75rem 0 0.25rem; }
.refresh-dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; animation: pulse 2s infinite; }

/* FOOTER */
.main-footer { background: #1a1a2e; color: #64748b; font-size: 0.78rem; text-align: center; padding: 0.9rem; border-top: none; }
.main-footer a { color: #94a3b8; text-decoration: none; }
.main-footer a:hover { color: #fff; }

@media (max-width: 576px) { .hero-title { font-size: 1.5rem; } .content { padding: 1rem; } }
