:root {
    --primary: #0055aa;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --text-dark: #1e293b;
    --accent: #eff6ff;
}

.bm-container {
    max-width: 900px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bm-search-wrapper {
    position: relative;
    margin-bottom: 25px;
}

#bm-buscador {
    width: 100%;
    padding: 18px 20px 18px 50px;
    font-size: 18px;
    border: 2px solid var(--border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

#bm-buscador:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 85, 170, 0.1);
}

.bm-icon-search {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.5;
}

.bm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

.bm-table th {
    background: var(--bg-light);
    padding: 15px;
    text-align: left;
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
}

.bm-table td {
    padding: 15px;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.bm-table tr:hover {
    background: var(--accent);
}

.bm-codigo {
    background: #e0e7ff;
    color: #4338ca;
    padding: 5px 10px;
    border-radius: 8px;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.bm-info strong {
    display: block;
    color: var(--text-dark);
    font-size: 16px;
}

.bm-info small {
    color: #64748b;
}

.bm-empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px dashed var(--border);
}

/* ... (mantener lo anterior y aĆ±adir/actualizar esto) ... */

.bm-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-icon-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 6px;
    flex-shrink: 0;
}

.bm-icon-pill svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
}

.bm-details {
    display: flex;
    flex-direction: column;
}

.bm-details strong {
    font-size: 16px;
    color: var(--text-dark);
}

.bm-details small {
    color: #64748b;
    font-size: 13px;
}

/* ... (Mantener lo anterior y a«Šadir/reemplazar estas clases) ... */

.bm-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bm-icon-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Colores por Tipo */
.icon-inyectable { background-color: #fee2e2; fill: #dc2626; } /* Rojo suave */
.icon-tableta { background-color: #dcfce7; fill: #16a34a; }   /* Verde suave */
.icon-jarabe { background-color: #fef9c3; fill: #ca8a04; }    /* Ŗ”mbar/Amarillo */
.icon-generico { background-color: #f1f5f9; fill: #64748b; }  /* Gris */

.bm-icon-pill svg {
    width: 20px;
    height: 20px;
}

.bm-details strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    line-height: 1.2;
}

.bm-details small {
    color: #64748b;
    font-size: 12px;
}